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

Home » Public Forums » archive » Re: filling holes in blobs quickly
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: filling holes in blobs quickly [message #30225 is a reply to message #30224] Tue, 16 April 2002 02:33 Go to previous messageGo to previous message
anne.martel is currently offline  anne.martel
Messages: 6
Registered: April 2002
Junior Member
You could find the connected dark region outside of the bright blobs.
Anything that doesn't belong to that region is either a bright object
or a dark hole completely surrounded by bright pixels.

r = search2d(mask,0,0,0,0)
if(r(0) ge 0) then begin
mask(*)=1
mask(r)=0
endif

This assumes that [0,0] always lies outside a blob.

Anne



dmartin@chaos.ph.utexas.edu (Doug Martin) wrote in message news:<d2bf73f3.0204151417.6e64bf7d@posting.google.com>...
> I'm sure this is a well solved problem, but:
> I'm trying to fill in holes inside of domains (blobs) quickly. The
> domains are in a binary image, and are bright.
>
> Right now, I search for dark regions - the holes (label_region);
> pick out those of a small size (histogram and where);
> and then fill them in (a FOR loop through the where values, since I
> don't know how to get where to compare to every value in a vector).
>
> This is slow, and I strongly suspect there is an intelligent way to do
> this: fill in all dark blobs up to a certain size.
>
> Thanks for any help,
>
> Doug Martin
> University of Texas at Austin
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: IDL procedure / function to orthorectify with DEM satellite images
Next Topic: Re: generalized eigenvectors

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

Current Time: Fri Oct 10 07:32:01 PDT 2025

Total time taken to generate the page: 0.31916 seconds