If you&#39;re interested in a workaround, you can use CastImageFilter to cast to an image of floating point pixels.<div><div><br><div class="gmail_quote">On Fri, Dec 3, 2010 at 2:40 PM, Bill Lorensen <span dir="ltr">&lt;<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
We try to protect the user. It was a design decision by the itk developers.<br>
<br>
Not sure why you got that error.<br>
<div><div></div><div><br>
On Fri, Dec 3, 2010 at 2:29 PM, David Doria &lt;<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>&gt; wrote:<br>
&gt; On Fri, Dec 3, 2010 at 2:04 PM, Bill Lorensen &lt;<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>&gt; wrote:<br>
&gt;&gt; All of the edge detection filters require &quot;float&quot; data types. I assume<br>
&gt;&gt; this os because edge detection is sensitive to noise (and probably<br>
&gt;&gt; truncation errors).  As a test you could turn off concept checking and<br>
&gt;&gt; compare an unsigned char result with a float result.<br>
&gt;<br>
&gt; Even with concept checking off, I get errors. Shouldn&#39;t it be the<br>
&gt; user&#39;s responsibility to be aware of the truncation errors you<br>
&gt; mentioned?<br>
&gt;<br>
&gt;  typedef itk::Image&lt; float,  2 &gt;   FloatImageType;<br>
&gt;  typedef itk::Image&lt; unsigned char, 2 &gt;   UnsignedCharImageType;<br>
&gt;  typedef itk::LaplacianImageFilter&lt;<br>
&gt;                  UnsignedCharImageType, FloatImageType &gt;  filterType;<br>
&gt;<br>
&gt; /media/portable/Examples/c++/src/ITK/LaplacianImageFilter/LaplacianImageFilter.cxx:112:<br>
&gt;  instantiated from here<br>
&gt; /home/doriad/src/ITK/Code/BasicFilters/itkLaplacianImageFilter.txx:123:<br>
&gt; error: no matching function for call to<br>
&gt; ‘itk::NeighborhoodOperatorImageFilter&lt;itk::Image&lt;unsigned char, 2u&gt;,<br>
&gt; itk::Image&lt;float, 2u&gt;,<br>
&gt; float&gt;::OverrideBoundaryCondition(itk::ZeroFluxNeumannBoundaryCondition&lt;itk::Image&lt;float,<br>
&gt; 2u&gt; &gt;*)’<br>
&gt; /home/doriad/src/ITK/Code/BasicFilters/itkNeighborhoodOperatorImageFilter.h:114:<br>
&gt; note: candidates are: void<br>
&gt; itk::NeighborhoodOperatorImageFilter&lt;TInputImage, TOutputImage,<br>
&gt; TOperatorValueType&gt;::OverrideBoundaryCondition(itk::ImageBoundaryCondition&lt;TImage&gt;*)<br>
&gt; [with TInputImage = itk::Image&lt;unsigned char, 2u&gt;, TOutputImage =<br>
&gt; itk::Image&lt;float, 2u&gt;, TOperatorValueType = float]<br>
&gt;<br>
&gt; David<br>
&gt;<br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" 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" 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.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</div></div></blockquote></div><br>
</div></div>