[Vv] Deformation field error
Ryosuke Matsuo
ryosukematsuo1 at gmail.com
Wed Feb 1 09:39:24 CET 2012
Vivien and Rômulo,
Thanks for the suggestion.
As I tried it in vv (open the fixed3.png and overlay --> add deformation
field to current image), I got the following error at vtkOutputWindow:
"ERROR: in c:\work\vtk\common\vtkDataArrayTemplate.txx line 317 ...
vtkFloatArray (05D7D320): Unable to allocate 100664289 elements of ..."
and then the application stopped working (not responding).
Did I miss something here?
Best,
Ryo
On 1 February 2012 17:23, PINHO Romulo <romulo.pinho at lyon.unicancer.fr>wrote:
> Hi, Ryo
> Complementing Vivien's reply, make sure that you correctly set your
> dimensions when declaring you ITK transform. In principle, if your inputs
> are 2D images, your transform dimension should also be 2D
>
> itk::BSplineDeformableTransform< TScalarType, 2, VSplineOrder >
>
> Kind regards,
> Rômulo
>
> -----
> ps. my e-mail address has changed (see below)!
>
> Rômulo PINHO
> Post-doc Research Engineer
> Centre Léon Bérard
> 28, rue Laennec 69373
> Lyon, France +33 (0)4 78 78 51 50 romulo.pinho at lyon.unicancer.fr http://www.creatis.insa-lyon.fr/rio/RomuloPinho
>
>
> ------------------------------
> *From:* vv-bounces at creatis.insa-lyon.fr on behalf of Vivien Delmon
> *Sent:* Wed 2/1/2012 09:15
> *To:* vv at creatis.insa-lyon.fr
> *Subject:* Re: [Vv] Deformation field error
>
> On 02/01/2012 06:28 AM, Ryosuke Matsuo wrote:
> > Hi all,
> >
> > I just used vv for a simple image registration.
> > Fixed image contains a white circle at the center and moving image
> > contains an ellipse.
> > I registered the image using ITK (BSplinetransformation) and saved the
> > deformation field (.mhd).
> > When I tried to load the deformation field in vv (add deformation field
> > to current image), it said "Cannot import the vector field for this
> > image. Vector field dimension cannot be greater then (than?) reference
> > image!"
> >
> > How should I load the deformation field into the image using vv?
> >
> > I attached the fixed, moving and deformation field files, just in case.
> >
> > Thanks in advance,
> > Ryo
>
> Hi Ryosuke,
>
> The problem comes from the deformation field which is in 3D where your
> images are in 2D.
>
> If you want to open it anyway you can just modify the mhd file which is
> just a text file describing the data. I attached my modified deform3.mhd.
>
> vv fixed3.png --overlay moving3.png --vf deform3.mhd
>
> After modification vv can open it on my computer.
>
> Kind regards,
>
> --
> Vivien Delmon
> PhD student at CREATIS, Lyon
> Supported by ANRT and ELEKTA
> http://www.creatis.insa-lyon.fr/rio
>
> A: Because it messes up the order in which people normally read text.
> Q: Why is top-posting such a bad thing?
> A: Top-posting.
> Q: What is the most annoying thing in e-mail?
>
> _______________________________________________
> vv mailing list
> vv at creatis.insa-lyon.fr
> http://www.creatis.insa-lyon.fr/mailman/listinfo/vv
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.creatis.insa-lyon.fr/pipermail/vv/attachments/20120201/816738f1/attachment.html>
More information about the vv
mailing list