[Insight-users] volumes in ITK

Dhananjay Kulkarni dkulkarni@uh.edu
Mon, 08 Apr 2002 18:03:04 -0500


Hi,

I am trying to use the "Multi-modal 3D image registration using mutual
information maximization" example.
I have successfully compiled it with the ITK compilation  and I have the
executable.

However I am facing problems running it with a volume. I have a raw  slice
(datasets) and I cannot make it run although the site information on the
example says so -

" This application reads in two 3D raw image volumes: the target volume and
the reference volume. The application then iteratively estimates the rigid
transform that will align the reference onto the target volume. "

Then name of the dataset filenames is as follows.

Target files : bright-1.1 , bright-1.2 , bright-1.3  ...... bright-1.12  (12
slices)
Reference files : black-1.1 , black-1.2 , black-1.3  ...... black-1.12  (12
slices)

I want the example to read this volume and generate the registered volume
as  regis-1.raw , regis-2.raw .....regis-12.raw.




---------------------------------------------------------------

My param file is :::::::

bright-1
1
256 256 12
1.25 1.25 1
black-1
1
256 256 12
1.25 1.25 1
1
1 1 1
1 1 1
10
1
1

regi-1
1
1
PGM


------------------------------------------------------------------------




The output is :::::

C:\ITK Test\Code\ITKImageTest> MultiResMIRegistration params.txt
Target filename: bright-1
Big Endian: 1
Image Size: [256, 256, 1]Image Spacing: 1.25 1.25 1

Reference filename: black-1
Big Endian: 1
Image Size: [256, 256, 1]Image Spacing: 1.25 1.25 1

Number of levels: 1
Target shrink factors: 1 1 1
Reference shrink factors: 1 1 1
Number of iterations: 10
Learning rates: 1
Translation scales: 1

Registered image filename: regi-1
Big Endian: 1

Dump PGM files: 1
PGM directory: PGM

Reading in target.
Error while reading in target.

C:\ITK Test\Code\ITKImageTest> MultiResMIRegistrati
Target filename: bright-1
Big Endian: 1
Image Size: [256, 256, 1]Image Spacing: 1.25 1.25 1

Reference filename: black-1
Big Endian: 1
Image Size: [256, 256, 1]Image Spacing: 1.25 1.25 1

Number of levels: 1
Target shrink factors: 1 1 1
Reference shrink factors: 1 1 1
Number of iterations: 10
Learning rates: 1
Translation scales: 1

Registered image filename: regi-1
Big Endian: 1

Dump PGM files: 1
PGM directory: PGM

Reading in target.
Error while reading in target.









Please help.

Thanks,
Dhananjay Kulkarni.