[Insight-users] Image dimension problem
on DeformableRegistrationxx.cxx
Luis Ibanez
luis.ibanez at kitware.com
Sun Oct 24 16:47:00 EDT 2004
Hi Jung,
The error message that you get is quite clear:
>> RecursiveGaussianImageFilter(02CA8B60): 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."}" .
You are feeding this program with an image of dimensions:
256 x 256 x 1
What the error message says is that you should use at least
an image of dimensions
256 x 256 x 4
If what you have is a single slice, then you shouldn't manage it
as a 3D image, because there is no appropriate way of computing
the derivatives in the 3rd dimension.
Why are you passing a single slice to a program that is intended
to compute deformable registration between two volumes ?
Please let us know,
Thanks
Luis
--------------------
Jung Tai Chen wrote:
> Hi,
>
> I am trying to use DeformableRegistration6.cxx(B-spline) and
> DeformableRegistration2.cxx(demons) in my application.
> The problem is that the above examples didn't work if I use itk::image
> <float,3> to store a 2D image (256X256X1 with 1X1X1.5mm). The
> DeformableRegistration2.cxx's pipeline didn't throw any exception but
> the program still crashed. The DeformableRegistration6.cxx throwed an
> exception like this ""itk::ERROR:
> RecursiveGaussianImageFilter(02CA8B60): 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."}" .
> I can definitely sure that the image<>::xxxType::index, size, spacings
> were stored correct information.
>
> Can someone help me?
>
> Many thanks.
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
More information about the Insight-users
mailing list