[Insight-users] Compilation warnigns from
VectorCurvatureAnisotropicDiffusionImageFilter
Luis Ibanez
luis.ibanez at kitware.com
Wed Dec 15 09:40:49 EST 2004
Hi Uwe,
It seems that you are instantiating this filter for an image of pixel
type char.
You may want to cast your image to pixel type float, and instantiate this
filter over an image of pixel type = float.
Please let us know if you still find any problems,
Thanks,
Luis
-------------------------
Dr. Uwe Köhler wrote:
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>Dear Luis,
>
>...
>
>P.S.: You got these warnings when using
>itk::VectorCurvatureAnisotropicDiffusionImageFilter and no changes when using
> diffusionFilter->SetTimeStep( 0.0625 );
> diffusionFilter->SetNumberOfIterations( 5 );
>
>Building object file ReadMultiModalDicomImages.o...
>/usr/local/include/InsightToolkit/BasicFilters/itkVectorCurvatureNDAnisotropicDiffusionFunction.txx:
>In
> member function `typename
> itk::VectorAnisotropicDiffusionFunction<TImage>::PixelType
> itk::VectorCurvatureNDAnisotropicDiffusionFunction<TImage>::ComputeUpdate(typename
> itk::VectorAnisotropicDiffusionFunction<TImage>::NeighborhoodType&, void*,
> typename itk::VectorAnisotropicDiffusionFunction<TImage>::FloatOffsetType&)
> [with TImage = main(int, char**)::VecImageType]':
>/usr/local/include/InsightToolkit/Common/itkNeighborhoodOperator.txx:74:
>instantiated from here
>/usr/local/include/InsightToolkit/BasicFilters/itkVectorCurvatureNDAnisotropicDiffusionFunction.txx:204:
>Warnung: assignment
> to `unsigned char' from `double'
>/usr/local/include/InsightToolkit/BasicFilters/itkVectorCurvatureNDAnisotropicDiffusionFunction.txx:204:
>Warnung: argument
> to `unsigned char' from `double'
>/usr/local/include/InsightToolkit/Common/itkDenseFiniteDifferenceImageFilter.txx:
>In
> member function `void itk::DenseFiniteDifferenceImageFilter<TInputImage,
> TOutputImage>::ThreadedApplyUpdate(typename
> itk::FiniteDifferenceImageFilter<TInputImage, TOutputImage>::TimeStepType,
> typename itk::FiniteDifferenceImageFilter<TInputImage,
> TOutputImage>::OutputImageType::RegionType&, int) [with TInputImage =
> main(int, char**)::VecImageType, TOutputImage = main(int,
> char**)::VecImageType]':
>/usr/local/include/InsightToolkit/Common/itkNeighborhoodOperator.txx:74:
>instantiated from here
>/usr/local/include/InsightToolkit/Common/itkDenseFiniteDifferenceImageFilter.txx:206:
>Warnung: passing
> `double' for argument 1 of `itk::Vector<T, NVectorDimension> itk::Vector<T,
> NVectorDimension>::operator*(const T&) const [with T = unsigned char,
> unsigned int NVectorDimension = 3]'
>
>Could there ba a problem? I am trying 500 iterations at the moment, but that
>does take ages.
>
>
>
>
More information about the Insight-users
mailing list