---------- Forwarded message ----------
From: DÅŸenan ZukiÄ <***@gmail.com>
Date: Thu, Jul 20, 2017 at 11:31 AM
Subject: Re: [ITK-users] error in ItkConceptchecking.h
To: Tapash Barman <***@gmail.com>
Hi Tapash,
in a working program I have a line like this:
typedef itk::MultiplyImageFilter<ImageType, *FloatImageType*, ImageType>
MultiplyType;
if I change it into this:
typedef itk::MultiplyImageFilter<ImageType, *double*, ImageType>
MultiplyType;
I get the below, many lines long error message. This is the kind of
complete error message I want you to copy-paste, not just the last line of
it. If you are using Visual Studio, it is in the build log, not error list.
Regards,
DÅŸenan ZukiÄ, PhD, Senior R&D Engineer, Kitware (Carrboro, N.C.)
C:\my\program.cxx(117): error C2660: 'itk::BinaryFunctorImageFilter<
TInputImage1,TInputImage2,TOutputImage,int>::SetConstant' : function does
not take 1 arguments
with
[
TInputImage1=ImageType
, TInputImage2=double
, TOutputImage=ImageType
]
C:\ITK\Modules\Filtering\ImageIntensity\include\itkMultiplyImageFilter.h(34)
: see declaration of 'itk::Functor::Mult'
C:\ITK\modules\filtering\imagefilterbase\include\
itkBinaryFunctorImageFilter.h(59) : see declaration of 'itk::
BinaryFunctorImageFilter<TInputImage1,TInputImage2,TOutputImage,int>::
ConstPointer'
with
[
TInputImage1=ImageType
, TInputImage2=double
, TOutputImage=ImageType
]
C:\ITK\modules\filtering\imagefilterbase\include\
itkBinaryFunctorImageFilter.h(111) : see declaration of 'itk::
BinaryFunctorImageFilter<TInputImage1,TInputImage2,TOutputImage,int>::
Input2ImagePixelType'
with
[
TInputImage1=ImageType
, TInputImage2=double
, TOutputImage=ImageType
]
C:\ITK\modules\core\common\include\itkConceptChecking.h(579) :
see declaration of 'D2'
C:\ITK\Modules\Filtering\ImageIntensity\include\itkMultiplyImageFilter.h(34)
: see declaration of 'itk::Functor::Mult'
C:\ITK\modules\core\common\include\itkConceptChecking.h(352) :
see declaration of 'itk::Concept::MultiplyOperator'
C:\ITK\modules\core\common\include\itkConceptChecking.h(352) :
see declaration of 'itk::Concept::MultiplyOperator'
C:\ITK\Modules\Filtering\ImageIntensity\include\itkMultiplyImageFilter.h(34)
: see declaration of 'itk::Functor::Mult'
C:\ITK\modules\filtering\imagefilterbase\include\
itkBinaryFunctorImageFilter.h(59) : see declaration of 'itk::
BinaryFunctorImageFilter<TInputImage1,TInputImage2,TOutputImage,int>::
ConstPointer'
with
[
TInputImage1=ImageType
, TInputImage2=double
, TOutputImage=ImageType
]
C:\ITK\modules\filtering\imagefilterbase\include\
itkBinaryFunctorImageFilter.h(111) : see declaration of 'itk::
BinaryFunctorImageFilter<TInputImage1,TInputImage2,TOutputImage,int>::
Input2ImagePixelType'
with
[
TInputImage1=ImageType
, TInputImage2=double
, TOutputImage=ImageType
]
C:\ITK\modules\core\common\include\itkConceptChecking.h(579) :
see declaration of 'D2'
C:\ITK\Modules\Filtering\ImageIntensity\include\itkMultiplyImageFilter.h(34)
: see declaration of 'itk::Functor::Mult'
C:\ITK\modules\core\common\include\itkConceptChecking.h(352) :
see declaration of 'itk::Concept::MultiplyOperator'
C:\ITK\modules\core\common\include\itkConceptChecking.h(352) :
see declaration of 'itk::Concept::MultiplyOperator'
C:\ITK\Modules\Filtering\ImageIntensity\include\itkMultiplyImageFilter.h(34)
: see declaration of 'itk::Functor::Mult'
C:\ITK\modules\filtering\imagefilterbase\include\
itkBinaryFunctorImageFilter.h(59) : see declaration of 'itk::
BinaryFunctorImageFilter<TInputImage1,TInputImage2,TOutputImage,int>::
ConstPointer'
with
[
TInputImage1=ImageType
, TInputImage2=double
, TOutputImage=ImageType
]
C:\ITK\modules\filtering\imagefilterbase\include\
itkBinaryFunctorImageFilter.h(111) : see declaration of 'itk::
BinaryFunctorImageFilter<TInputImage1,TInputImage2,TOutputImage,int>::
Input2ImagePixelType'
with
[
TInputImage1=ImageType
, TInputImage2=double
, TOutputImage=ImageType
]
C:\ITK\modules\core\common\include\itkConceptChecking.h(579) :
see declaration of 'D2'
C:\ITK\Modules\Filtering\ImageIntensity\include\itkMultiplyImageFilter.h(34)
: see declaration of 'itk::Functor::Mult'
C:\ITK\modules\core\common\include\itkConceptChecking.h(352) :
see declaration of 'itk::Concept::MultiplyOperator'
C:\ITK\modules\core\common\include\itkConceptChecking.h(352) :
see declaration of 'itk::Concept::MultiplyOperator'
C:\ITK\Modules\Filtering\ImageIntensity\include\itkMultiplyImageFilter.h(34)
: see declaration of 'itk::Functor::Mult'
C:\ITK\modules\filtering\imagefilterbase\include\
itkBinaryFunctorImageFilter.h(59) : see declaration of 'itk::
BinaryFunctorImageFilter<TInputImage1,TInputImage2,TOutputImage,int>::
ConstPointer'
with
[
TInputImage1=ImageType
, TInputImage2=double
, TOutputImage=ImageType
]
C:\ITK\modules\filtering\imagefilterbase\include\
itkBinaryFunctorImageFilter.h(111) : see declaration of 'itk::
BinaryFunctorImageFilter<TInputImage1,TInputImage2,TOutputImage,int>::
Input2ImagePixelType'
with
[
TInputImage1=ImageType
, TInputImage2=double
, TOutputImage=ImageType
]
C:\ITK\modules\core\common\include\itkConceptChecking.h(579) :
see declaration of 'D2'
C:\ITK\Modules\Filtering\ImageIntensity\include\itkMultiplyImageFilter.h(34)
: see declaration of 'itk::Functor::Mult'
C:\ITK\modules\core\common\include\itkConceptChecking.h(352) :
see declaration of 'itk::Concept::MultiplyOperator'
C:\ITK\modules\core\common\include\itkConceptChecking.h(352) :
see declaration of 'itk::Concept::MultiplyOperator'
C:\ITK\Modules\Filtering\ImageIntensity\include\itkMultiplyImageFilter.h(34)
: see declaration of 'itk::Functor::Mult'
C:\ITK\modules\filtering\imagefilterbase\include\
itkBinaryFunctorImageFilter.h(59) : see declaration of 'itk::
BinaryFunctorImageFilter<TInputImage1,TInputImage2,TOutputImage,int>::
ConstPointer'
with
[
TInputImage1=ImageType
, TInputImage2=double
, TOutputImage=ImageType
]
C:\ITK\modules\filtering\imagefilterbase\include\
itkBinaryFunctorImageFilter.h(111) : see declaration of 'itk::
BinaryFunctorImageFilter<TInputImage1,TInputImage2,TOutputImage,int>::
Input2ImagePixelType'
with
[
TInputImage1=ImageType
, TInputImage2=double
, TOutputImage=ImageType
]
C:\ITK\modules\core\common\include\itkConceptChecking.h(579) :
see declaration of 'D2'
C:\ITK\Modules\Filtering\ImageIntensity\include\itkMultiplyImageFilter.h(34)
: see declaration of 'itk::Functor::Mult'
C:\ITK\modules\core\common\include\itkConceptChecking.h(352) :
see declaration of 'itk::Concept::MultiplyOperator'
C:\ITK\modules\core\common\include\itkConceptChecking.h(352) :
see declaration of 'itk::Concept::MultiplyOperator'
C:\ITK\Modules\Filtering\ImageIntensity\include\itkMultiplyImageFilter.h(34)
: see declaration of 'itk::Functor::Mult'
C:\ITK\modules\filtering\imagefilterbase\include\
itkBinaryFunctorImageFilter.h(59) : see declaration of 'itk::
BinaryFunctorImageFilter<TInputImage1,TInputImage2,TOutputImage,int>::
ConstPointer'
with
[
TInputImage1=ImageType
, TInputImage2=double
, TOutputImage=ImageType
]
C:\ITK\modules\filtering\imagefilterbase\include\
itkBinaryFunctorImageFilter.h(111) : see declaration of 'itk::
BinaryFunctorImageFilter<TInputImage1,TInputImage2,TOutputImage,int>::
Input2ImagePixelType'
with
[
TInputImage1=ImageType
, TInputImage2=double
, TOutputImage=ImageType
]
C:\ITK\modules\core\common\include\itkConceptChecking.h(579) :
see declaration of 'D2'
C:\ITK\Modules\Filtering\ImageIntensity\include\itkMultiplyImageFilter.h(34)
: see declaration of 'itk::Functor::Mult'
C:\ITK\modules\core\common\include\itkConceptChecking.h(352) :
see declaration of 'itk::Concept::MultiplyOperator'
C:\ITK\modules\core\common\include\itkConceptChecking.h(352) :
see declaration of 'itk::Concept::MultiplyOperator'
C:\ITK\Modules\Filtering\ImageIntensity\include\itkMultiplyImageFilter.h(34)
: see declaration of 'itk::Functor::Mult'
C:\ITK\modules\filtering\imagefilterbase\include\
itkBinaryFunctorImageFilter.h(59) : see declaration of 'itk::
BinaryFunctorImageFilter<TInputImage1,TInputImage2,TOutputImage,int>::
ConstPointer'
with
[
TInputImage1=ImageType
, TInputImage2=double
, TOutputImage=ImageType
]
C:\ITK\modules\filtering\imagefilterbase\include\
itkBinaryFunctorImageFilter.h(111) : see declaration of 'itk::
BinaryFunctorImageFilter<TInputImage1,TInputImage2,TOutputImage,int>::
Input2ImagePixelType'
with
[
TInputImage1=ImageType
, TInputImage2=double
, TOutputImage=ImageType
]
C:\ITK\modules\core\common\include\itkConceptChecking.h(579) :
see declaration of 'D2'
C:\ITK\Modules\Filtering\ImageIntensity\include\itkMultiplyImageFilter.h(34)
: see declaration of 'itk::Functor::Mult'
C:\ITK\modules\core\common\include\itkConceptChecking.h(352) :
see declaration of 'itk::Concept::MultiplyOperator'
C:\ITK\modules\core\common\include\itkConceptChecking.h(352) :
see declaration of 'itk::Concept::MultiplyOperator'
C:\ITK\Modules\Filtering\ImageIntensity\include\itkMultiplyImageFilter.h(34)
: see declaration of 'itk::Functor::Mult'
C:\ITK\modules\filtering\imagefilterbase\include\
itkBinaryFunctorImageFilter.h(59) : see declaration of 'itk::
BinaryFunctorImageFilter<TInputImage1,TInputImage2,TOutputImage,int>::
ConstPointer'
with
[
TInputImage1=ImageType
, TInputImage2=double
, TOutputImage=ImageType
]
C:\ITK\modules\filtering\imagefilterbase\include\
itkBinaryFunctorImageFilter.h(111) : see declaration of 'itk::
BinaryFunctorImageFilter<TInputImage1,TInputImage2,TOutputImage,int>::
Input2ImagePixelType'
with
[
TInputImage1=ImageType
, TInputImage2=double
, TOutputImage=ImageType
]
C:\ITK\modules\core\common\include\itkConceptChecking.h(579) :
see declaration of 'D2'
C:\ITK\Modules\Filtering\ImageIntensity\include\itkMultiplyImageFilter.h(34)
: see declaration of 'itk::Functor::Mult'
C:\ITK\modules\core\common\include\itkConceptChecking.h(352) :
see declaration of 'itk::Concept::MultiplyOperator'
C:\ITK\modules\core\common\include\itkConceptChecking.h(352) :
see declaration of 'itk::Concept::MultiplyOperator'
C:\ITK\Modules\Filtering\ImageIntensity\include\itkMultiplyImageFilter.h(34)
: see declaration of 'itk::Functor::Mult'
C:\ITK\modules\filtering\imagefilterbase\include\
itkBinaryFunctorImageFilter.h(59) : see declaration of 'itk::
BinaryFunctorImageFilter<TInputImage1,TInputImage2,TOutputImage,int>::
ConstPointer'
with
[
TInputImage1=ImageType
, TInputImage2=double
, TOutputImage=ImageType
]
C:\ITK\modules\filtering\imagefilterbase\include\
itkBinaryFunctorImageFilter.h(111) : see declaration of 'itk::
BinaryFunctorImageFilter<TInputImage1,TInputImage2,TOutputImage,int>::
Input2ImagePixelType'
with
[
TInputImage1=ImageType
, TInputImage2=double
, TOutputImage=ImageType
]
C:\ITK\modules\core\common\include\itkConceptChecking.h(579) :
see declaration of 'D2'
C:\ITK\Modules\Filtering\ImageIntensity\include\itkMultiplyImageFilter.h(34)
: see declaration of 'itk::Functor::Mult'
C:\ITK\modules\core\common\include\itkConceptChecking.h(352) :
see declaration of 'itk::Concept::MultiplyOperator'
C:\ITK\modules\core\common\include\itkConceptChecking.h(352) :
see declaration of 'itk::Concept::MultiplyOperator'
Hii..sir the error is in the itkconceptcheckink.h file..if u open this
header file u can see this In integer template
Post by Dženan ZukiÄHi Tapash,
it looks like you are trying to instantiate a template class with a type
which that class does not support. If you give us the complete error
message (including where it is being originally caused from) we should be
able to help you more meaningfully.
Regards,
DÅŸenan ZukiÄ, PhD, Senior R&D Engineer, Kitware (Carrboro, N.C.)
Post by tapashwhile I trying to build my project. its throwing an error
Error 42 error C2440: 'initializing' : cannot convert from
'itk::Concept::Detail::UniqueType_bool<true>' to
'itk::Concept::Detail::UniqueType_bool<false>'
plz help me to remove this error
--
View this message in context: http://itk-insight-users.22837
40.n2.nabble.com/error-in-ItkConceptchecking-h-tp7590051.html
Sent from the ITK Insight Users mailing list archive at Nabble.com.
_____________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
http://www.kitware.com/products/protraining.php
http://www.itk.org/Wiki/ITK_FAQ
http://public.kitware.com/mailman/listinfo/insight-users