[Vv] Deformation field error
PINHO Romulo
romulo.pinho at lyon.unicancer.fr
Wed Feb 1 09:23:10 CET 2012
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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.creatis.insa-lyon.fr/pipermail/vv/attachments/20120201/18bef16a/attachment.html>
More information about the vv
mailing list