[Insight-users] Re: binary erosion

mauro maiorca mauromaiorca at gmail.com
Wed Nov 28 19:48:24 EST 2007


On Nov 24, 2007 12:15 AM, mauro maiorca <mauromaiorca at gmail.com> wrote:
> Hi people,
> I'm trying to perform erosion with itk, but unfortunately without any
> luck. The strange thing is that there isn't any problem with dilation.

problem solved adding:

binaryErode->SetBackgroundValue( 0 );
binaryErode->SetForegroundValue( 255 );

to

> binaryErode->SetKernel(  ball );
> binaryErode->SetErodeValue( 255 );

hope it helps someone else: this thing was undocumented.
It is incredibly slow, but probably switching to ITK 3.4 will solve the problem.
By the way, do you have any idea how to update just the
erosion/dilation from 3.2 to 3.4 without reinstalling everything (it
needs time, I want to postpone this)

cheers,
Mauro


More information about the Insight-users mailing list