Mercurial > hg > digilib-old
diff servlet/src/digilib/image/DocuImage.java @ 880:ca6b8c970ea1 jquery
merge from stream
author | hertzhaft |
---|---|
date | Thu, 17 Mar 2011 20:25:56 +0100 |
parents | fe58284a8dd9 |
children |
line wrap: on
line diff
--- a/servlet/src/digilib/image/DocuImage.java Thu Mar 17 19:21:25 2011 +0100 +++ b/servlet/src/digilib/image/DocuImage.java Thu Mar 17 20:25:56 2011 +0100 @@ -205,14 +205,22 @@ /** Operations for colorOps. * + * GRAYSCALE: cast color image to grayscale + * NTSC_GRAY: convert color image to grayscale using NTSC formula + * INVERT: invert colors (every channel separately) + * MAP_GRAY_BGR: false color image from grayscale (0: blue, 128: green, 255: red) * */ - public enum ColorOp {GRAYSCALE, INVERT}; + public enum ColorOp {GRAYSCALE, NTSC_GRAY, INVERT, MAP_GRAY_BGR}; /** Changes the colors of the current image. * - * Changes the colors of the current image. Operations are e.g. - * reduction to grayscale or false-color palettes. + * Changes the colors of the current image. Operations are instances of ColorOp: + * + * GRAYSCALE: cast color image to grayscale + * NTSC_GRAY: convert color image to grayscale using NTSC formula + * INVERT: invert colors (every channel separately) + * MAP_GRAY_BGR: false color image from grayscale (0: blue, 128: green, 255: red) * * @throws ImageOpException */