Re: filling holes with openings
Posted by
Volker Baecker on
Nov 21, 2012; 2:10pm
URL: http://imagej.273.s1.nabble.com/Fill-holes-or-background-tp3686344p5000913.html
Maybe you could try to do a series of dilate operations that would close
your borders, than run the "fill holes" and than erode the same number
of times you dilated before, something like this:
iterations = 5;
run("Options...", "iterations="+iterations+" count=1 edm=Overwrite
do=Nothing");
run("Dilate");
run("Fill Holes");
run("Erode");
On 20/11/12 17:48, Franklin Shaffer wrote:
> I am trying to measure bubble sizes and shapes. I do an edge detection which creates a white border around the bubble, then I use Fill Holes to fill inside the border.
>
> However, in some cases the border is not completely closed, it has breaks in it.
>
> Is there a plugin or macro available that will fill inside a border line if it has some breaks in it?
>
> Thanks!
>
>
> Senior Research Engineer
> USDOE National Energy Technology Laboratory
> Computational Science Division
> Mail Stop 84-202
> 626 Cochran's Mill Road
> Pittsburgh, PA 15236
>
>
[hidden email]
> Office: 412-386-5964
> Cell: 724-970-7262
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html