j2k_to_image pgm component selection?

10 views
Skip to first unread message

jkimble

unread,
May 30, 2012, 9:42:30 AM5/30/12
to OpenJPEG

By default

j2k_to_image -i test.j2k -o out.pgm

Will output the first component of test.j2k to out.pgm. Is it possible
to specify a different component for output to a pgm? I don't see any
command line option for this though output to pgx seems to do exactly
that (though pgx is NOT a standard file format).

Mathieu Malaterre

unread,
May 30, 2012, 9:45:25 AM5/30/12
to open...@googlegroups.com
On Wed, May 30, 2012 at 3:42 PM, jkimble <hjki...@gmail.com> wrote:
>
> By default
>
>    j2k_to_image -i test.j2k -o out.pgm

$ j2k_to_image -i test.j2k -o out.ppm
$ ppmtorgb3 out.ppm

--
Mathieu

jkimble

unread,
May 30, 2012, 10:52:28 AM5/30/12
to OpenJPEG

Well yeah, and I had considered using convert (ImageMagick) to turn
the pgx files into pgm. I guess it just seemed odd that j2k_to_image
could break things out for a pgx but not a pgm. I'm looking at the
code now to see if I can make my own mods for this.

Thanks for the suggestion.

On May 30, 9:45 am, Mathieu Malaterre <mathieu.malate...@gmail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages