comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » bwfill in IDL?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
bwfill in IDL? [message #31069] Mon, 03 June 2002 08:27
Gert Van de Wouwer is currently offline  Gert Van de Wouwer
Messages: 21
Registered: January 2002
Junior Member
Hi

Is there an analog of Matlab's bwfill method in IDL?
i.e. something like
[y, indx] = bwfill(x,startR, startC);
where x is a binary image, startR and StartC begincoordinates to begin
flooding the image (e.,g. all black pixels) and return the result in image y
and coordinates of filled positions in indx?
Example taken from Matlab documentation:

BW1 = [1 0 0 0 0 0 0 0
1 1 1 1 1 0 0 0
1 0 0 0 1 0 1 0
1 0 0 0 1 1 1 0
1 1 1 1 0 1 1 1
1 0 0 1 1 0 1 0
1 0 0 0 1 0 1 0
1 0 0 0 1 1 1 0]
BW2 = bwfill(BW1,3,3,8)
BW2 =
1 0 0 0 0 0 0 0
1 1 1 1 1 0 0 0
1 1 1 1 1 0 1 0
1 1 1 1 1 1 1 0
1 1 1 1 0 1 1 1
1 0 0 1 1 0 1 0
1 0 0 0 1 0 1 0
1 0 0 0 1 1 1 0


thanks,

Gert
[Message index]
 
Read Message
Previous Topic: Re: Parameters for Dummies
Next Topic: the length of line

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 08:58:40 PDT 2025

Total time taken to generate the page: 0.88497 seconds