[Insight-users] Deformable Registration Output ?
Luis Ibanez
luis.ibanez at kitware.com
Sun, 01 Feb 2004 14:05:38 -0500
Hi Hari,
Your problem is probably on the visualization side.
What software are you using for visualizing the
output image of the FEM deformable registration ?
This file with extension .hdr is in Analyze format.
You can use any of the following applications for
visualizaing the data:
- VolView
The free version can be downloaded from
http://www.kitware.com/products/volview.html
- ImageViewer
In InsightApplications/ImageViewer
(it requires FLTK)
----
The reason why the PNG image looks black after you
convert it with the ImageReadWrite example, is that
ImageReadWrite by default uses 16bits/pixel (the
pixel type is "unsigned short"). Most simple viewers
do not normalize the intensity of images before
display, so the actual content of the image, which
is about 0-255 looks very dark in the full dynamic
range of 0-65535 [16 bits]. You can modify the
program ImageReadWrite in order to use "unsigned
char" or use a better viewer, such as the application
"ImageViewer" above.
---
Please run the following test and let us know
how it works for you:
Take the following two images (4 files)
Insight/Examples/Data/RatLung1.mha
Insight/Examples/Data/RatLung1.raw
Insight/Examples/Data/RatLung2.mha
Insight/Examples/Data/RatLung2.raw
copy them to your working directory and
execute the Demons example by typing the
following command:
DeformableRegistration1.exe
RatLung1.mha RatLung2.mha RatRegistered.png
(all in a single line).
The output .png file should be visible even
with cheap viewers.
Regards,
Luis
--------------------------------------------
Hari Sundar wrote:
> Hi,
>
> I was trying out the two deformable registration examples (itk-1.4). I am
> not able to see anything in the output. I get the warped image from the
> FEM based registration as a .hdr and a raw file. I am not able to read the
> header. I tried using ImageReadWrite to convert it into a png file, but
> the image is blank.
>
> Similarly in the demons registration, if I give the output as a png file,
> i can't see anything.
>
> What am I doing wrong here ?
>
> thanks,
> -Hari
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>