public abstract class ColorSpaceJAIExt
extends javax.media.jai.ColorSpaceJAI
ColorSpaceJAI
class in order to add support for external ROI or NoData.Modifier and Type | Field and Description |
---|---|
static boolean |
ARRAY_CALC
Constant indicating that the inner random iterators must pre-calculate an array of the image positions
|
static double |
POWER1
Cache the power value for XYZ to RGB
|
static boolean |
TILE_CACHED
Constant indicating that the inner random iterators must cache the current tile position
|
CS_CIEXYZ, CS_GRAY, CS_LINEAR_RGB, CS_PYCC, CS_sRGB, TYPE_2CLR, TYPE_3CLR, TYPE_4CLR, TYPE_5CLR, TYPE_6CLR, TYPE_7CLR, TYPE_8CLR, TYPE_9CLR, TYPE_ACLR, TYPE_BCLR, TYPE_CCLR, TYPE_CMY, TYPE_CMYK, TYPE_DCLR, TYPE_ECLR, TYPE_FCLR, TYPE_GRAY, TYPE_HLS, TYPE_HSV, TYPE_Lab, TYPE_Luv, TYPE_RGB, TYPE_XYZ, TYPE_YCbCr, TYPE_Yxy
Modifier | Constructor and Description |
---|---|
protected |
ColorSpaceJAIExt(int type,
int numComponents,
boolean isRGBPreferredIntermediary) |
Modifier and Type | Method and Description |
---|---|
static WritableRaster |
CIEXYZToRGB(Raster src,
int[] srcComponentSize,
WritableRaster dest,
int[] destComponentSize,
javax.media.jai.ROI roi,
Range nodata,
float[] destNodata) |
static void |
convertToSigned(double[] buf,
int dataType)
Converts the input array of data into signed ones
|
WritableRaster |
fromCIEXYZ(Raster src,
int[] srcComponentSize,
WritableRaster dest,
int[] dstComponentSize) |
abstract WritableRaster |
fromCIEXYZ(Raster src,
int[] srcComponentSize,
WritableRaster dest,
int[] dstComponentSize,
javax.media.jai.ROI roi,
Range nodata,
float[] destNodata)
Converts an input CIEXYZ Raster into a new one with a new ColorSpace
|
WritableRaster |
fromRGB(Raster src,
int[] srcComponentSize,
WritableRaster dest,
int[] dstComponentSize) |
abstract WritableRaster |
fromRGB(Raster src,
int[] srcComponentSize,
WritableRaster dest,
int[] dstComponentSize,
javax.media.jai.ROI roi,
Range nodata,
float[] destNodata)
Converts an input RGB Raster into a new one with a new ColorSpace
|
static ColorSpaceJAIExt |
getIHSColorSpaceJAIEXT() |
static void |
RGB2XYZ(float[] RGB,
float[] XYZ)
Method for converting an RGB array into an XYZ one
|
static WritableRaster |
RGBToCIEXYZ(Raster src,
int[] srcComponentSize,
WritableRaster dest,
int[] destComponentSize,
javax.media.jai.ROI roi,
Range nodata,
float[] destNodata) |
WritableRaster |
toCIEXYZ(Raster src,
int[] srcComponentSize,
WritableRaster dest,
int[] dstComponentSize) |
abstract WritableRaster |
toCIEXYZ(Raster src,
int[] srcComponentSize,
WritableRaster dest,
int[] dstComponentSize,
javax.media.jai.ROI roi,
Range nodata,
float[] destNodata)
Converts an input Raster into a new one with CIEXYZ ColorSpace
|
WritableRaster |
toRGB(Raster src,
int[] srcComponentSize,
WritableRaster dest,
int[] dstComponentSize) |
abstract WritableRaster |
toRGB(Raster src,
int[] srcComponentSize,
WritableRaster dest,
int[] dstComponentSize,
javax.media.jai.ROI roi,
Range nodata,
float[] destNodata)
Converts an input Raster into a new one with RGB ColorSpace
|
static void |
XYZ2RGB(float[] XYZ,
float[] RGB)
Method for converting an XYZ array into an RGB one
|
checkParameters, CIEXYZToRGB, isRGBPreferredIntermediary, RGBToCIEXYZ
fromCIEXYZ, fromRGB, getInstance, getMaxValue, getMinValue, getName, getNumComponents, getType, isCS_sRGB, toCIEXYZ, toRGB
public static final boolean ARRAY_CALC
public static final boolean TILE_CACHED
public static final double POWER1
protected ColorSpaceJAIExt(int type, int numComponents, boolean isRGBPreferredIntermediary)
public abstract WritableRaster fromCIEXYZ(Raster src, int[] srcComponentSize, WritableRaster dest, int[] dstComponentSize, javax.media.jai.ROI roi, Range nodata, float[] destNodata)
src
- srcComponentSize
- dest
- dstComponentSize
- roi
- nodata
- destNodata
- WritableRaster
with destination data valuespublic abstract WritableRaster fromRGB(Raster src, int[] srcComponentSize, WritableRaster dest, int[] dstComponentSize, javax.media.jai.ROI roi, Range nodata, float[] destNodata)
src
- srcComponentSize
- dest
- dstComponentSize
- roi
- nodata
- destNodata
- WritableRaster
with destination data valuespublic abstract WritableRaster toCIEXYZ(Raster src, int[] srcComponentSize, WritableRaster dest, int[] dstComponentSize, javax.media.jai.ROI roi, Range nodata, float[] destNodata)
src
- srcComponentSize
- dest
- dstComponentSize
- roi
- nodata
- destNodata
- WritableRaster
with destination data valuespublic abstract WritableRaster toRGB(Raster src, int[] srcComponentSize, WritableRaster dest, int[] dstComponentSize, javax.media.jai.ROI roi, Range nodata, float[] destNodata)
src
- srcComponentSize
- dest
- dstComponentSize
- roi
- nodata
- destNodata
- WritableRaster
with destination data valuespublic WritableRaster fromCIEXYZ(Raster src, int[] srcComponentSize, WritableRaster dest, int[] dstComponentSize)
fromCIEXYZ
in class javax.media.jai.ColorSpaceJAI
public WritableRaster fromRGB(Raster src, int[] srcComponentSize, WritableRaster dest, int[] dstComponentSize)
fromRGB
in class javax.media.jai.ColorSpaceJAI
public WritableRaster toCIEXYZ(Raster src, int[] srcComponentSize, WritableRaster dest, int[] dstComponentSize)
toCIEXYZ
in class javax.media.jai.ColorSpaceJAI
public WritableRaster toRGB(Raster src, int[] srcComponentSize, WritableRaster dest, int[] dstComponentSize)
toRGB
in class javax.media.jai.ColorSpaceJAI
public static void RGB2XYZ(float[] RGB, float[] XYZ)
RGB
- XYZ
- public static void XYZ2RGB(float[] XYZ, float[] RGB)
XYZ
- RGB
- public static void convertToSigned(double[] buf, int dataType)
public static ColorSpaceJAIExt getIHSColorSpaceJAIEXT()
IHSColorSpaceJAIExt
.public static WritableRaster RGBToCIEXYZ(Raster src, int[] srcComponentSize, WritableRaster dest, int[] destComponentSize, javax.media.jai.ROI roi, Range nodata, float[] destNodata)
public static WritableRaster CIEXYZToRGB(Raster src, int[] srcComponentSize, WritableRaster dest, int[] destComponentSize, javax.media.jai.ROI roi, Range nodata, float[] destNodata)
Copyright © 2006–2015 GeoSolutions. All rights reserved.