[Insight-users] File reading in MultiResMIRegistration
Lydia Ng
lng at insightful.com
Fri, 6 Feb 2004 14:46:04 -0800
Ziji,
The documentation was a bit out of date.
I have just updated the code and all documentation (in cvs). The main =
change
is that the application just uses ITKIO to read and write images so you =
no
longer need to specify endian-ness, size and spacing.
If you have a raw file, you can simply write a meta-header for it to =
work
with ITKIO (See http://www.itk.org/HTML/Data.htm).
If you want to use another pixel type instead of signed short - you can
modify the template parameter in line 37 of MultResMIRegisration.cxx
typedef itk::SimpleApp<signed short> AppType;
- Lydia
> -----Original Message-----
> From: Ziji Wu [mailto:Ziji.Wu at Dartmouth.EDU]
> Sent: Friday, February 06, 2004 1:33 PM
> To: insight-users at itk.org
> Subject: [Insight-users] File reading in MultiResMIRegistration
>=20
> Hi, there,
>=20
> I just got ITK 1.6 compiled on a SGI. But, I'm running into some =
problems
> while
> trying to give the MultiResMIRegistration application. It always =
complains
> about reading the input files. Here's the error message:
>=20
> ...
> Error while reading in fixed image.
> Error occured during registration
> itk::ExceptionObject caught
>=20
> itk::ImageFileReaderException (0x8145428)
> Location: "Unknown"
> File: /afs/ ... /InsightToolkit-1.6.0/Code/IO/itkImageFileReader.txx
> Line: 101
> Description: Could not create IO object for file fixed.img
> ...
>=20
> I'm sure the file name and dimensions in the parameter file were all
> correct,
> and the file sits right in the same folder . Any clue what caused this
> problem?
>=20
> Another question is about the image format. The ReadMe.pdf file =
attached
> to the
> application indicates that the image files should be in signed short
> format. If
> I'd like to use other formats, what should I do?
>=20
> Many thanks!
>=20
> Regards,
> Ziji
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users