[Insight-users] Adaptive Histogram Equalization Image Filter with 3D image

Karthik Krishnan karthik.krishnan at kitware.com
Thu Oct 13 00:51:41 EDT 2011


I can only guess that your input and output images have been templated over
images with different dimensions.

On Wed, Oct 12, 2011 at 10:01 PM, Concetta Piazzese
<aliens30586 at hotmail.it>wrote:

>  Hi everyone,
> 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 throws an exception in
> itkUnaryFunctorImageFilter.txx at line 105:
>
> 97   for (i=0; i < Superclass::InputImageDimension; ++i)
> 98      {
> 99        outputSpacing[i] = inputSpacing[i];
> 100       outputOrigin[i] = inputOrigin[i];
> 101       for (j=0; j < Superclass::OutputImageDimension; j++)
> 102         {
> 103         if (j < Superclass::InputImageDimension)
> 104           {
> 105           outputDirection[j][i] = inputDirection[j][i];
> 106           }
> 107        else
> 108          {
> 109          outputDirection[j][i] = 0.0;
> 110          }
> 111        }
> 112      }
>
>
> and the exception:
> Unhandled exception at 0x00285d01 in itkAdaptiveHistogramEqualizationImageFilterTest.exe: 0xC0000005:
> Access violation reading location 0x3fe00010.
>
> I can't understand what's the problem. Can you help me?
> Concetta
>
>
>
> _____________________________________
> 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.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20111013/9233487d/attachment.htm>


More information about the Insight-users mailing list