[Vv] Deformation field error

Vivien Delmon vivien.delmon at creatis.insa-lyon.fr
Wed Feb 1 11:31:47 CET 2012


On 02/01/2012 09:39 AM, Ryosuke Matsuo wrote:
> 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

I tried on my vv version and it works perfectly.

Your error says that you don't have enough memory to allocate a 
sufficiently large array. On my computer vv takes 1.185 Go of virtual 
memory and 114 Mo of real memory with this configuration.

> On 1 February 2012 17:23, PINHO Romulo <romulo.pinho at lyon.unicancer.fr
> <mailto: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  <tel:%2B33%20%280%294%2078%2078%2051%2050>
>     romulo.pinho at lyon.unicancer.fr  <mailto:romulo.pinho at lyon.unicancer.fr>
>     http://www.creatis.insa-lyon.fr/rio/RomuloPinho
>
>
>     ------------------------------------------------------------------------
>     *From:* vv-bounces at creatis.insa-lyon.fr
>     <mailto: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 <mailto: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?


More information about the vv mailing list