[Insight-users] problem with SignedDanielssonDistanceMapImageFilter

Karthik Krishnan Karthik.Krishnan at kitware.com
Fri May 6 12:11:50 EDT 2005


Yes that was a bug and Luis fixed it a month ago. Please update your cvs 
version.

Thanks
Regards
Karthik

Zhiyong Xie wrote:

> I tried to use SignedDanielssonDistanceMapImageFilter 
> <file:///E:/zxie/itk/DoxygenInsightToolkit-2.0.0/a03209.html> for 3D 
> image. It failed in compilation with following error. I checked the 
> source and found the line 136 define StructuringElementType as 2D 
> ( typedef BinaryBallStructuringElement< InputPixelType, 2 > 
> StructuringElementType ).
> Should this be modified to dimension based on TInputImage?
>  
> Thanks
>  
> Sean Zhiyong Xie
>  
> ********compile error *********
> 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'
>         with
>         [
>             VImageDimension=3
>         ]
>         and
>         [
>             TPixel=InputPixelType,
>             VDimension=2,
>             TAllocator=itk::NeighborhoodAllocator<InputPixelType>
>         ]
> 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'
>         with
>         [
>             
> TImage=itk::MorphologyImageFilter<itk::SignedDanielssonDistanceMapImageFilter<SurfaceToImageMatch<short,short>::MaskImageType,DistanceImageType>::InputImageType,itk::SignedDanielssonDistanceMapImageFilter<SurfaceToImageMatch<short,short>::MaskImageType,DistanceImageType>::InputImageType,StructuringElementType>::InputImageType
>         ]
>         and
>         [
>             TPixel=InputPixelType,
>             VDimension=2,
>             TAllocator=itk::NeighborhoodAllocator<InputPixelType>
>         ]
>         and
>         [
>             
> TImage=itk::MorphologyImageFilter<itk::SignedDanielssonDistanceMapImageFilter<SurfaceToImageMatch<short,short>::MaskImageType,DistanceImageType>::InputImageType,itk::SignedDanielssonDistanceMapImageFilter<SurfaceToImageMatch<short,short>::MaskImageType,DistanceImageType>::InputImageType,StructuringElementType>::InputImageType
>         ]
> 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'
>         with
>         [
>             
> TImage=itk::SignedDanielssonDistanceMapImageFilter<SurfaceToImageMatch<short,short>::MaskImageType,DistanceImageType>::InputImageType
>         ]
>         and
>         [
>             
> TImage=itk::SignedDanielssonDistanceMapImageFilter<SurfaceToImageMatch<short,short>::MaskImageType,DistanceImageType>::InputImageType
>         ]
>         and
>         [
>             TPixel=InputPixelType,
>             VDimension=2,
>             TAllocator=itk::NeighborhoodAllocator<InputPixelType>
>         ]
>         
> c:\Development\ThirdParty\Insight\Include\itkConstNeighborhoodIterator.h(102): 
> could be 
> 'itk::ConstNeighborhoodIterator<TImage>::ConstNeighborhoodIterator(const 
> itk::ConstNeighborhoodIterator<TImage>::SizeType &,const 
> itk::ConstNeighborhoodIterator<TImage>::ImageType *,con! st 
> itk::ConstNeighborhoodIterator<TImage>::RegionType &)'
>         with
>         [
>             
> TImage=itk::SignedDanielssonDistanceMapImageFilter<SurfaceToImageMatch<short,short>::MaskImageType,DistanceImageType>::InputImageType
>         ]
>         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)'
>         with
>         [
>             TPixel=InputPixelType,
>             VDimension=2,
>             TAllocator=itk::NeighborhoodAllocator<InputPixelType>
>         ]
>         and
>         [
>             
> TInputImage=itk::SignedDanielssonDistanceMapImageFilter<SurfaceToImageMatch<short,short>::MaskImageType,DistanceImageType>::InputImageType,
>             
> TOutputImage=itk::SignedDanielssonDistanceMapImageFilter<SurfaceToImageMatch<short,short>::MaskImageType,DistanceImageType>::InputImageType
>         ]
>         and
>         [
>      
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Insight-users mailing list
>Insight-users at itk.org
>http://www.itk.org/mailman/listinfo/insight-users
>  
>



More information about the Insight-users mailing list