Raw GRAY/RGB images
Posted: 2006-10-09T16:09:13-07:00
Hi,
I'm trying to convert some raw (.gray, .rgb) images to ppm/pgm files. For gray images, I do something like
convert -size 1024x976 -depth 8 af1.gray af1.pgm
This works fine, however, I want to be able to have other options such as:
1.) specify file header size (meaning convert.exe will ignore the specified number of bytes at the beginning before converting the raw to pnm)
2.) For .rgb images, I would like to specific things like color order (RGB or BGR), Interleaved (RGB RGB... ) or Planar (RRR... GGG... BBB...), etc.
I'm not sure if ImageMagick has this type of options for converting raw to pnm. I was having trouble finding them.
Thanks for your time,
onyee
I'm trying to convert some raw (.gray, .rgb) images to ppm/pgm files. For gray images, I do something like
convert -size 1024x976 -depth 8 af1.gray af1.pgm
This works fine, however, I want to be able to have other options such as:
1.) specify file header size (meaning convert.exe will ignore the specified number of bytes at the beginning before converting the raw to pnm)
2.) For .rgb images, I would like to specific things like color order (RGB or BGR), Interleaved (RGB RGB... ) or Planar (RRR... GGG... BBB...), etc.
I'm not sure if ImageMagick has this type of options for converting raw to pnm. I was having trouble finding them.
Thanks for your time,
onyee