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.