COLOR TRANSFORMATION FILTERS ============================ ------------------------------------------------------------------------------- THE SOFTWARE AVAILABLE FROM THIS WEB SITE AND EACH OF ITS COMPONENTS ARE PROTECTED UNDER COPYRIGHT LAWS. HEWLETT-PACKARD COMPANY RESERVES ALL RIGHTS EXCEPT THOSE EXPRESSLY GRANTED VIA THE TEXT BELOW. (c) HEWLETT-PACKARD COMPANY, 1995-1998. HEWLETT-PACKARD COMPANY ("HP") DOES NOT WARRANT THE ACCURACY OR COMPLETENESS OF THE INFORMATION GIVEN HERE. ANY USE MADE OF, OR RELIANCE ON, SUCH INFORMATION IS ENTIRELY AT USER'S OWN RISK. BY DOWNLOADING ANY COMPONENT OF THE SOFTWARE AVAILABLE FROM THIS WEB SITE ("THE SOFTWARE") YOU AGREE TO BE BOUND BY THE TERMS AND CONDITIONS OF THIS LICENSING AGREEMENT. YOU MAY DOWNLOAD AND USE THE SOFTWARE FOR NON-COMMERCIAL PURPOSES FREE OF CHARGE OR FURTHER OBLIGATION. YOU MAY NOT, DIRECTLY OR INDIRECTLY, DISTRIBUTE THE SOFTWARE FOR A FEE, INCORPORATE THIS SOFTWARE INTO ANY PRODUCT OFFERED FOR SALE, OR USE THE SOFTWARE TO PROVIDE A SERVICE FOR WHICH A FEE IS CHARGED. YOU MAY MAKE COPIES OF THE SOFTWARE AND DISTRIBUTE SUCH COPIES TO OTHER PERSONS PROVIDED THAT SUCH COPIES ARE ACCOMPANIED BY HEWLETT-PACKARD'S COPYRIGHT NOTICE AND THIS AGREEMENT AND THAT SUCH OTHER PERSONS AGREE TO BE BOUND BY THE TERMS OF THIS AGREEMENT. THE SOFTWARE IS NOT OF PRODUCT QUALITY AND MAY HAVE ERRORS OR DEFECTS. THE SOFTWARE IS NOT A FULL IMPLEMENTATION OF THE JPEG-LS STANDARD. HP GIVES NO EXPRESS OR IMPLIED WARRANTY OF ANY KIND AND ANY IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR PURPOSE ARE DISCLAIMED. HP SHALL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE. ------------------------------------------------------------------------------- This software package contains EXAMPLES of lossless color transformation filters that can be used in conjunction with JPEG-LS, to improve compression performance with certain color representations (e.g., some RGB images). THESE FILTERS ARE NOT PART OF THE JPEG-LS STANDARD. THEIR EFFECTIVENESS WILL DEPEND STRONGLY ON THE COLOR REPRESENTATION OF THE INPUT FILE. THEY ARE VERY SIMPLE, AND ARE NOT CLAIMED TO BE OPTIMAL OR RECOMMENDED FOR ANY SPECIFIC COLOR REPRESENTATION. Basically, the filter converts [X,Y,Z] triplets to [X-Y,Y,Z-Y]. For some images, the latter representation is better decorrelated than the original one, and yields better compression ratios, especially in the [R,G,B] case. The trasformed images are of the same bit depth as the originals. An inverse filter is also provided. THIS PACKAGE CONTAINS: ---------------------- READCOLOR.TXT - this file ppm2pgmcf.exe, pgmcf2ppm.exe (Windows 95/98/NT executables) or ppm2pgmcf, pgmcf2ppm (HP-UX executables) subgold.ppm - a test image runtest.bat or runtest.sh - test script The test script assumes you have also downloaded the JPEG-LS software, and that the JPEG-LS executables reside in the same directory as the color filters and the test image. All uncompressed images are assumed to be in PPM or PGM format (see the README file in the JPEG-LS package). Program: ppm2pgmcf (color transformation) ------------------------------------------- Converts [R,G,B] (1 PPM file) to [R-G,G,B-G] (3 PGM files). Usage: ppm2pgmcf [-g] infile [outprefix] infile : a PPM file -g : what component is G (the "anchor"): 1,2,3,... (default num=2) outprefix : prefix for output files (default: img, e.g. img1.pgm, img2.pgm, img3.pgm) Program: pgmcf2ppm (inverse color transformation) -------------------------------------------------- Converts [R-G,G,B-G] (3 PGM files) to [R,G,B] (1 PPM file). Usage: pgmcf2ppm [-g] file1 file2 file3 [-ooutfile] -g : what component is G: 1,2,3,... (default num=2) file1, file2, file3: input PGM files. outfile: Output PPM file (default: stdout) Program: runtest (test script) ------------------------------ Runs the color transform on the test image, compresses with JPEG-LS, decompresses, runs the inverse color transform. To compare compression performance with "raw" JPEG-LS (no color transformation), run locoe -N subgold.ppm OTHER CAVEATS, LIMITATIONS, ANNOYANCES, BUGS (?) ================================================= Same as with the JPEG-LS software (see README.TXT in that package). Feedback to the LOCO-I/JPEG-LS team at HP Labs: loco@hpl.hp.com