Login  Register

Re: Possible bug

Posted by Michael Schmid on Feb 16, 2009; 9:22am
URL: http://imagej.273.s1.nabble.com/Possible-bug-tp3693696p3693699.html

Hi Cihat,

it depends on the Process>Binary>Options what you define as a  
foreground object and what as a background.

Dilating the background erodes the foreground objects, and vice versa.

Michael
________________________________________________________________

On 16 Feb 2009, at 04:39, Cihat Eldeniz wrote:

> Dear all,
>
> I believe there is a bug in the two functions of ImageProcessor:  
> erode() and dilate().
>
> When I went through a stack of images [that had already been  
> converted to binary],
>
> ImageProcessor ip2 = imp2.getStack().getProcessor(counter);
> ip.dilate();
> ip.dilate();
> ..
>
> I realized that dilate() erodes and erode() dilates. Is there  
> really a bug?
>
> Thanks.