<DIV>I tried to use <A class=el href="file:///E:/zxie/itk/DoxygenInsightToolkit-2.0.0/a03209.html">SignedDanielssonDistanceMapImageFilter</A> for 3D image. It failed in compilation with following error. I checked the source and found the line 136 define StructuringElementType as 2D ( <FONT size=2>typedef BinaryBallStructuringElement< InputPixelType, 2 > StructuringElementType ).</FONT></DIV>
<DIV>Should this be modified to dimension based on TInputImage?</DIV>
<DIV> </DIV>
<DIV>Thanks</DIV>
<DIV> </DIV>
<DIV>Sean Zhiyong Xie</DIV>
<DIV> </DIV>
<DIV>********compile error *********</DIV>
<DIV>c:\Development\ThirdParty\Insight\Include\itkMorphologyImageFilter.txx(62): error C2664: 'void itk::ImageRegion<VImageDimension>::PadByRadius(unsigned long)' : cannot convert parameter 1 from 'const itk::Neighborhood<TPixel,VDimension,TAllocator>::SizeType' to 'unsigned long'<BR> with<BR> [<BR> VImageDimension=3<BR> ]<BR> and<BR> [<BR> TPixel=InputPixelType,<BR> VDimension=2,<BR> TAllocator=itk::NeighborhoodAllocator<InputPixelType><BR> ]</DIV>
<DIV>c:\Development\ThirdParty\Insight\Include\itkMorphologyImageFilter.txx(103): error C2664: 'itk::NeighborhoodAlgorithm::ImageBoundaryFacesCalculator<TImage>::FaceListType itk::NeighborhoodAlgorithm::ImageBoundaryFacesCalculator<TImage>::operator ()(const TImage *,itk::NeighborhoodAlgorithm::ImageBoundaryFacesCalculator<TImage>::RegionType,itk::NeighborhoodAlgorithm::ImageBoundaryFacesCalculator<TImage>::RadiusType)' : cannot convert parameter 3 from 'const itk::Neighborhood<TPixel,VDimension,TAllocator>::SizeType' to 'itk::NeighborhoodAlgorithm::ImageBoundaryFacesCalculator<TImage>::RadiusType'<BR> with<BR> [<BR>
TImage=itk::MorphologyImageFilter<itk::SignedDanielssonDistanceMapImageFilter<SurfaceToImageMatch<short,short>::MaskImageType,DistanceImageType>::InputImageType,itk::SignedDanielssonDistanceMapImageFilter<SurfaceToImageMatch<short,short>::MaskImageType,DistanceImageType>::InputImageType,StructuringElementType>::InputImageType<BR> ]<BR> and<BR> [<BR> TPixel=InputPixelType,<BR> VDimension=2,<BR> TAllocator=itk::NeighborhoodAllocator<InputPixelType><BR> ]<BR> and<BR>
[<BR> TImage=itk::MorphologyImageFilter<itk::SignedDanielssonDistanceMapImageFilter<SurfaceToImageMatch<short,short>::MaskImageType,DistanceImageType>::InputImageType,itk::SignedDanielssonDistanceMapImageFilter<SurfaceToImageMatch<short,short>::MaskImageType,DistanceImageType>::InputImageType,StructuringElementType>::InputImageType<BR> ]</DIV>
<DIV>c:\Development\ThirdParty\Insight\Include\itkMorphologyImageFilter.txx(120): error C2665: 'itk::ConstNeighborhoodIterator<TImage>::__ctor' : none of the 3 overloads can convert parameter 1 from type 'const itk::Neighborhood<TPixel,VDimension,TAllocator>::SizeType'<BR> with<BR> [<BR> TImage=itk::SignedDanielssonDistanceMapImageFilter<SurfaceToImageMatch<short,short>::MaskImageType,DistanceImageType>::InputImageType<BR> ]<BR> and<BR> [<BR>
TImage=itk::SignedDanielssonDistanceMapImageFilter<SurfaceToImageMatch<short,short>::MaskImageType,DistanceImageType>::InputImageType<BR> ]<BR> and<BR> [<BR> TPixel=InputPixelType,<BR> VDimension=2,<BR> TAllocator=itk::NeighborhoodAllocator<InputPixelType><BR> ]<BR> c:\Development\ThirdParty\Insight\Include\itkConstNeighborhoodIterator.h(102): could be 'itk::ConstNeighborhoodIterator<TImage>::ConstNeighborhoodIterator(const itk::ConstNeighborhoodIterator<TImage>::SizeType &,const itk::ConstNeighborhoodIterator<TImage>::ImageType *,const
itk::ConstNeighborhoodIterator<TImage>::RegionType &)'<BR> with<BR> [<BR> TImage=itk::SignedDanielssonDistanceMapImageFilter<SurfaceToImageMatch<short,short>::MaskImageType,DistanceImageType>::InputImageType<BR> ]<BR> while trying to match the argument list '(const itk::Neighborhood<TPixel,VDimension,TAllocator>::SizeType, const itk::ImageToImageFilter<TInputImage,TOutputImage>::InputImageType *, std::allocator<_Ty>::value_type)'<BR> with<BR> [<BR> TPixel=InputPixelType,<BR>
VDimension=2,<BR> TAllocator=itk::NeighborhoodAllocator<InputPixelType><BR> ]<BR> and<BR> [<BR> TInputImage=itk::SignedDanielssonDistanceMapImageFilter<SurfaceToImageMatch<short,short>::MaskImageType,DistanceImageType>::InputImageType,<BR> TOutputImage=itk::SignedDanielssonDistanceMapImageFilter<SurfaceToImageMatch<short,short>::MaskImageType,DistanceImageType>::InputImageType<BR> ]<BR> and<BR> [<BR> <BR></DIV><p>__________________________________________________<br>Do You
Yahoo!?<br>Tired of spam? Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com