[Insight-users] problem with SignedDanielssonDistanceMapImageFilter

Zhiyong Xie zyxie98 at yahoo.com
Fri May 6 11:18:29 EDT 2005


I tried to use SignedDanielssonDistanceMapImageFilter 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 *,const 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 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20050506/9c028574/attachment.htm


More information about the Insight-users mailing list