[Insight-users] DeformableModle1.cxx example run error: The number of pixels along direction 2 is less than 4.

Dženan Zukić dzenanz at gmail.com
Fri Nov 9 02:11:35 EST 2012


You use 3D images in the code, and give 2D images as inputs. That means
that 3rd dimension (dim 2, as 0 is first) has only 1 pixel.


On Thu, Nov 8, 2012 at 7:44 PM, flydps <flydps at 163.com> wrote:

> **
> Hi all,
> I am testing the Deformable Models and Gibbs Prior of the itk user guide.
> When I run the example, there is an error as follow:
>
>  $ ./DeformableModel1 lena.bmp lenabinary.bmp output.bmp
> Exception caught when updating gradientMapFilter
>
> itk::ExceptionObject (0x1b36720)
>
> Location: "void itk::RecursiveSeparableImageFilter<TInputImage, TOutputImage>::BeforeThreadedGenerateData() [with TInputImage = itk::Image<float, 3u>, TOutputImage = itk::Image<float, 3u>]"
>
> File: /home/daipeishan/Downloads/InsightToolkit-4.2.0/Modules/Filtering/ImageFilterBase/include/itkRecursiveSeparableImageFilter.hxx
> Line: 275
>
> Description: itk::ERROR: RecursiveGaussianImageFilter(0x1b12750): The number of pixels along direction 2 is less than 4. This filter requires a minimum of four pixels along the dimension to be processed.
>
> What is the reason for the error? I use the same size image as input and
> mask image.
>
> Thank you!
>
> Peishan
>
>
>
>
> _____________________________________
> 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.php
>
> 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/20121109/a034810d/attachment.htm>


More information about the Insight-users mailing list