<div>Hi,</div> <div> </div> <div>while testing the output of the "itkBinaryErodeImageFilter" on a 3D binary images I found out that the output is identical to the input.</div> <div>Does anyone have experienced similar problems with the erosion filter?</div> <div> </div> <div>The tests have been performed on version 2.4.1.</div> <div> </div> <div>Sample code:</div> <div> </div>typedef unsigned char CharPixelType; <div>typedef itk::Image <CharPixelType, 3> Input3DImageType;</div> <div>typedef itk::BinaryBallStructuringElement<CharPixelType, 3> StructuringElementType3D;</div> <div>typedef itk::BinaryErodeImageFilter<Input3DImageType, <BR> Input3DImageType,<BR> StructuringElementType3D> ErodeFilterTypeInt2Int3D;<BR></div> <div>....</div> <div> </div> <div>inputBinaryVolume = readerBinary->GetOutput(); </div>
<div> </div> <div> unsigned char TubeRadiusSE = 2;<BR> StructuringElementType3D structuringElement;<BR> structuringElement.SetRadius(TubeRadiusSE);<BR> structuringElement.CreateStructuringElement();</div> <div> </div> <div> ErodeFilterTypeInt2Int3D::Pointer binaryErode = ErodeFilterTypeInt2Int3D::New();<BR> binaryErode->SetKernel(structuringElement);<BR> binaryErode->SetInput(inputBinaryVolume);<BR> binaryErode->SetErodeValue(1);<BR> binaryErode->Update(); <BR></div> <div> </div> <div>Thanks,</div> <div>Dan</div> <div> </div> <div> </div><p> 
                <hr size=1>Yahoo! Music Unlimited - Access over 1 million songs.
<a href="http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=36035/*http://music.yahoo.com/unlimited/
">Try it free.</a>