[Insight-users] Saving BSplineDeformableTransformed image

Lars Nygard lnygard at yahoo.com
Mon Nov 12 04:35:24 EST 2007


Hi Luis,

>> 0) One hour for resampling an image sounds excesive.
>> Are you compiling for "Release" ?
I don't know how to do this or how to avoid it. Here are some
variable in CMake:
CMAKE_CXX_FLAGS_RELEASE                     -0s -DNDEBUG

CMAKE_C_FLAGS_RELEASE                         -0s -DNDEBUG

CMAKE_EXE_LINKER_FLAGS_RELEASE 


CMAKE_MODULE_LINKER_FLAGS_RELEASE 


CMAKE_SHARED_LINKER_FLAGS_RELEASE 

>>(1) What interpolator are you using ?
 >>   The interpolator is the critical component of the
 >>   resampling process.
Im using the LinearInterpolator


>>2) BTW, Registering two images in 3D using BSpline Deformable
>>    Transform in just 5min sounds too good to be true.   :-/
>>
>>    Do you have any evidence supporting your assumption that
>>   the registration has actually succeded in 5 minutes ?

Well maybe it's a bit longer than 5 minutes but  the results looks ok. 
Im registering with three steps.
First a VersorRigid3d on a higher spacing, than a ScaleSkewVersorTransform
on a higher spacing and finally the BSplineDeformableTransform. So the images
are pretty well registered when I invoke the BSplineDeformableTransform.


3) Please post your code to the list....
The code pretty long and is divided in several files and classes. Is it possible to just attach it?

----- Original Message ----
From: Luis Ibanez <luis.ibanez at kitware.com>
To: Lars Nygard <lnygard at yahoo.com>
Cc: insight-users at itk.org
Sent: Sunday, November 11, 2007 2:13:03 PM
Subject: Re: [Insight-users] Saving BSplineDeformableTransformed image


Hi Lars,


0) One hour for resampling an image sounds excesive.
    Are you compiling for "Release" ?


1) What interpolator are you using ?
    The interpolator is the critical component of the
    resampling process.


2) BTW, Registering two images in 3D using BSpline Deformable
    Transform in just 5min sounds too good to be true.   :-/

    Do you have any evidence supporting your assumption that
    the registration has actually succeded in 5 minutes ?


3) Please post your code to the list....


    Thanks



        Luis



-------------------
Lars Nygard wrote:
> Hi everybody,
> 
> Im having a problem with saving a BSpline Transformed image.
> Im registering two MRI image (both about 100MB). Everything
> goes ok (takes maybe 5 min). But the saving of the image takes
> about an hour!! The image is 100MB. Is this normal?
> I use a resampleImageFilter with the following settings:
> Spacing: 0.41 0.41 0.6
> size: 512 600 350
> ElementType: MET_UCHAR
> 
> Then I use a ImageFileWriter and updating the writer takes an hour.
> Any ideas why this is taking so long?
> thanks,
> lars
> 
> 
> 
> 
>       _________________________________________________________
> Alt i ett. Få Yahoo! Mail med adressekartotek, kalender og
> notisblokk. http://no.mail.yahoo.com
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
> 





      _________________________________________________________
Alt i ett. Få Yahoo! Mail med adressekartotek, kalender og
notisblokk. http://no.mail.yahoo.com


More information about the Insight-users mailing list