AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

2003.04.14 11:30 "planar to chunky", by Carter John-jcarte01

Hi

I though I'd get my facts straight before i tried implementing this conversion process.

I've got a tiff in planar format ie planar_configuration = 2. I've a question.

  1. a Is all the data for a pixel in the one strip eg in a strip 12 bytes long is the rgb data for the 1st pixel at locations 0,4,8 (assuming 24bit image) OR
  2. b is the image divide in 3 strips and the 1st strip is devoted to Red. ie the rgb data for the 1st pixel is in 1st location of each strip ?
  3. assuming the 1a is true, would the bytes for the 1st pixel in a 48bit image be in strip locations 01,45,89 ?
  4. if the image is also horizontal differencing ie predictor = 2 should the differencing be done after the strip has be chunkified :-)

thanks jc

____________________________

John Carter
BSS O&M Development group,
Motorola,
Mahon Industrial Estate,
Cork.

Tel:         +353 21 4807 637 (direct)
Fax:         +353 21 4357635  ( reception )

Mobile: +353 86 3947920
Email <mailto:john.a.carter@motorola.com> www <http://www.cork.cig.mot.com/~jcarte01/> <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Homer: There's 3 ways to do things, the right way, the wrong way, and the max power way.
Bart: isn't that the wrong way.
Homer: yea but faster.