[ITK] [ITK-users] exponential of values of a pointset

Dženan Zukić dzenanz at gmail.com
Wed Sep 12 13:24:27 EDT 2018


Hi Ian,

there are many ways to do some custom processing for unary or binary per
pixel operations. This
<https://discourse.itk.org/t/thresholding-a-mask/1270/2> and this
<https://discourse.itk.org/t/thresholding-a-mask/1270/3> answer to a recent
question should help you.

Regards,
Dženan

On Tue, Sep 11, 2018 at 2:32 PM Ian Malone <i.malone at ucl.ac.uk> wrote:

> Hi, I'm writing a filter in ITK-5.0 and trying to get exponential values
> of pointset data, however I seem to be running into problems with the
> template for itkExpImageFilter not liking the fact the values are
> represented as itk::Vector<float, 1u>. Is there any way around this
> short of writing a filter for it?
>
> /tmp/myitk/ITK/Modules/Filtering/ImageIntensity/include/itkExpImageFilter.h:
>
> In instantiation of ‘TOutput itk::Functor::Exp<TInput,
> TOutput>::operator()(const TInput&) const [with TInput =
> itk::Vector<float, 1u>; TOutput = itk::Vector<float, 1u>]’:
>
>
> /tmp/myitk/ITK/Modules/Filtering/ImageIntensity/include/itkExpImageFilter.h:51:69:
>
> error: invalid static_cast from type ‘const itk::Vector<float, 1u>’ to
> type ‘double’
>       return static_cast<TOutput>( std::exp( static_cast<double>( A ) ) );
>
>
> Thanks,
>
> Ian
>
> The ITK community is transitioning from this mailing list to
> discourse.itk.org. Please join us there!
> ________________________________
> 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:
> https://itk.org/mailman/listinfo/insight-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://itk.org/pipermail/community/attachments/20180912/08df16c5/attachment.html>
-------------- next part --------------
The ITK community is transitioning from this mailing list to discourse.itk.org. Please join us there!
________________________________
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:
https://itk.org/mailman/listinfo/insight-users


More information about the Community mailing list