<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Hi Ian,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">there are many ways to do some custom processing for unary or binary per pixel operations. <a href="https://discourse.itk.org/t/thresholding-a-mask/1270/2">This</a> and <a href="https://discourse.itk.org/t/thresholding-a-mask/1270/3">this</a> answer to a recent question should help you.</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Regards,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Dženan</div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Sep 11, 2018 at 2:32 PM Ian Malone <<a href="mailto:i.malone@ucl.ac.uk">i.malone@ucl.ac.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, I'm writing a filter in ITK-5.0 and trying to get exponential values <br>
of pointset data, however I seem to be running into problems with the <br>
template for itkExpImageFilter not liking the fact the values are <br>
represented as itk::Vector<float, 1u>. Is there any way around this <br>
short of writing a filter for it?<br>
<br>
/tmp/myitk/ITK/Modules/Filtering/ImageIntensity/include/itkExpImageFilter.h: <br>
In instantiation of ‘TOutput itk::Functor::Exp<TInput, <br>
TOutput>::operator()(const TInput&) const [with TInput = <br>
itk::Vector<float, 1u>; TOutput = itk::Vector<float, 1u>]’:<br>
<br>
<br>
/tmp/myitk/ITK/Modules/Filtering/ImageIntensity/include/itkExpImageFilter.h:51:69: <br>
error: invalid static_cast from type ‘const itk::Vector<float, 1u>’ to <br>
type ‘double’<br>
      return static_cast<TOutput>( std::exp( static_cast<double>( A ) ) );<br>
<br>
<br>
Thanks,<br>
<br>
Ian<br>
<br>
The ITK community is transitioning from this mailing list to <a href="http://discourse.itk.org" rel="noreferrer" target="_blank">discourse.itk.org</a>. Please join us there!<br>
________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" rel="noreferrer" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://itk.org/mailman/listinfo/insight-users" rel="noreferrer" target="_blank">https://itk.org/mailman/listinfo/insight-users</a><br>
</blockquote></div>