Debian Codegraph @

upstream/debian-unstable/man1/jpeg2ktopam.1

raw
1 \
2 .\" This man page was generated by the Netpbm tool 'makeman' from HTML source.
3 .\" Do not hand-hack it! If you have bug fixes or improvements, please find
4 .\" the corresponding HTML page on the Netpbm website, generate a patch
5 .\" against that, and send it to the Netpbm maintainer.
6 .TH "Jpeg2ktopam User Manual" 1 "08 October 2009" "netpbm documentation"
7
8 .SH NAME
9 jpeg2ktopam - convert JPEG-2000 code stream to PAM/PNM
10
11 .UN synopsis
12 .SH SYNOPSIS
13
14 \fBjpeg2ktopam\fP
15 [\fB-verbose\fP]
16 [\fB-debuglevel=\fP\fInumber\fP]
17 \fIfilename\fP
18
19 .SH OPTION USAGE
20 .PP
21 Minimum unique abbreviation of option is acceptable. You may use double
22 hyphens instead of single hyphen to denote options. You may use white
23 space in place of the equals sign to separate an option name from its value.
24
25 .UN description
26 .SH DESCRIPTION
27 .PP
28 This program is part of
29 .BR "Netpbm" (1)\c
30 \&.
31 .PP
32 \fBjpeg2ktopam\fP converts the named JPEG-2000 file (JP2 or JPC),
33 or Standard Input if no file is named, to a PBM, PGM, PPM, or PAM
34 file on Standard Output.
35 .PP
36 The JPEG-2000 specification specifies two different formats: JP2 and
37 JPEG-2000 code stream (JPC). JP2 represents a visual image quite
38 specifically, whereas JPC is a more or less arbitrary array of codes. A JP2
39 image contains a JPC stream and metadata describing how that stream represents
40 a visual image. \fBjpeg2ktopam\fP converts both.
41 .PP
42 If the color space identified in the image is grayscale
43 (JAS_IMAGE_CS_GRAY), \fBjpeg2ktopam\fP generates a PGM image, unless the
44 image contains only one bit per pixel, in which case \fBjpeg2ktopam\fP
45 generates PBM. If the color space is RGB (JAS_IMAGE_CS_RGB),
46 \fBjpeg2ktopam\fP generates a PPM image. If the input image is anything
47 else, \fBjpeg2ktopam\fP generates a PAM image with no tuple type identified.
48 .PP
49 In the PGM and PPM cases, \fBjpeg2ktopam\fP assumes the intensity
50 values in the input image have the same meaning as for PGM and PPM.
51 One thing that implies is the ITU-R Recommendation BT.709 color space,
52 which means the assumption is false for JP2 input. JP2 input uses
53 SRGB color encoding. So if you use \fBjpeg2ktopam\fP to convert a
54 JP2 image to PPM, it changes the visual image (slightly) -- the colors
55 in the output are not the same as in the input.
56 .PP
57 In the PAM image, the output samples are numerically identical to
58 the input samples. If the input samples are signed, they are
59 represented in two's complement form in the output (because PAM
60 samples are always unsigned). The PAM plane numbers are identical to
61 the JPC component numbers.
62 .PP
63 A JPEG-2000 image has a "precision," which is the number of bits used for
64 each code (in Netpbm lingo, "sample"). Actually, each component has a
65 separate precision. The maxval of a PGM, PPM, or PAM output is the
66 largest number you can represent in the JPEG-2000 precision of the JPEG-2000
67 component with the greatest precision. The samples in all components are
68 scaled to that maxval. So if the red component has a precision of 4 bits
69 and the green component has a precision of 6 bits, the maxval is 63 and
70 the red component codes from the JPEG-2000 image are multiplied by 63/15 to
71 generate the output samples.
72 .PP
73 \fBjpeg2ktopam\fP interprets the JPEG-2000 input with the
74 .UR http://www.ece.uvic.ca/~mdadams/jasper/
75 Jasper JPEG-2000 library
76 .UE
77 \&. See documentation of the library for details on what
78 \fBjpeg2ktopam\fP handles. Note that the Jasper library contains
79 facilities for writing PNM images, but \fBjpeg2ktopam\fP does not use
80 those. It uses the Netpbm library instead. Note that the makers of
81 the Jasper library write it "JasPer," but Netpbm documentation follows
82 standard American English typography rules, which don't allow that
83 kind of capitalization.
84 .PP
85 Use \fBpamtojpeg2k\fP to convert in the other direction.
86 .PP
87 The program \fBjasper\fP, which is packaged with the Jasper
88 JPEG-2000 library, also converts between JPEG-2000 and PNM formats.
89 Because it's packaged with the library, it may exploit it better,
90 especially recently added features. However, since it does not use the
91 Netpbm library to read and write the Netpbm formats, it doesn't do as
92 good a job on that side.
93
94 .UN options
95 .SH OPTIONS
96 .PP
97 In addition to the options common to all programs based on libnetpbm
98 (most notably \fB-quiet\fP, see
99 .UR index.html#commonoptions
100 Common Options
101 .UE
102 \&), \fBjpeg2ktopam\fP recognizes the following
103 command line options:
104
105
106
107 .TP
108 \fB-verbose\fP
109 This option causes \fBjpeg2ktopam\fP to issue informational
110 messages about the conversion process.
111
112 .TP
113 \fB-debuglevel\fP=\fInumber\fP
114 This option controls debug messages from the Jasper library.
115 \fBjpeg2ktopam\fP passes \fInumber\fP as the debug level to the Jasper
116 JPEG-2000 decoder.
117
118
119
120 .UN examples
121 .SH EXAMPLES
122
123 .nf
124 jpeg2ktopam myimg.jpc >myimg.ppm
125
126 .fi
127
128 .UN jpeg2000
129 .SH ABOUT JPEG-2000
130 .PP
131 See
132 .BR "the \fBpamtojpeg2k\fP manual" (1)\c
133 \&
134 for general information on JPEG-2000 compression and the
135 JPEG-2000 formats.
136
137 .UN seealso
138 .SH SEE ALSO
139 .BR "pamtojpeg2k" (1)\c
140 \&,
141 .BR "jpegtopnm" (1)\c
142 \&,
143 .BR "ppm" (1)\c
144 \&,
145 .BR "pgm" (1)\c
146 \&,
147 .BR "pbm" (1)\c
148 \&,
149 .BR "pam" (1)\c
150 \&,
151
152 .UN history
153 .SH HISTORY
154 .PP
155 \fBjpeg2ktopam\fP was added to Netpbm in Release 10.12 (November 2002).
156 .PP
157 Before Netpbm 10.49 (December 2009), \fBjpeg2ktopam\fP could not convert
158 a JP2 file -- only JPC.
159 .SH DOCUMENT SOURCE
160 This manual page was generated by the Netpbm tool 'makeman' from HTML
161 source. The master documentation is at
162 .IP
163 .B http://netpbm.sourceforge.net/doc/jpeg2ktopam.html
164 .PP