The documentation for this filter says the output image type must be a floating point image (float or double).<br><br>This requirements is because the filter is iterative and calculates gradients. If the output type is short, there will be considerable round-off, overflow, and round-off accumulation which could produce substantial artefacts.
<br><br>To process your image of shorts, you should be able to instantiate the filter with an input of an image of shorts and an output of an image of floats. <br><br>If you want the final result to be an image of shorts, then used a CastImageFilter after the curvature flow filter.
<br><br>Jim<br><br><br><div><span class="gmail_quote">On 5/6/06, <b class="gmail_sendername">Chase Yarbrough</b> <<a href="mailto:vergil@gmail.com">vergil@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style="direction: ltr;">It has been fixed in itkMinMaxCurvatureFlowFunction.txx, but now I am getting the same problem in itkLevelSetFunction.txx. Any ideas?<br><br>Thanks,<br></div><div style="direction: ltr;"><span class="sg">
Chase</span></div><div style="direction: ltr;"><span class="e" id="q_10b08b0b6863cdee_2"><br><br><div><span class="gmail_quote">On 4/17/06, <b class="gmail_sendername">
Karthik Krishnan</b> <<a href="mailto:Karthik.Krishnan@kitware.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Karthik.Krishnan@kitware.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Are you in CVS ?<br><br>I think this was fixed in CVS a year ago:<br><a href="http://www.itk.org/cgi-bin/viewcvs.cgi/Code/Algorithms/itkMinMaxCurvatureFlowFunction.txx?root=Insight&r1=1.22&r2=1.23" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.itk.org/cgi-bin/viewcvs.cgi/Code/Algorithms/itkMinMaxCurvatureFlowFunction.txx?root=Insight&r1=1.22&r2=1.23
</a><br><br>-karthik<br><br>Chase Yarbrough wrote:<br><br>> Hello,<br>><br>> I want to use the filter itkMinMaxCurvatureFlowFilter on an image that<br>> has scalars of type short. I am compiling with the Visual Studio .NET
<br>> 2003 compiler. I am getting the error that a call to std::sqrt inside<br>> of the filter is ambiguous, listing a few options with double or float<br>> parameters. Do I need to convert all of my scalars to double or
<br>> float, or is there another way around this? If I do have to convert<br>> them all, how can I do that?<br>><br>> Thanks,<br>> Chase Yarbrough<br>><br>>------------------------------------------------------------------------
<br>><br>>_______________________________________________<br>>Insight-users mailing list<br>><a href="mailto:Insight-users@itk.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Insight-users@itk.org
</a><br>><a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.itk.org/mailman/listinfo/insight-users</a><br>><br>><br></blockquote></div><br>
</span></div><br>_______________________________________________<br>Insight-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Insight-users@itk.org">Insight-users@itk.org</a><br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br><br><br></blockquote></div><br>