[Insight-users] Texture feature extraction
Ralf Denhof
ralf.denhof at gmx.de
Sat Mar 17 09:16:13 EDT 2012
Hello,
I stumbled upon Brad's interesting contribution to the list and used
parts of his code as inspiration for mine. While compiling I encountered
the following problem.
Has anyone an idea to solve my problem? I'm really confused...
Ralf
code snippet:
typedef itk::Image<unsigned char, 2> Imagetype;
typedef typename ImageType::PixelType PixelType;
typedef typename itk::NumericTraits< PixelType >::RealType MeasurementType;
typedef itk::Statistics::DenseFrequencyContainer2
HistogramFrequencyContainerType;
typedef typename itk::Statistics::Histogram< MeasurementType,
HistogramFrequencyContainerType > HistogramType;
typedef
itk::Statistics::ScalarImageToCooccurrenceMatrixFilter<ImageType,HistogramType>
coocurenceFilterType;
typedef
itk::Statistics::HistogramToTextureFeaturesFilter<coocurenceFilterType::HistogramType>
featureFilterType;
gcc error message:
In file included from /usr/local/include/ITK-4.0/itkHistogram.h:529:0,
from /usr/local/include/ITK-4.0/itkImageToHistogramFilter.h:21,
from /home/ralf/projects/rd-ma-001/trunk/src/ToolWindowUI.h:5,
from /home/ralf/projects/rd-ma-001/trunk/src/ToolWindowUI.cxx:2:
/usr/local/include/ITK-4.0/itkHistogram.hxx: In member function âvoid
itk::Statistics::Histogram<TMeasurement,
TFrequencyContainer>::Initialize(const SizeType&) [with TMeasurement =
double, TFrequencyContainer = itk::Statistics::Histogram<double,
itk::Statistics::DenseFrequencyContainer2>,
itk::Statistics::Histogram<TMeasurement, TFrequencyContainer>::SizeType
= itk::Array<long unsigned int>]â:
/usr/local/include/ITK-4.0/itkHistogram.hxx:241:3: instantiated from
âvoid itk::Statistics::Histogram<TMeasurement,
TFrequencyContainer>::Initialize(const SizeType&,
itk::Statistics::Histogram<TMeasurement,
TFrequencyContainer>::MeasurementVectorType&,
itk::Statistics::Histogram<TMeasurement,
TFrequencyContainer>::MeasurementVectorType&) [with TMeasurement =
double, TFrequencyContainer = itk::Statistics::Histogram<double,
itk::Statistics::DenseFrequencyContainer2>,
itk::Statistics::Histogram<TMeasurement, TFrequencyContainer>::SizeType
= itk::Array<long unsigned int>,
itk::Statistics::Histogram<TMeasurement,
TFrequencyContainer>::MeasurementVectorType = itk::Array<double>]â
/usr/local/include/ITK-4.0/itkScalarImageToCooccurrenceMatrixFilter.hxx:157:3:
instantiated from âvoid
itk::Statistics::ScalarImageToCooccurrenceMatrixFilter<TImageType,
THistogramFrequencyContainer>::GenerateData() [with TImageType =
itk::Image<unsigned char, 2u>, THistogramFrequencyContainer =
itk::Statistics::Histogram<double,
itk::Statistics::DenseFrequencyContainer2>]â
/home/ralf/projects/rd-ma-001/trunk/src/ToolWindowUI.cxx:2240:1:
instantiated from here
/usr/local/include/ITK-4.0/itkHistogram.hxx:223:3: error: no matching
function for call to âitk::Statistics::Histogram<double,
itk::Statistics::DenseFrequencyContainer2>::Initialize(long unsigned
int&)â
/usr/local/include/ITK-4.0/itkHistogram.hxx:223:3: note: candidates are:
/usr/local/include/ITK-4.0/itkHistogram.hxx:177:1: note: void
itk::Statistics::Histogram<TMeasurement,
TFrequencyContainer>::Initialize(const SizeType&) [with TMeasurement =
double, TFrequencyContainer = itk::Statistics::DenseFrequencyContainer2,
itk::Statistics::Histogram<TMeasurement, TFrequencyContainer>::SizeType
= itk::Array<long unsigned int>]
/usr/local/include/ITK-4.0/itkHistogram.hxx:177:1: note: no known
conversion for argument 1 from âlong unsigned intâ to âconst
SizeType& {aka const itk::Array<long unsigned int>&}â
/usr/local/include/ITK-4.0/itkHistogram.hxx:237:1: note: void
itk::Statistics::Histogram<TMeasurement,
TFrequencyContainer>::Initialize(const SizeType&,
itk::Statistics::Histogram<TMeasurement,
TFrequencyContainer>::MeasurementVectorType&,
itk::Statistics::Histogram<TMeasurement,
TFrequencyContainer>::MeasurementVectorType&) [with TMeasurement =
double, TFrequencyContainer = itk::Statistics::DenseFrequencyContainer2,
itk::Statistics::Histogram<TMeasurement, TFrequencyContainer>::SizeType
= itk::Array<long unsigned int>,
itk::Statistics::Histogram<TMeasurement,
TFrequencyContainer>::MeasurementVectorType = itk::Array<double>]
/usr/local/include/ITK-4.0/itkHistogram.hxx:237:1: note: candidate
expects 3 arguments, 1 provided
/usr/local/include/ITK-4.0/itkHistogram.h:512:16: note: void
itk::Statistics::Histogram<TMeasurement,
TFrequencyContainer>::Initialize() [with TMeasurement = double,
TFrequencyContainer = itk::Statistics::DenseFrequencyContainer2]
/usr/local/include/ITK-4.0/itkHistogram.h:512:16: note: candidate
expects 0 arguments, 1 provided
More information about the Insight-users
mailing list