[Insight-users] 3D SignedDanielssonDistanceMap

nawel h nawel_h5 at hotmail.com
Wed Jul 20 05:16:21 EDT 2005


Hi,
I'm using the SignedDanielssonDistanceMapImageFilter and it works perfectly 
in 2D.
The probleme is in 3D where I have several compilation errors
the first is:

\itk\source\InsightToolkit-2.0.0\Code\BasicFilters\itkMorphologyImageFilter.txx(62): 
errorC2664: '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>
        ]
        No user-defined-conversion operator available that can perform this 
conversion, or the operator cannot be called


A part of the code that I 'm running:

typedef itk::SignedDanielssonDistanceMapImageFilter<InternalImageType, 
InternalImageType > SignedDistanceMapType;
typedef itk::BinaryThresholdImageFilter< InternalImageType, 
InternalImageType> ThresholdingFilterType;
thresholder = ThresholdingFilterType::New();
  thresholder->SetLowerThreshold( 126.0 );
  thresholder->SetUpperThreshold( 256.0 );
  thresholder->SetOutsideValue(  0  );
  thresholder->SetInsideValue(  1 );
  thresholder->SetInput(BinaryMask);
  thresholder->Update();
  DistanceMap = SignedDistanceMapType::New();
  DistanceMap->SetInput(thresholder->GetOutput());
  DistanceMap->Update();
Any  advice is appreciated. Thanks!!!




More information about the Insight-users mailing list