public class ReinterpretDescriptor
extends javax.media.jai.OperationDescriptorImpl
OperationDescriptor
describing the "Reinterpret"
operation.
The Reinterpret operation creates a single-banded, tiled rendered image, where the source samples are rescaled or reformatted.
Modifier and Type | Field and Description |
---|---|
static InterpretationType |
AWT
The default interpretation type: all data types are interpreted as in AWT
|
static ScalingType |
EXPONENTIAL
Exponential scaling type: source samples are scaled linearly
and then raised to the power of 10.
|
static InterpretationType |
INTERPRET_BYTE_SIGNED
Interpretation type for interpreting byte data as signed.
|
static InterpretationType |
INTERPRET_INT_UNSIGNED
Interpretation type for interpreting integer data as unsigned.
|
static ScalingType |
LINEAR
The default scaling type: source samples are scaled linearly.
|
static ScalingType |
LOGARITHMIC
Logarithmic scaling type: source samples are scaled linearly
and then their logarithms to the basis of 10 are computed.
|
static String |
PARAM_NAME_FACTOR |
static String |
PARAM_NAME_INTERPRETATION_TYPE |
static String |
PARAM_NAME_OFFSET |
static String |
PARAM_NAME_SCALING_TYPE |
Constructor and Description |
---|
ReinterpretDescriptor()
Constructs a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
static javax.media.jai.RenderedOp |
create(RenderedImage source,
double factor,
double offset,
ScalingType scalingType,
InterpretationType interpretationType,
RenderingHints hints)
Reinterprets an image.
|
static javax.media.jai.ImageLayout |
createTargetImageLayout(RenderedImage source,
SampleModel sampleModel)
Creates the target image layout for a given source and a given target sample model.
|
static int |
getTargetDataType(int sourceDataType,
double factor,
double offset,
ScalingType scalingType,
InterpretationType interpretationType)
Returns the target data type for a given source data type and reinterpretation properties.
|
arePropertiesSupported, getDefaultSourceClass, getDestClass, getDestClass, getInvalidRegion, getName, getNumParameters, getNumSources, getParamClasses, getParamDefaults, getParamDefaultValue, getParameterListDescriptor, getParamMaxValue, getParamMinValue, getParamNames, getPropertyGenerators, getPropertyGenerators, getRenderableDestClass, getRenderableSourceClasses, getResourceBundle, getResources, getSourceClasses, getSourceClasses, getSourceNames, getSupportedModes, isImmediate, isModeSupported, isRenderableSupported, isRenderedSupported, makeDefaultSourceClassList, validateArguments, validateArguments, validateParameters, validateParameters, validateRenderableArguments, validateRenderableSources, validateSources, validateSources
public static final String PARAM_NAME_FACTOR
public static final String PARAM_NAME_OFFSET
public static final String PARAM_NAME_SCALING_TYPE
public static final String PARAM_NAME_INTERPRETATION_TYPE
public static final InterpretationType AWT
public static final InterpretationType INTERPRET_BYTE_SIGNED
public static final InterpretationType INTERPRET_INT_UNSIGNED
public static final ScalingType LINEAR
public static final ScalingType EXPONENTIAL
public static final ScalingType LOGARITHMIC
public ReinterpretDescriptor()
public static javax.media.jai.RenderedOp create(RenderedImage source, double factor, double offset, ScalingType scalingType, InterpretationType interpretationType, RenderingHints hints)
Creates a ParameterBlockJAI
from all supplied arguments (except hints
) and
invokes JAI.create(String,java.awt.image.renderable.ParameterBlock,java.awt.RenderingHints)
.
source
- The RenderedImage
source.factor
- The scaling factor.offset
- The scaling offset.scalingType
- The manner of scaling.interpretationType
- The interpretation type.hints
- The RenderingHints
to use. May be null
.RenderedOp
destination.IllegalArgumentException
- if source
is null
.JAI
,
ParameterBlockJAI
,
RenderedOp
public static javax.media.jai.ImageLayout createTargetImageLayout(RenderedImage source, SampleModel sampleModel)
source
- The source.sampleModel
- The target sample model.public static int getTargetDataType(int sourceDataType, double factor, double offset, ScalingType scalingType, InterpretationType interpretationType)
sourceDataType
- The source data typefactor
- The scaling factor.offset
- The scaling offset.scalingType
- The manner of scaling.interpretationType
- The interpretation type.DataBuffer
Copyright © 2014–2015 European Space Agency (ESA). All rights reserved.