[Insight-developers] RE: [Insight-users] TIFF images
Julien Jomier
jjomier at cs.unc.edu
Tue Nov 9 12:35:11 EST 2004
Charlene,
I put a fix in the CVS repository last night.
Your image is strange, the header says that the image is multipages (2
pages) but the data for the second page is missing. Now itkTIFFImageIO is
checking if the ImageType has a dimensionality of 3 before considering
multipages. You should still define your ImageType as a 2-dimensional image
and it should work.
Let us know if you have any further problems,
sorry for the delay,
Julien
> -----Original Message-----
> From: insight-users-bounces at itk.org
> [mailto:insight-users-bounces at itk.org] On Behalf Of Miller,
> James V (Research)
> Sent: Thursday, November 04, 2004 8:47 AM
> To: 'Charlene Tsai'; insight-users at itk.org
> Subject: RE: [Insight-users] TIFF images
>
>
> Charlene,
>
> What version of the TIFF code are you using? TIFF allows the
> first pixel in
> the file to be upper left corner or the lower left corner or
> the upper right
>
> corner or the lower right corner. Your TIFF file may be
> using a "corner"
> that is not properly implemented in ITK.
>
> It looks like itkTIFFImageIO.cxx (version 1.15) was committed on
> August 6 to fix an orientation problem. Then there are changes
> on October 14 and 15 (versions 1.22 and 1.23) that appear to fix an
> orientation problem.
>
> What version of Code/IO/itkTIFFImageIO.cxx do you have? The problem
> may have been fixed or there still may be an issue.
>
> What we try to is reformat the data coming out of the TIFF file to be
> in an ITK consistent orientation.
>
> Jim
>
>
> -----Original Message-----
> From: Charlene Tsai [mailto:tsaicharlene at hotmail.com]
> Sent: Wednesday, November 03, 2004 6:46 PM
> To: insight-users at itk.org
> Subject: [Insight-users] TIFF images
>
>
> I have one very weird tif image that produces a gradient
> magnitude image
> with a flipped y co-ordinate. With the same code, other tif
> images are doing
>
> fine. If I convert the image to png format, the output is
> correct. Any
> suggestions?
>
> Thanks.
>
> Charlene
>
> _________________________________________________________________
> Check out Election 2004 for up-to-date election news, plus
> voter tools and
> more! http://special.msn.com/msn/election2004.armx
>
> _______________________________________________
> 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-developers
mailing list