[Insight-users] MutualInformationEuler2DRegistration
Luis Ibanez
luis.ibanez at kitware.com
Fri Jul 2 17:01:50 EDT 2004
Hi Ying,
Something particular seems to be happening with the TIFF reader.
I was able to reproduce the problem that you reported by
taking your .jpg images and converting them to TIFF using
ImageMagick "convert" tool. It seems that, by default,
convert will attempt to create TIFF with 16-bit.
If instead of using ImageMagick convert, you use the
ImageReadWrite example in Insight/Examples/IO, set the
pixel type to "unsigned char" (instead of the current
unsigned short), read the .jpeg image and write it as
.tif. Then this newly generated image works fine with
the registration example.
Given that there are so many possible configurations for
the content of a TIFF image, it is likely that the TIFF
reader is not interpreting correctly one of those combinations.
Please try one of your real TIFF images (not the synthetic ones)
and let us know what you find.
You may want to try it first by just reading it and writing
it to disk with the ImageReadWrite example. Once you verify
that the image is saved without any degradation, then you
can try the registration program on it.
Regards,
Luis
-------------
Ying Du wrote:
> Hi Luis,
>
> The content of the TIFF images I tried to feed to the program are exactly
> the same as the those I posted (the only difference is the format). Since
> the contents are the same, so I assumed the parameters would be the similar
> and did not adjust it much. Guess I am wrong here. :) Yeh, I understand that
> for different images I need to fine-tuning the parameters differently, will
> go through the learning process. :)
>
> Thank you so much for the help!
>
> Ying
>
>
> ----- Original Message -----
> From: "Luis Ibanez" <luis.ibanez at kitware.com>
> To: "Ying Du" <duying at hotmail.com>
> Cc: <insight-users at itk.org>
> Sent: Friday, July 02, 2004 9:28 AM
> Subject: Re: [Insight-users] MutualInformationEuler2DRegistration
>
>
>
>>
>>Hi Ying,
>>
>>You have not done your homework !,
>>
>>The file that we sent you was intended only to make easier
>>for you to start your training. It was not intended to solve
>>your entire problem.
>>
>>When you feed the program with different images, you still
>>need to fine tune the parameters of the registration according
>>to the characteristics of the new images.
>>
>>What is the content of the TIFF images that you are feeding
>>now to the program ?
>>
>>Just the fact of being stored in TIFF shouldn't affect at all
>>the registration. You don't need to convert your images to JPEG
>>in order to succeed with the registration. You should rather look
>>at the particular characteristics of the image content.
>>
>>
>>For example:
>>
>> - The dynamic range of the pixel values
>> - The level of noise
>> - The distribution of homogeneous regions
>>
>>
>>and,... go through the learning process of registration as we
>>suggest you in the previous email. Read the Tutorials on
>>registration and the Registration chapter on the SoftwareGuide.
>>
>>
>>
>>You will not find the Example
>>
>> ImageRegistration13.cxx
>>
>>in the ITK 1.6 release, because the release was cut in
>>February 2004, and the example was to CVS added yesterday :-)
>>
>>
>>If you want to get this example you must use the CVS version.
>>
>>Instructions for downloading ITK through CVS are available
>>in the Download page
>>
>> http://www.itk.org/HTML/Download.php
>>
>>in the tutorials
>>
>> http://www.itk.org/HTML/Tutorials.htm
>>
>>and in the SoftwareGuide
>>
>> http://www.itk.org/ItkSoftwareGuide.pdf
>>
>>
>
> _______________________________________________
> 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