convert jp2 to ascii pgm
Posted: 2011-05-11T08:54:13-07:00
Hi,
I'm using ImageMagick to convert in a bash script a jp2000 img into an ascii pgm one.
I used the following command:
I already obtained an ascii file, but numeric values of the image are in more rows,
ehile I would like to obtain values only one one row like this:
Is that possible? Thanks.
Luca
I'm using ImageMagick to convert in a bash script a jp2000 img into an ascii pgm one.
I used the following command:
Code: Select all
convert infile.jp2 -compress none outfile.pgm
ehile I would like to obtain values only one one row like this:
Code: Select all
P2
1000 100
255
1 2 3 4 5 6 7 8 9 ...
Luca