[Insight-users] test image for DeformableRegistration7.cxx and
DeformableRegistration8.cxx
Luis Ibanez
luis.ibanez at kitware.com
Mon Jan 10 17:41:16 EST 2005
Hi Jim,
Yes, these examples are intended for 3D images.
The problems is that you are passing filenames that are not
associated with any accepted fileformat:
out.1
out.2
out.3
you should use something like
out1.mhd
out2.mhd
out3.mhd
for using MetaImage fileformat
or
out1.hdr
out2.hdr
out3.hdr
for using Analyze fileformats
Please look at the Wiki FAQ for a full list of the
fileformat supported in ITK.
---
About your images: Are your ".img" files RAW data ?
if so, you *MUST* create MetaImage headers for those
files. In that way you will specify pixel type, number
of pixels, pixel spacing... etc as part of the content
of the MetaImage header.
-----------
How about trying with the BrainWeb images available
in the FTP data directory:
ftp://public.kitware.com/pub/itk/Data/
Regards,
Luis
-----------------
Jim wrote:
> Hi Luis,
>
> The DeformableRegistration7 and DeformableRegistration8 are meant for
> 3D right? I modified the line "typedef float PixelType;" to
> "typedef unsigned short PixelType; in DeformableRegistration7 for my
> 512x512x40 CT images. When I run it with the following command:
> DeformableRegistration7 image1.img image2.img out.1 out.2 out.3 out.4,
> I got an error message saying "This application has requested the
> Runtime to terminate it in an unusual way. Please contact the
> application's support team for more information."
>
> I think there is lots information needs to give to
> DeformableRegistration7, such as the image dimensions, pixel size,
> spacing, etc. I have look into the InsightDocumentations try to see
> any instructions for this example without success. I thought there
> must be some test images available somewhere I can test with before I
> test it on my own image data. If it runs fine, I can then either
> modify my image format to match test image or modify the example
> program to read my images.
>
> Thanks
>
> Jim
>
> On Sat, 08 Jan 2005 09:40:27 -0500, Luis Ibanez <luis.ibanez at kitware.com> wrote:
>
>>Hi Jim,
>>
>>For DeformableRegistration7.cxx do:
>>
>> DeformableRegistration7
>> fixedImage
>> movingImage
>> outputResampledMovingImage
>> [differenceImageAfterRegistration]
>> [differenceImageBeforeRegistration]
>> [deformationField]
>>
>>All in a single command line. Note that for the
>>deformation field you must use an image file format
>>that supports multiplecomponents, such as VTK or
>>MetaImage. The entries in-between "[]" are optional.
>>
>>For visualizing the deformation field you can use
>>ParaView:
>>
>> http://www.paraview.org
>>
>>For input images you coulde use:
>>
>> fixedImage = Insight/Examples/Data/
>> BrainProtonDensitySliceBorder20.png
>>
>> movingImage = Insight/Examples/Data/
>> BrainProtonDensitySliceBSplined10.png
>>
>>The same arguments are expected by DeformableRegistration8.
>>
>>Please let us know if you have further questions.
>>
>> Thanks
>>
>> Luis
>>
>>-------------------------------------------
>>Jim wrote:
>>
>>
>>>Hi,
>>>
>>>Where can I find instruction and test images for
>>>DeformableRegistration7.cxx and DeformableRegistration8.cxx.
>>>
>>>Thanks.
>>>
>>>Jim
>>>_______________________________________________
>>>Insight-users mailing list
>>>Insight-users at itk.org
>>>http://www.itk.org/mailman/listinfo/insight-users
>>>
>>>
>>
>>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
>
More information about the Insight-users
mailing list