[Insight-users] Tif RGB wrong way around?
John Biddiscombe
jbiddiscombe at skippingmouse.co.uk
Thu Jul 8 12:55:40 EDT 2004
I've connected itk::TiffImageIO to a vtk pipeline and found that when
reading RGB colour images the data looks as though its GBR instead of RGB.
Red and blue channels swapped. I notice that the Tif test in testing/code/io
uses a black and white image with R=G=B channels so this wouldn't be
spotted.
Can anyone else easily check if TiffImageIO is getting R and B the wrong way
around? It might be me passing the data into vtk, but since I'm using
SetImportVoidPointer directly and not modifying the actual pixels, it should
be the same as when it was read.
thanks
JB
More information about the Insight-users
mailing list