Login  Register

Re: smooth edge

Posted by Michael Schmid on Feb 22, 2017; 7:30pm
URL: http://imagej.273.s1.nabble.com/smooth-edge-tp5018089p5018173.html

Hi Jin,

assuming you have a binary image with the red being the foreground, you
could try dilation until the gap becomes a hole, then 'Fill Holes' and
erosion (a bit more erosion than dilation). Then merge with the original.

For dilation and erosion I'd use the Process>Filters>Maximum & Minimum
filters; these have a circular structuring element (the binary
operations have a square one).

Unfortunately, this procedure will also connect the left lung with the
extra particle next to it; I see no way to avoid this.


Michael
________________________________________________________________
On 14/02/2017 14:02, Jin Tao wrote:

> Dear All,
>
> I have an image which was processed from lung CT slice. As you can see on
> picture 1 attached below, there's a gap on the right-bottom part of the
> lung. The idea picture should be like picture 2, whose edge is smooth. Is
> there any way to fill the gap?  Fill holes method did not work, because
> it's not a hole.
>
> Thank you for your help.
>
> best regards
>
> Picture 1:
> [image: Inline image 1]
>
> Picture 2 (idea picture, no gap)
> [image: Inline image 3]
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html