Login  Register

Re: Fill holes or background

Posted by Samuel GRANJEAUD on Nov 30, 2010; 11:32am
URL: http://imagej.273.s1.nabble.com/Fill-holes-or-background-tp3686344p3686346.html

> On Tuesday 30 Nov 2010 10:56:44 you wrote:
>  
>> I got a binary image of borders of particules (black borders surrounding
>> white area, white general background). The borders may be connected, but
>> I want unconnected area. So, I inverted the image to get white borders
>> and black holes. Every area should be now be well separated. But, the
>> background is also black. So I am trying to fill the background with
>> white. Unfortunately the color fill tool or the wand tool fills/selects
>> the whole image and don't stop at particules borders. Any idea?
>>    
>
> Can you post an image somewhere so people can see what the problem is.
> Cheers
> G.
>
>  
Looking for a similar example in the samples, the blobs.gif brings me
the solution. The filling color tool should be set to 4 connected to
stop at borders of one pixel thick.

Regards,
Samuel