I can only guess that your input and output images have been templated over images with different dimensions.<br><br><div class="gmail_quote">On Wed, Oct 12, 2011 at 10:01 PM, Concetta Piazzese <span dir="ltr"><<a href="mailto:aliens30586@hotmail.it">aliens30586@hotmail.it</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div dir="ltr">
Hi everyone,<br>I'm trying to use the Adaptive Histogram Equalization Image Filter with 3D image (mhd extension). I used the proper image template (3 Dimensions), but when i try to run the code, the filter <font style="font-size:10pt" face="Tahoma" size="2">throws an
exception in itkUnaryFunctorImageFilter.txx at line 105:<br><br></font><pre><font face="Tahoma">97 for (i=0; i < Superclass::InputImageDimension; ++i)</font><font face="Tahoma"><br></font><font face="Tahoma">98 {</font><font face="Tahoma"><br>
</font><font face="Tahoma">99 outputSpacing[i] = inputSpacing[i];</font><font face="Tahoma"><br></font><font face="Tahoma">100 outputOrigin[i] = inputOrigin[i];</font><font face="Tahoma"><br></font><font face="Tahoma">101 for (j=0; j < Superclass::OutputImageDimension; j++)</font><font face="Tahoma"><br>
</font><font face="Tahoma">102 {</font><font face="Tahoma"><br></font><font face="Tahoma">103 if (j < Superclass::InputImageDimension)</font><font face="Tahoma"><br></font><font face="Tahoma">104 {</font><font face="Tahoma"><br>
</font><font face="Tahoma">105 outputDirection[j][i] = inputDirection[j][i];</font><font face="Tahoma"><br></font><font face="Tahoma">106 }</font><font face="Tahoma"><br></font><font face="Tahoma">107 else</font><font face="Tahoma"><br>
</font><font face="Tahoma">108 {</font><font face="Tahoma"><br></font><font face="Tahoma">109 outputDirection[j][i] = 0.0;</font><font face="Tahoma"><br></font><font face="Tahoma">110 }</font><font face="Tahoma"><br>
</font><font face="Tahoma">111 }</font><font face="Tahoma"><br></font><font face="Tahoma">112 }</font><span><font face="Tahoma"><br></font><font face="Tahoma"><br></font><font face="Tahoma"><br></font><font face="Tahoma">and the exception:</font><font face="Tahoma"><br>
</font><font face="Tahoma">Unhandled exception at 0x00285d01 in itkAdaptiveHistogramEqualizationImageFilterTest.exe: 0xC0000005: </font><font face="Tahoma"><br></font><font face="Tahoma">Access violation reading location 0x3fe00010. <br>
<br></font><font face="Tahoma">I can't understand what's the problem. Can you help me?</font><font face="Tahoma"><br></font><font color="#888888"><font face="Tahoma">Concetta</font><br></font></span></pre><br>                                            </div>
</div>
<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>
<br></blockquote></div><br>