[ITK] [ITK-users] Fwd: error in ItkConceptchecking.h
Dženan Zukić
dzenanz at gmail.com
Thu Jul 20 11:32:39 EDT 2017
---------- Forwarded message ----------
From: Dženan Zukić <dzenanz at gmail.com>
Date: Thu, Jul 20, 2017 at 11:31 AM
Subject: Re: [ITK-users] error in ItkConceptchecking.h
To: Tapash Barman <tapash1991 at 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'
On Thu, Jul 20, 2017 at 11:14 AM, Tapash Barman <tapash1991 at gmail.com>
wrote:
> Hii..sir the error is in the itkconceptcheckink.h file..if u open this
> header file u can see this In integer template
> On 20-Jul-2017 8:36 pm, "Dženan Zukić" <dzenanz at gmail.com> wrote:
>
>> 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.)
>>
>> On Thu, Jul 20, 2017 at 9:52 AM, tapash <tapash1991 at gmail.com> wrote:
>>
>>> while 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
>>>
>>> Kitware offers ITK Training Courses, for more information visit:
>>> http://www.kitware.com/products/protraining.php
>>>
>>> Please keep messages on-topic and check the ITK FAQ at:
>>> http://www.itk.org/Wiki/ITK_FAQ
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://public.kitware.com/mailman/listinfo/insight-users
>>>
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20170720/ed65e647/attachment-0001.html>
-------------- next part --------------
_____________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php
Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users
More information about the Community
mailing list