[ITK] [ITK-users] Fwd: error in ItkConceptchecking.h
Dženan Zukić
dzenanz at gmail.com
Fri Jul 21 10:46:09 EDT 2017
Hi Tapash,
in E:\tapash project\imagesim\utils\FilterUtils.h(84), "Concept requiring T
to be integer" means you should instantiate ConnectedComponentImageFilter
with OutputImage=ShortImage, *not* OutputImage=FloatImage.
If for some reason you want to convert your component indices into floats,
you can then apply CastImageFilter to do that.
Regards,
Dženan Zukić, PhD, Senior R&D Engineer, Kitware (Carrboro, N.C.)
On Fri, Jul 21, 2017 at 9:28 AM, tapash <tapash1991 at gmail.com> wrote:
> BoneSegmentation.cpp
> 6> Unknown compiler version - please run the configure tests and report
> the
> results
> 6>..\BoneSegmentation.cpp(141): warning C4996: 'mkdir': The POSIX name for
> this item is deprecated. Instead, use the ISO C++ conformant name: _mkdir.
> See online help for details.
> 6> C:\Program Files (x86)\Microsoft Visual Studio
> 12.0\VC\include\direct.h(140) : see declaration of 'mkdir'
> *6>e:\tapash
> project\insighttoolkit-4.6.0\modules\core\common\include\
> itkConceptChecking.h(729):
> error C2440: 'initializing' : cannot convert from
> 'itk::Concept::Detail::UniqueType_bool<true>' to
> 'itk::Concept::Detail::UniqueType_bool<false>'*
> 6> No user-defined-conversion operator available that can perform
> this conversion, or the operator cannot be called
> 6> e:\tapash
> project\insighttoolkit-4.6.0\modules\core\common\include\
> itkConceptChecking.h(728)
> : while compiling class template member function 'void
> itk::Concept::IsInteger<float>::Constraints::constraints(void)'
> 6> e:\tapash
> project\insighttoolkit-4.6.0\modules\core\common\include\
> itkConceptChecking.h(735)
> : see reference to function template instantiation 'void
> itk::Concept::IsInteger<float>::Constraints::constraints(void)' being
> compiled
> 6> e:\tapash
> project\insighttoolkit-4.6.0\modules\core\common\include\
> itkConceptChecking.h(735)
> : see reference to class template instantiation
> 'itk::Concept::IsInteger<float>::Constraints' being compiled
> 6> e:\tapash
> project\insighttoolkit-4.6.0\modules\core\common\include\
> itkConceptChecking.h(735)
> : while compiling class template member function 'void
> itk::Concept::IsInteger<float>::Enforcer(void)'
> 6> e:\tapash
> project\insighttoolkit-4.6.0\modules\segmentation\
> connectedcomponents\include\itkConnectedComponentImageFilter.h(143)
> : see reference to class template instantiation
> 'itk::Concept::IsInteger<float>' being compiled
> 6> E:\tapash project\imagesim\utils\FilterUtils.h(84) : see
> reference to class template instantiation
> 'itk::ConnectedComponentImageFilter<InputImage,OutputImage,TInputImage>'
> being compiled
> 6> with
> 6> [
> 6> InputImage=ShortImage
> 6> , OutputImage=FloatImage
> 6> , TInputImage=ShortImage
> 6> ]
> 6> e:\tapash project\imagesim\01-Preprocessing.h(128) : see
> reference to class template instantiation
> 'FilterUtils<ShortImage,FloatImage>' being compiled
> 6> BooleanOperationWidget.cpp
>
>
>
> --
> View this message in context: http://itk-insight-users.
> 2283740.n2.nabble.com/error-in-ItkConceptchecking-h-tp7590051p7590055.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/20170721/7c96ea26/attachment.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