%!PS-Adobe-2.0 %%Version: 0.1 %%DocumentFonts: (atend) %%Pages: (atend) %%EndComments % % Version 3.3.2 prologue for troff files. % /#copies 1 store /aspectratio 1 def /formsperpage 1 def /landscape false def /linewidth .3 def /magnification 1 def /margin 0 def /orientation 0 def /resolution 720 def /rotation 1 def /xoffset 0 def /yoffset 0 def /roundpage true def /useclippath true def /pagebbox [0 0 612 792] def /R /Times-Roman def /I /Times-Italic def /B /Times-Bold def /BI /Times-BoldItalic def /H /Helvetica def /HI /Helvetica-Oblique def /HB /Helvetica-Bold def /HX /Helvetica-BoldOblique def /CW /Courier def /CO /Courier def /CI /Courier-Oblique def /CB /Courier-Bold def /CX /Courier-BoldOblique def /PA /Palatino-Roman def /PI /Palatino-Italic def /PB /Palatino-Bold def /PX /Palatino-BoldItalic def /Hr /Helvetica-Narrow def /Hi /Helvetica-Narrow-Oblique def /Hb /Helvetica-Narrow-Bold def /Hx /Helvetica-Narrow-BoldOblique def /KR /Bookman-Light def /KI /Bookman-LightItalic def /KB /Bookman-Demi def /KX /Bookman-DemiItalic def /AR /AvantGarde-Book def /AI /AvantGarde-BookOblique def /AB /AvantGarde-Demi def /AX /AvantGarde-DemiOblique def /NR /NewCenturySchlbk-Roman def /NI /NewCenturySchlbk-Italic def /NB /NewCenturySchlbk-Bold def /NX /NewCenturySchlbk-BoldItalic def /ZD /ZapfDingbats def /ZI /ZapfChancery-MediumItalic def /S /S def /S1 /S1 def /GR /Symbol def /inch {72 mul} bind def /min {2 copy gt {exch} if pop} bind def /setup { counttomark 2 idiv {def} repeat pop landscape {/orientation 90 orientation add def} if /scaling 72 resolution div def linewidth setlinewidth 1 setlinecap pagedimensions xcenter ycenter translate orientation rotation mul rotate width 2 div neg height 2 div translate xoffset inch yoffset inch neg translate margin 2 div dup neg translate magnification dup aspectratio mul scale scaling scaling scale addmetrics 0 0 moveto } def /pagedimensions { useclippath userdict /gotpagebbox known not and { /pagebbox [clippath pathbbox newpath] def roundpage currentdict /roundpagebbox known and {roundpagebbox} if } if pagebbox aload pop 4 -1 roll exch 4 1 roll 4 copy landscape {4 2 roll} if sub /width exch def sub /height exch def add 2 div /xcenter exch def add 2 div /ycenter exch def userdict /gotpagebbox true put } def /addmetrics { /Symbol /S null Sdefs cf /Times-Roman /S1 StandardEncoding dup length array copy S1defs cf } def /pagesetup { /page exch def currentdict /pagedict known currentdict page known and { page load pagedict exch get cvx exec } if } def /decodingdefs [ {counttomark 2 idiv {y moveto show} repeat} {neg /y exch def counttomark 2 idiv {y moveto show} repeat} {neg moveto {2 index stringwidth pop sub exch div 0 32 4 -1 roll widthshow} repeat} {neg moveto {spacewidth sub 0.0 32 4 -1 roll widthshow} repeat} {counttomark 2 idiv {y moveto show} repeat} {neg setfunnytext} ] def /setdecoding {/t decodingdefs 3 -1 roll get bind def} bind def /w {neg moveto show} bind def /m {neg dup /y exch def moveto} bind def /done {/lastpage where {pop lastpage} if} def /f { dup /font exch def findfont exch dup /ptsize exch def scaling div dup /size exch def scalefont setfont linewidth ptsize mul scaling 10 mul div setlinewidth /spacewidth ( ) stringwidth pop def } bind def /changefont { /fontheight exch def /fontslant exch def currentfont [ 1 0 fontheight ptsize div fontslant sin mul fontslant cos div fontheight ptsize div 0 0 ] makefont setfont } bind def /sf {f} bind def /cf { dup length 2 idiv /entries exch def /chtab exch def /newencoding exch def /newfont exch def findfont dup length 1 add dict /newdict exch def {1 index /FID ne {newdict 3 1 roll put}{pop pop} ifelse} forall newencoding type /arraytype eq {newdict /Encoding newencoding put} if newdict /Metrics entries dict put newdict /Metrics get begin chtab aload pop 1 1 entries {pop def} for newfont newdict definefont pop end } bind def % % A few arrays used to adjust reference points and character widths in some % of the printer resident fonts. If square roots are too high try changing % the lines describing /radical and /radicalex to, % % /radical [0 -75 550 0] % /radicalex [-50 -75 500 0] % % Move braceleftbt a bit - default PostScript character is off a bit. % /Sdefs [ /bracketlefttp [201 500] /bracketleftbt [201 500] /bracketrighttp [-81 380] /bracketrightbt [-83 380] /braceleftbt [203 490] /bracketrightex [220 -125 500 0] /radical [0 0 550 0] /radicalex [-50 0 500 0] /parenleftex [-20 -170 0 0] /integral [100 -50 500 0] /infinity [10 -75 730 0] ] def /S1defs [ /underscore [0 80 500 0] /endash [7 90 650 0] ] def % % Tries to round clipping path dimensions, as stored in array pagebbox, so they % match one of the known sizes in the papersizes array. Lower left coordinates % are always set to 0. % /roundpagebbox { 7 dict begin /papersizes [8.5 inch 11 inch 14 inch 17 inch] def /mappapersize { /val exch def /slop .5 inch def /diff slop def /j 0 def 0 1 papersizes length 1 sub { /i exch def papersizes i get val sub abs dup diff le {/diff exch def /j i def} {pop} ifelse } for diff slop lt {papersizes j get} {val} ifelse } def pagebbox 0 0 put pagebbox 1 0 put pagebbox dup 2 get mappapersize 2 exch put pagebbox dup 3 get mappapersize 3 exch put end } bind def %%EndProlog %%BeginSetup mark % % Encoding vector and redefinition of findfont for the ISO Latin1 standard. % The 18 characters missing from ROM based fonts on older printers are noted % below. % /ISOLatin1Encoding [ /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /space /exclam /quotedbl /numbersign /dollar /percent /ampersand /quoteright /parenleft /parenright /asterisk /plus /comma /minus /period /slash /zero /one /two /three /four /five /six /seven /eight /nine /colon /semicolon /less /equal /greater /question /at /A /B /C /D /E /F /G /H /I /J /K /L /M /N /O /P /Q /R /S /T /U /V /W /X /Y /Z /bracketleft /backslash /bracketright /asciicircum /underscore /quoteleft /a /b /c /d /e /f /g /h /i /j /k /l /m /n /o /p /q /r /s /t /u /v /w /x /y /z /braceleft /bar /braceright /asciitilde /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /dotlessi /grave /acute /circumflex /tilde /macron /breve /dotaccent /dieresis /.notdef /ring /cedilla /.notdef /hungarumlaut /ogonek /caron /space /exclamdown /cent /sterling /currency /yen /brokenbar % missing /section /dieresis /copyright /ordfeminine /guillemotleft /logicalnot /hyphen /registered /macron /degree % missing /plusminus % missing /twosuperior % missing /threesuperior % missing /acute /mu % missing /paragraph /periodcentered /cedilla /onesuperior % missing /ordmasculine /guillemotright /onequarter % missing /onehalf % missing /threequarters % missing /questiondown /Agrave /Aacute /Acircumflex /Atilde /Adieresis /Aring /AE /Ccedilla /Egrave /Eacute /Ecircumflex /Edieresis /Igrave /Iacute /Icircumflex /Idieresis /Eth % missing /Ntilde /Ograve /Oacute /Ocircumflex /Otilde /Odieresis /multiply % missing /Oslash /Ugrave /Uacute /Ucircumflex /Udieresis /Yacute % missing /Thorn % missing /germandbls /agrave /aacute /acircumflex /atilde /adieresis /aring /ae /ccedilla /egrave /eacute /ecircumflex /edieresis /igrave /iacute /icircumflex /idieresis /eth % missing /ntilde /ograve /oacute /ocircumflex /otilde /odieresis /divide % missing /oslash /ugrave /uacute /ucircumflex /udieresis /yacute % missing /thorn % missing /ydieresis ] def /NewFontDirectory FontDirectory maxlength dict def % % Apparently no guarantee findfont is defined in systemdict so the obvious % % systemdict /findfont get exec % % can generate an error. So far the only exception is a VT600 (version 48.0). % userdict /@RealFindfont known not { userdict begin /@RealFindfont systemdict begin /findfont load end def end } if /findfont { dup NewFontDirectory exch known not { dup %dup systemdict /findfont get exec % not always in systemdict dup userdict /@RealFindfont get exec dup /Encoding get StandardEncoding eq { dup length dict begin {1 index /FID ne {def}{pop pop} ifelse} forall /Encoding ISOLatin1Encoding def currentdict end /DummyFontName exch definefont } if NewFontDirectory 3 1 roll put } if NewFontDirectory exch get } bind def setup %%EndSetup %%Page: 1 1 /saveobj save def mark 1 pagesetup 12 /Times-Bold f (Pnmcolormap User) 2166 1230 w (Manual) 3192 1230 w 10 /Times-Bold f (pnmcolormap) 720 1920 w 10 /Times-Roman f (Updated: 23 October 2005) 720 2076 w (Table Of Contents) 720 2196 w 10 /Times-Bold f (NAME) 720 2436 w 10 /Times-Roman f (pnmcolormap \255 create quantization color map for a Netpbm image) 720 2592 w 10 /Times-Bold f (SYNOPSIS) 720 2832 w (pnmcolormap) 720 2988 w 10 /Times-Roman f ([) 1399 2988 w 10 /Times-Bold f (\255center) 1432 2988 w 10 /S f (\357) 1730 2988 w 10 /Times-Bold f (\255meancolor) 1779 2988 w 10 /S f (\357) 2261 2988 w 10 /Times-Bold f (\255meanpixel) 2310 2988 w 10 /Times-Roman f (]) 2782 2988 w ([) 2894 2988 w 10 /Times-Bold f (\255spreadbrightness) 2927 2988 w 10 /S f (\357) 3694 2988 w 10 /Times-Bold f (\255spreadluminosity) 3743 2988 w 10 /Times-Roman f (]) 4516 2988 w ([) 4629 2988 w 10 /Times-Bold f (\255sort) 4662 2988 w 10 /Times-Roman f (]) 4861 2988 w ([) 4974 2988 w 10 /Times-Bold f (\255) 5007 2988 w (square) 720 3108 w 10 /Times-Roman f (]) 1009 3108 w 10 /Times-Italic f (ncolors) 1067 3108 w 10 /S f (\357) 1367 3108 w 10 /Times-Bold f (all) 1416 3108 w 10 /Times-Roman f ([) 1547 3108 w 10 /Times-Italic f (pnmfile) 1580 3108 w 10 /Times-Roman f (]) 1880 3108 w (All) 720 3264 w (options) 876 3264 w (can) 1199 3264 w (be) 1366 3264 w (abbreviated) 1489 3264 w (to) 1983 3264 w (their) 2090 3264 w (shortest) 2302 3264 w (unique) 2642 3264 w (prefix.) 2943 3264 w (You) 3260 3264 w (may) 3461 3264 w (use) 3662 3264 w (two) 3824 3264 w (hyphens) 4003 3264 w (instead) 4365 3264 w (of) 4677 3264 w (one) 4789 3264 w (to) 4962 3264 w (designate) 720 3384 w (an) 1134 3384 w (option.) 1265 3384 w (You) 1608 3384 w (may) 1817 3384 w (use) 2026 3384 w (either) 2196 3384 w (white) 2460 3384 w (space) 2719 3384 w (or) 2977 3384 w (an) 3097 3384 w (equals) 3228 3384 w (sign) 3520 3384 w (between) 3723 3384 w (an) 4091 3384 w (option) 4221 3384 w (name) 4513 3384 w (and) 4765 3384 w (its) 4945 3384 w (value.) 720 3504 w 10 /Times-Bold f (DESCRIPTION) 720 3744 w 10 /Times-Roman f (This program is part of Netpbm.) 720 3936 w 10 /Times-Bold f (pnmcolormap) 720 4092 w 10 /Times-Roman f (reads) 1355 4092 w (a) 1600 4092 w (PNM) 1679 4092 w (or) 1931 4092 w (PAM) 2049 4092 w (image) 2301 4092 w (as) 2580 4092 w (input,) 2698 4092 w (chooses) 2964 4092 w 10 /Times-Italic f (ncolors) 3315 4092 w 10 /Times-Roman f (colors) 3650 4092 w (to) 3929 4092 w (best) 4042 4092 w (represent) 4238 4092 w (the) 4638 4092 w (image) 4796 4092 w (and) 720 4212 w (writes) 897 4212 w (a) 1174 4212 w (PNM) 1251 4212 w (color) 1501 4212 w (map) 1739 4212 w (defining) 1944 4212 w (them) 2310 4212 w (as) 2543 4212 w (output.) 2659 4212 w (A) 2998 4212 w (PAM) 3103 4212 w (image) 3353 4212 w (may) 3630 4212 w (actually) 3835 4212 w (contain) 4184 4212 w (tuples) 4510 4212 w (of) 4781 4212 w (any) 4896 4212 w (kind,) 720 4332 w (but) 950 4332 w 10 /Times-Bold f (pnmcolormap) 1105 4332 w 10 /Times-Roman f ('s) 1705 4332 w (concept) 1804 4332 w (of) 2141 4332 w (the) 2251 4332 w (tuple) 2400 4332 w (values) 2627 4332 w (that) 2909 4332 w (best) 3086 4332 w (represent) 3274 4332 w (the) 3666 4332 w (ones) 3815 4332 w (present) 4025 4332 w (in) 4340 4332 w (the) 4446 4332 w (image) 4596 4332 w (may) 4868 4332 w (not) 720 4452 w (make) 881 4452 w (sense) 1130 4452 w (if) 1379 4452 w (the) 1472 4452 w (tuple) 1626 4452 w (type) 1858 4452 w (isn't) 2062 4452 w (RGB) 2272 4452 w (or) 2510 4452 w (GRAYSCALE.) 2625 4452 w (The) 3307 4452 w (design) 3494 4452 w (of) 3787 4452 w (the) 3902 4452 w (program,) 4056 4452 w (and) 4451 4452 w (the) 4627 4452 w (rest) 4781 4452 w (of) 4957 4452 w (this manual, assumes the tuples represent colors.) 720 4572 w (You) 720 4728 w (can) 920 4728 w (use) 1086 4728 w (this) 1247 4728 w (map) 1420 4728 w (as) 1620 4728 w (input) 1731 4728 w (to) 1965 4728 w 10 /Times-Bold f (pnmremap) 2071 4728 w 10 /Times-Roman f (on) 2571 4728 w (the) 2699 4728 w (same) 2849 4728 w (input) 3082 4728 w (image) 3316 4728 w (to) 3588 4728 w (quantize) 3694 4728 w (the) 4061 4728 w (colors) 4212 4728 w (in) 4485 4728 w (that) 4592 4728 w (image,) 4771 4728 w (I.e.) 720 4848 w (produce) 881 4848 w (a) 1235 4848 w (similar) 1312 4848 w (image) 1623 4848 w (with) 1900 4848 w (fewer) 2111 4848 w (colors.) 2370 4848 w 10 /Times-Bold f (pnmquant) 2697 4848 w 10 /Times-Roman f (does) 3176 4848 w (both) 3392 4848 w (the) 3603 4848 w 10 /Times-Bold f (pnmcolormap) 3758 4848 w 10 /Times-Roman f (and) 4391 4848 w 10 /Times-Bold f (pnmremap) 4568 4848 w 10 /Times-Roman f (steps for you.) 720 4968 w (A PNM colormap is a PNM image of any dimensions that) 720 5124 w (contains) 3067 5124 w (at) 3426 5124 w (least) 3524 5124 w (one) 3733 5124 w (pixel) 3903 5124 w (of) 4129 5124 w (each) 4238 5124 w (color) 4446 5124 w (in) 4677 5124 w (the) 4781 5124 w (set) 4929 5124 w (of) 720 5244 w (colors) 843 5244 w (it) 1127 5244 w (represents.) 1223 5244 w (The) 1717 5244 w (ones) 1912 5244 w 10 /Times-Bold f (pnmcolormap) 2135 5244 w 10 /Times-Roman f (generates) 2775 5244 w (have) 3191 5244 w (exactly) 3419 5244 w (one) 3746 5244 w (pixel) 3929 5244 w (of) 4168 5244 w (each) 4290 5244 w (color,) 4511 5244 w (except) 4780 5244 w (where padding is necessary with the) 720 5364 w 10 /Times-Bold f (\255square) 2189 5364 w 10 /Times-Roman f (option.) 2536 5364 w (The quantization method is Heckbert's "median cut".) 720 5520 w (See QUANTIZATION METHOD.) 2896 5520 w (The) 720 5676 w (output) 911 5676 w (image) 1203 5676 w (is) 1483 5676 w (of) 1586 5676 w (the) 1705 5676 w (same) 1863 5676 w (format) 2104 5676 w (\(PBM,) 2406 5676 w (PGM,) 2712 5676 w (PPM,) 2990 5676 w (PAM\)) 3252 5676 w (as) 3538 5676 w (the) 3657 5676 w (input) 3815 5676 w (image.) 4057 5676 w (Note) 4387 5676 w (that) 4617 5676 w (a) 4804 5676 w (col\255) 4885 5676 w (ormap of a PBM image is not very interesting.) 720 5796 w (The) 720 5952 w (colormap) 904 5952 w (generally) 1310 5952 w (has) 1710 5952 w (the) 1872 5952 w (same) 2023 5952 w (maxval) 2257 5952 w (as) 2580 5952 w (the) 2692 5952 w (input) 2844 5952 w (image,) 3080 5952 w (but) 3379 5952 w 10 /Times-Bold f (pnmcolormap) 3537 5952 w 10 /Times-Roman f (may) 4167 5952 w (reduce) 4369 5952 w (it) 4664 5952 w (if) 4750 5952 w (there) 4841 5952 w (are too many colors in the input, as part of its quantization algorithm.) 720 6072 w 10 /Times-Bold f (pnmcolormap) 720 6228 w 10 /Times-Roman f (works) 1347 6228 w (on) 1618 6228 w (a) 1745 6228 w (multi\255image) 1816 6228 w (input) 2333 6228 w (stream.) 2567 6228 w (In) 2911 6228 w (that) 3022 6228 w (case,) 3200 6228 w (it) 3424 6228 w (produces) 3508 6228 w (one) 3896 6228 w (colormap) 4068 6228 w (that) 4473 6228 w (applies) 4651 6228 w (to) 4962 6228 w (all) 720 6348 w (of) 852 6348 w (the) 967 6348 w (colors) 1121 6348 w (in) 1397 6348 w (all) 1507 6348 w (of) 1639 6348 w (the) 1754 6348 w (input) 1908 6348 w (images.) 2146 6348 w (All) 2511 6348 w (the) 2670 6348 w (images) 2823 6348 w (must) 3137 6348 w (have) 3363 6348 w (the) 3582 6348 w (same) 3735 6348 w (format,) 3971 6348 w (depth,) 4293 6348 w (and) 4571 6348 w (maxval) 4746 6348 w (\(but) 720 6468 w (may) 914 6468 w (have) 1119 6468 w (different) 1340 6468 w (height) 1717 6468 w (and) 2001 6468 w (width\).) 2179 6468 w (This) 2524 6468 w (is) 2736 6468 w (useful) 2837 6468 w (if) 3115 6468 w (you) 3210 6468 w (need) 3394 6468 w (to) 3616 6468 w (quantize) 3728 6468 w (a) 4100 6468 w (bunch) 4178 6468 w (of) 4456 6468 w (images) 4573 6468 w (that) 4890 6468 w (will) 720 6588 w (form) 914 6588 w (a) 1146 6588 w (movie) 1228 6588 w (or) 1516 6588 w (otherwise) 1637 6588 w (be) 2063 6588 w (used) 2195 6588 w (together) 2416 6588 w (\255\255) 2781 6588 w (you) 2885 6588 w (generally) 3073 6588 w (want) 3482 6588 w (them) 3714 6588 w (all) 3952 6588 w (to) 4090 6588 w (draw) 4206 6588 w (from) 4443 6588 w (the) 4675 6588 w (same) 4835 6588 w (palette,) 720 6708 w (whereas) 1051 6708 w (computing) 1417 6708 w (a) 1885 6708 w (colormap) 1969 6708 w (separately) 2386 6708 w (from) 2830 6708 w (each) 3064 6708 w (image) 3286 6708 w (would) 3570 6708 w (make) 3860 6708 w (the) 4116 6708 w (same) 4279 6708 w (color) 4525 6708 w (in) 4771 6708 w (two) 4890 6708 w (images) 720 6828 w (map) 1030 6828 w (to) 1228 6828 w (different) 1332 6828 w (colors.) 1701 6828 w (Before) 2021 6828 w (Netpbm) 2318 6828 w (10.31) 2666 6828 w (\(December) 2917 6828 w (2005\),) 3385 6828 w 10 /Times-Bold f (pnmcolormap) 3669 6828 w 10 /Times-Roman f (ignored) 4295 6828 w (any) 4626 6828 w (image) 4796 6828 w (after the first.) 720 6948 w (If you want to create a colormap) 720 7104 w (without) 2042 7104 w (basing) 2374 7104 w (it) 2661 7104 w (on) 2743 7104 w (the) 2869 7104 w (colors) 3017 7104 w (in) 3287 7104 w (an) 3391 7104 w (input) 3511 7104 w (image,) 3743 7104 w 10 /Times-Bold f (pamseq) 4038 7104 w 10 /Times-Roman f (,) 4366 7104 w 10 /Times-Bold f (ppmmake) 4417 7104 w 10 /Times-Roman f (,) 4845 7104 w (and) 4896 7104 w 10 /Times-Bold f (pnmcat) 720 7224 w 10 /Times-Roman f (can be useful.) 1067 7224 w cleartomark showpage saveobj restore %%EndPage: 1 1 %%Page: 2 2 /saveobj save def mark 2 pagesetup 10 /Times-Roman f (\255 2 \255) 2797 480 w 10 /Times-Bold f (PARAMETERS) 720 840 w 10 /Times-Roman f (The single parameter, which is required,) 720 1032 w (is) 2356 1032 w (the) 2449 1032 w (number) 2597 1032 w (of) 2928 1032 w (colors) 3037 1032 w (you) 3307 1032 w (want) 3483 1032 w (in) 3703 1032 w (the) 3807 1032 w (output) 3955 1032 w (colormap.) 4237 1032 w 10 /Times-Bold f (pnmcol\255) 4690 1032 w (ormap) 720 1152 w 10 /Times-Roman f (may) 1038 1152 w (produce) 1245 1152 w (a) 1601 1152 w (color) 1680 1152 w (map) 1920 1152 w (with) 2127 1152 w (slightly) 2340 1152 w (fewer) 2676 1152 w (colors) 2937 1152 w (than) 3216 1152 w (that.) 3423 1152 w (You) 3658 1152 w (may) 3865 1152 w (specify) 4072 1152 w 10 /Times-Bold f (all) 4395 1152 w 10 /Times-Roman f (to) 4536 1152 w (get) 4649 1152 w (a) 4806 1152 w (col\255) 4885 1152 w (ormap of every color in the input image \(no quantization\).) 720 1272 w 10 /Times-Bold f (OPTIONS) 720 1512 w (\255sort) 970 1704 w 10 /Times-Roman f (This) 1220 1704 w (option) 1431 1704 w (causes) 1720 1704 w (the) 2013 1704 w (output) 2168 1704 w (colormap) 2457 1704 w (to) 2867 1704 w (be) 2978 1704 w (sorted) 3105 1704 w (by) 3382 1704 w (the) 3515 1704 w (red) 3670 1704 w (component) 3830 1704 w (intensity,) 4308 1704 w (then) 4712 1704 w (the) 4918 1704 w (green,) 1220 1824 w (then) 1495 1824 w (the) 1696 1824 w (blue) 1847 1824 w (in) 2048 1824 w (ascending) 2155 1824 w (order.) 2583 1824 w (This) 2872 1824 w (is) 3079 1824 w (an) 3175 1824 w (insertion) 3298 1824 w (sort,) 3677 1824 w (so) 3881 1824 w (it) 3999 1824 w (is) 4084 1824 w (not) 4180 1824 w (very) 4336 1824 w (fast) 4541 1824 w (on) 4713 1824 w (large) 4841 1824 w (colormaps.) 1220 1944 w (Sorting is useful because it allows you to compare two sets of colors.) 1711 1944 w 10 /Times-Bold f (\255square) 970 2100 w 10 /Times-Roman f (By) 1292 2100 w (default,) 1444 2100 w 10 /Times-Bold f (pnmcolormap) 1781 2100 w 10 /Times-Roman f (produces) 2416 2100 w (as) 2811 2100 w (the) 2929 2100 w (color) 3086 2100 w (map) 3326 2100 w (a) 3534 2100 w (PPM) 3614 2100 w (image) 3851 2100 w (with) 4131 2100 w (one) 4345 2100 w (row) 4525 2100 w (and) 4716 2100 w (one) 4896 2100 w (column) 1220 2220 w (for) 1547 2220 w (each) 1690 2220 w (color) 1899 2220 w (in) 2131 2220 w (the) 2236 2220 w (colormap.) 2385 2220 w (This) 2838 2220 w (option) 3042 2220 w (causes) 3324 2220 w 10 /Times-Bold f (pnmcolormap) 3610 2220 w 10 /Times-Roman f (instead) 4236 2220 w (to) 4545 2220 w (produce) 4649 2220 w (a) 4996 2220 w (PPM) 1220 2340 w (image) 1449 2340 w (that) 1722 2340 w (is) 1901 2340 w (within) 1997 2340 w (one) 2282 2340 w (row) 2455 2340 w (or) 2639 2340 w (column) 2751 2340 w (of) 3080 2340 w (being) 3192 2340 w (square,) 3443 2340 w (with) 3757 2340 w (the) 3964 2340 w (last) 4115 2340 w (pixel) 4283 2340 w (duplicated) 4512 2340 w (as) 4957 2340 w (necessary to create a number of pixels which is such an almost\255perfect square.) 1220 2460 w 10 /Times-Bold f (\255verbose) 970 2616 w 10 /Times-Roman f (This) 1330 2616 w (option) 1534 2616 w (causes) 1816 2616 w 10 /Times-Bold f (pnmcolormap) 2102 2616 w 10 /Times-Roman f (to) 2728 2616 w (display) 2832 2616 w (messages) 3147 2616 w (to) 3550 2616 w (Standard) 3654 2616 w (Error) 4035 2616 w (about) 4271 2616 w (the) 4520 2616 w (quantiza\255) 4669 2616 w (tion.) 1220 2736 w 10 /Times-Bold f (\255center) 970 2892 w (\255meancolor) 970 3048 w (\255meanpixel) 970 3204 w (\255spreadbrightness) 970 3360 w (\255spreadluminosity) 970 3516 w 10 /Times-Roman f (These) 1743 3516 w (options) 2056 3516 w (control) 2426 3516 w (the) 2784 3516 w (quantization) 2982 3516 w (algorithm.) 3552 3516 w (See) 4067 3516 w (QUANTIZATION) 4287 3516 w (METHOD.) 1220 3636 w 10 /Times-Bold f (QUANTIZATION METHOD) 720 3876 w 10 /Times-Roman f (A) 720 4068 w (quantization) 819 4068 w (method) 1341 4068 w (is) 1669 4068 w (a) 1764 4068 w (way) 1836 4068 w (to) 2030 4068 w (choose) 2136 4068 w (which) 2441 4068 w (colors,) 2713 4068 w (being) 3010 4068 w (fewer) 3260 4068 w (in) 3514 4068 w (number) 3620 4068 w (than) 3953 4068 w (in) 4153 4068 w (the) 4259 4068 w (input,) 4409 4068 w (you) 4668 4068 w (want) 4846 4068 w (in the output.) 720 4188 w 10 /Times-Bold f (pnmcolormap) 1301 4188 w 10 /Times-Roman f (uses Heckbert's "median cut" quantization method.) 1926 4188 w (This) 720 4344 w (method) 934 4344 w (involves) 1270 4344 w (separating) 1645 4344 w (all) 2091 4344 w (the) 2227 4344 w (colors) 2385 4344 w (into) 2665 4344 w ("boxes,") 2857 4344 w (each) 3233 4344 w (holding) 3451 4344 w (colors) 3793 4344 w (that) 4073 4344 w (represent) 4259 4344 w (about) 4660 4344 w (the) 4918 4344 w (same) 720 4464 w (number) 962 4464 w (of) 1304 4464 w (pixels.) 1424 4464 w (You) 1750 4464 w (start) 1959 4464 w (with) 2168 4464 w (one) 2383 4464 w (box) 2564 4464 w (and) 2750 4464 w (split) 2930 4464 w (boxes) 3139 4464 w (in) 3408 4464 w (two) 3522 4464 w (until) 3708 4464 w (the) 3928 4464 w (number) 4086 4464 w (of) 4427 4464 w (boxes) 4546 4464 w (is) 4815 4464 w (the) 4918 4464 w (same as the number of colors you want in the output, and choose one color to represent each box.) 720 4584 w (When) 720 4740 w (you) 987 4740 w (split) 1166 4740 w (a) 1368 4740 w (box,) 1441 4740 w (you) 1645 4740 w (do) 1824 4740 w (it) 1953 4740 w (so) 2038 4740 w (that) 2156 4740 w (all) 2335 4740 w (the) 2464 4740 w (colors) 2615 4740 w (in) 2888 4740 w (one) 2995 4740 w (sub\255box) 3168 4740 w (are) 3519 4740 w ("greater") 3669 4740 w (than) 4056 4740 w (all) 4257 4740 w (the) 4386 4740 w (colors) 4537 4740 w (in) 4810 4740 w (the) 4918 4740 w (other.) 720 4860 w ("Greater,") 1006 4860 w (for) 1442 4860 w (a) 1589 4860 w (particular) 1664 4860 w (box,) 2077 4860 w (means) 2283 4860 w (it) 2569 4860 w (is) 2656 4860 w (brighter) 2754 4860 w (in) 3101 4860 w (the) 3209 4860 w (color) 3361 4860 w (component) 3596 4860 w (\(red,) 4070 4860 w (green,) 4285 4860 w (blue\)) 4561 4860 w (which) 4796 4860 w (has) 720 4980 w (the) 879 4980 w (largest) 1028 4980 w (spread) 1321 4980 w (in) 1608 4980 w (that) 1713 4980 w (box.) 1890 4980 w 10 /Times-Bold f (pnmcolormap) 2117 4980 w 10 /Times-Roman f (gives) 2744 4980 w (you) 2982 4980 w (two) 3159 4980 w (ways) 3336 4980 w (to) 3568 4980 w (define) 3673 4980 w ("largest) 3949 4980 w (spread.":) 4283 4980 w (1\)) 4664 4980 w (largest) 4774 4980 w (spread) 720 5100 w (of) 1013 5100 w (brightness;) 1129 5100 w (2\)) 1601 5100 w (largest) 1716 5100 w (spread) 2014 5100 w (of) 2306 5100 w (contribution) 2421 5100 w (to) 2942 5100 w (the) 3052 5100 w (luminosity) 3206 5100 w (of) 3667 5100 w (the) 3782 5100 w (color.) 3936 5100 w (E.g.) 4223 5100 w (red) 4416 5100 w (is) 4575 5100 w (weighted) 4674 5100 w (much) 720 5220 w (more) 981 5220 w (than) 1225 5220 w (blue.) 1436 5220 w (Select) 1697 5220 w (among) 1980 5220 w (these) 2291 5220 w (with) 2536 5220 w (the) 2754 5220 w 10 /Times-Bold f (\255spreadbrightness) 2916 5220 w 10 /Times-Roman f (and) 3723 5220 w 10 /Times-Bold f (\255spreadluminosity) 3907 5220 w 10 /Times-Roman f (options.) 4720 5220 w (The default is) 720 5340 w 10 /Times-Bold f (\255spreadbrightness) 1294 5340 w 10 /Times-Roman f (.) 2061 5340 w 10 /Times-Bold f (pnmcolormap) 720 5496 w 10 /Times-Roman f (provides) 1353 5496 w (three) 1730 5496 w (ways) 1962 5496 w (of) 2200 5496 w (choosing) 2316 5496 w (a) 2710 5496 w (color) 2787 5496 w (to) 3025 5496 w (represent) 3136 5496 w (a) 3534 5496 w (box:) 3611 5496 w (1\)) 3823 5496 w (the) 3940 5496 w (center) 4096 5496 w (color) 4373 5496 w (\255) 4612 5496 w (the) 4679 5496 w (color) 4835 5496 w (halfway) 720 5616 w (between) 1080 5616 w (the) 1451 5616 w (greatest) 1612 5616 w (and) 1960 5616 w (least) 2142 5616 w (colors) 2363 5616 w (in) 2645 5616 w (the) 2761 5616 w (box,) 2921 5616 w (using) 3134 5616 w (the) 3389 5616 w (above) 3549 5616 w (definition) 3825 5616 w (of) 4252 5616 w ("greater";) 4373 5616 w (2\)) 4797 5616 w (the) 4918 5616 w (mean) 720 5736 w (of) 968 5736 w (the) 1083 5736 w (colors) 1237 5736 w (\(each) 1513 5736 w (component) 1761 5736 w (averaged) 2238 5736 w (separately) 2630 5736 w (by) 3067 5736 w (brightness\)) 3200 5736 w (in) 3677 5736 w (the) 3788 5736 w (box;) 3943 5736 w (3\)) 4154 5736 w (the) 4270 5736 w (mean) 4425 5736 w (weighted) 4674 5736 w (by the number of pixels of a color in the image.) 720 5856 w (Note that in all three methods, there may be colors in the output which do not appear in the input at all.) 720 6012 w (Select among these with the) 720 6168 w 10 /Times-Bold f (\255center) 1866 6168 w 10 /Times-Roman f (,) 2164 6168 w 10 /Times-Bold f (\255meancolor) 2214 6168 w 10 /Times-Roman f (, and) 2696 6168 w 10 /Times-Bold f (\255meanpixel) 2915 6168 w 10 /Times-Roman f (options.) 3412 6168 w (The default is) 3782 6168 w 10 /Times-Bold f (\255center) 4356 6168 w 10 /Times-Roman f (.) 4654 6168 w 10 /Times-Bold f (REFERENCES) 720 6408 w 10 /Times-Roman f ("Color) 720 6564 w (Image) 1029 6564 w (Quantization) 1318 6564 w (for) 1874 6564 w (Frame) 2031 6564 w (Buffer) 2327 6564 w (Display") 2628 6564 w (by) 3021 6564 w (Paul) 3162 6564 w (Heckbert,) 3381 6564 w (SIGGRAPH) 3812 6564 w ('82) 4353 6564 w (Proceedings,) 4527 6564 w (page 297.) 720 6684 w cleartomark showpage saveobj restore %%EndPage: 2 2 %%Page: 3 3 /saveobj save def mark 3 pagesetup 10 /Times-Roman f (\255 3 \255) 2797 480 w 10 /Times-Bold f (SEE ALSO) 720 840 w (pnmremap) 720 996 w 10 /Times-Roman f (,) 1192 996 w 10 /Times-Bold f (pnmquant) 1242 996 w 10 /Times-Roman f (,) 1688 996 w 10 /Times-Bold f (ppmquantall) 1738 996 w 10 /Times-Roman f (,) 2290 996 w 10 /Times-Bold f (pamdepth) 2340 996 w 10 /Times-Roman f (,) 2774 996 w 10 /Times-Bold f (ppmdither) 2824 996 w 10 /Times-Roman f (,) 3280 996 w 10 /Times-Bold f (pamseq) 3330 996 w 10 /Times-Roman f (,) 3658 996 w 10 /Times-Bold f (ppmmake) 3708 996 w 10 /Times-Roman f (,) 4136 996 w 10 /Times-Bold f (pnmcat) 4186 996 w 10 /Times-Roman f (,) 4508 996 w 10 /Times-Bold f (ppm) 4558 996 w (HISTORY) 720 1236 w 10 /Times-Roman f (Before) 720 1428 w (Netpbm) 1028 1428 w (10.15) 1387 1428 w (\(April) 1649 1428 w (2003\),) 1930 1428 w 10 /Times-Bold f (pnmcolormap) 2225 1428 w 10 /Times-Roman f (used) 2862 1428 w (a) 3082 1428 w (lot) 3163 1428 w (more) 3306 1428 w (memory) 3548 1428 w (for) 3919 1428 w (large) 4073 1428 w (images) 4310 1428 w (because) 4631 1428 w (it) 4984 1428 w (kept) 720 1548 w (the) 919 1548 w (entire) 1068 1548 w (input) 1322 1548 w (image) 1555 1548 w (in) 1826 1548 w (memory.) 1931 1548 w (Now,) 2341 1548 w (it) 2587 1548 w (processes) 2670 1548 w (it) 3079 1548 w (a) 3162 1548 w (row) 3233 1548 w (at) 3415 1548 w (a) 3514 1548 w (time,) 3585 1548 w (but) 3814 1548 w (because) 3968 1548 w (it) 4309 1548 w (sometimes) 4391 1548 w (must) 4845 1548 w (make) 720 1668 w (multiple) 968 1668 w (passes) 1334 1668 w (through) 1621 1668 w (the) 1964 1668 w (image,) 2118 1668 w (it) 2419 1668 w (first) 2507 1668 w (copies) 2700 1668 w (the) 2987 1668 w (input) 3141 1668 w (into) 3379 1668 w (a) 3567 1668 w (temporary) 3644 1668 w (seekable) 4087 1668 w (file) 4463 1668 w (if) 4629 1668 w (it) 4723 1668 w (is) 4812 1668 w (not) 4912 1668 w (already in a seekable file.) 720 1788 w 10 /Times-Bold f (pnmcolormap) 720 1944 w 10 /Times-Roman f (first) 1350 1944 w (appeared) 1541 1944 w (in) 1931 1944 w (Netpbm) 2040 1944 w (9.23) 2393 1944 w (\(January) 2599 1944 w (2002\).) 2973 1944 w (Before) 3287 1944 w (that,) 3589 1944 w (its) 3795 1944 w (function) 3921 1944 w (was) 4285 1944 w (available) 4471 1944 w (only) 4862 1944 w (as) 720 2064 w (part) 829 2064 w (of) 1010 2064 w (the) 1119 2064 w (function) 1267 2064 w (of) 1626 2064 w 10 /Times-Bold f (pnmquant) 1735 2064 w 10 /Times-Roman f (\(which) 2207 2064 w (was) 2510 2064 w (derived) 2691 2064 w (from) 3016 2064 w (the) 3236 2064 w (much) 3384 2064 w (older) 3632 2064 w 10 /Times-Bold f (ppmquant) 3862 2064 w 10 /Times-Roman f (\).) 4308 2064 w (Color quantiza\255) 4416 2064 w (tion) 720 2184 w (really) 912 2184 w (has) 1175 2184 w (two) 1344 2184 w (main) 1530 2184 w (subfunctions,) 1767 2184 w (so) 2340 2184 w (Netpbm) 2466 2184 w (9.23) 2825 2184 w (split) 3037 2184 w (it) 3247 2184 w (out) 3340 2184 w (into) 3505 2184 w (two) 3698 2184 w (separate) 3885 2184 w (programs:) 4248 2184 w 10 /Times-Bold f (pnmcol\255) 4690 2184 w (ormap) 720 2304 w 10 /Times-Roman f (and) 1032 2304 w 10 /Times-Bold f (pnmremap) 1205 2304 w 10 /Times-Roman f (and) 1706 2304 w (then) 1879 2304 w (Netpbm) 2080 2304 w (9.24) 2431 2304 w (replaced) 2635 2304 w 10 /Times-Bold f (pnmquant) 3001 2304 w 10 /Times-Roman f (with) 3476 2304 w (a) 3683 2304 w (program) 3756 2304 w (that) 4122 2304 w (simply) 4300 2304 w (calls) 4601 2304 w 10 /Times-Bold f (pnm\255) 4812 2304 w (colormap) 720 2424 w 10 /Times-Roman f (and) 1150 2424 w 10 /Times-Bold f (pnmremap) 1319 2424 w 10 /Times-Roman f (.) 1791 2424 w 10 /Times-Bold f (AUTHOR) 720 2664 w 10 /Times-Roman f (Copyright \(C\) 1989, 1991 by Jef Poskanzer.) 720 2820 w 10 /S1 f (________________________________________________________________________) 720 2940 w 10 /Times-Bold f (Table Of Contents) 720 3180 w 10 /LucidaSansUnicode22 f (\031) 720 3372 w 10 /Times-Roman f (NAME) 970 3372 w 10 /LucidaSansUnicode22 f (\031) 720 3528 w 10 /Times-Roman f (SYNOPSIS) 970 3528 w 10 /LucidaSansUnicode22 f (\031) 720 3684 w 10 /Times-Roman f (DESCRIPTION) 970 3684 w 10 /LucidaSansUnicode22 f (\031) 720 3840 w 10 /Times-Roman f (PARAMETERS) 970 3840 w 10 /LucidaSansUnicode22 f (\031) 720 3996 w 10 /Times-Roman f (OPTIONS) 970 3996 w 10 /LucidaSansUnicode22 f (\031) 720 4152 w 10 /Times-Roman f (QUANTIZATION METHOD) 970 4152 w 10 /LucidaSansUnicode22 f (\031) 720 4308 w 10 /Times-Roman f (REFERENCES) 970 4308 w 10 /LucidaSansUnicode22 f (\031) 720 4464 w 10 /Times-Roman f (SEE ALSO) 970 4464 w 10 /LucidaSansUnicode22 f (\031) 720 4620 w 10 /Times-Roman f (HISTORY) 970 4620 w 10 /LucidaSansUnicode22 f (\031) 720 4776 w 10 /Times-Roman f (AUTHOR) 970 4776 w cleartomark showpage saveobj restore %%EndPage: 3 3 %%Trailer done %%DocumentFonts: Times-Roman LucidaSansUnicode22 Times-Italic Times-Bold S1 S %%Pages: 3