From 4c775139ae06244567ce4d454c659661d280ad8e Mon Sep 17 00:00:00 2001 From: Julien Malik <julien.malik@c-s.fr> Date: Mon, 21 Feb 2011 10:55:50 +0100 Subject: [PATCH] ENH: use InternalPixelType as precision type (instead of double) --- Code/BasicFilters/otbVectorImageToMatrixImageFilter.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Code/BasicFilters/otbVectorImageToMatrixImageFilter.h b/Code/BasicFilters/otbVectorImageToMatrixImageFilter.h index ae0a41aae1..87ee6f5e4c 100644 --- a/Code/BasicFilters/otbVectorImageToMatrixImageFilter.h +++ b/Code/BasicFilters/otbVectorImageToMatrixImageFilter.h @@ -81,7 +81,8 @@ public: itkStaticConstMacro(ImageDimension, unsigned int, TInputImage::ImageDimension); /** Type to use for computations. */ - typedef typename itk::NumericTraits<InternalPixelType>::RealType RealType; + //typedef typename itk::NumericTraits<InternalPixelType>::RealType RealType; + typedef InternalPixelType RealType; typedef itk::VariableLengthVector<RealType> RealPixelType; /** Smart Pointer type to a DataObject. */ -- GitLab