Class Affine
- All Implemented Interfaces:
Serializable,Operation
This operation is simply a wrapper for the ImageN Affine operation
- Since:
- 12.0
- Author:
- Simone Giannecchini
- See Also:
-
AffineDescriptor- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class OperationJAI
OperationJAI.Parameters -
Field Summary
Fields inherited from class OperationJAI
operation, RENDERED_MODEFields inherited from class Operation2D
PRIMARY_SOURCE_INDEX, SOURCE_0Fields inherited from class AbstractOperation
descriptor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected RenderedImagecreateRenderedImage(ParameterBlockImageN parameters, RenderingHints hints) Applies the ImageN operation.getProperties(RenderedImage data, CoordinateReferenceSystem crs, InternationalString name, MathTransform gridToCRS, GridCoverage2D[] sources, OperationJAI.Parameters parameters) Prepares the properties to be given to the coverage created by thederiveGridCoveragemethod.protected voidhandleJAIEXTParams(ParameterBlockImageN parameters, ParameterValueGroup parameters2) Extension point for adding to the ImageNParameterBlockImageNobject the parameters defined in theParameterValueGroup, which can be read by the JAI-EXT operations.Methods inherited from class BaseScaleOperationJAI
deriveGridCoverageMethods inherited from class OperationJAI
deriveCategory, deriveName, deriveRange, deriveSampleDimension, deriveUnit, doOperation, equals, extractSources, getJAI, getOperationDescriptor, getQuantitative, handleROINoDataInternal, handleROINoDataProperties, hashCode, prepareParameters, resampleToCommonGeometryMethods inherited from class Operation2D
extractSources, getFactoryMethods inherited from class AbstractOperation
getDescription, getDocURL, getName, getNumSources, getParameters, getVendor, getVersion, toString
-
Constructor Details
-
Affine
public Affine()Default constructor.
-
-
Method Details
-
createRenderedImage
Description copied from class:OperationJAIApplies the ImageN operation. The operation name can be fetch fromOperationJAI.operation. The ImageN instance to use can be fetch fromOperationJAI.getJAI(java.awt.RenderingHints). The default implementation returns the following:
Subclasses may override this method in order to invokes a different ImageN operation according the parameters.getJAI(hints).createNS(OperationJAI.operation.getName(), parameters, hints)
- Overrides:
createRenderedImagein classOperationJAI- Parameters:
parameters- The parameters to be given to ImageN.hints- The rendering hints to be given to ImageN.- Returns:
- The result of ImageN operation using the given parameters and hints.
-
handleJAIEXTParams
Description copied from class:OperationJAIExtension point for adding to the ImageNParameterBlockImageNobject the parameters defined in theParameterValueGroup, which can be read by the JAI-EXT operations.Notice that if you are using JAI, the new parameters will not be accepted by the
ParameterBlockImageNinstance.- Overrides:
handleJAIEXTParamsin classOperationJAI- Parameters:
parameters-ParameterBlockImageNinstance used by the current JAI-EXT/JAI operationparameters2-ParameterValueGroupinstance containing input operation parameters
-
getProperties
protected Map<String,?> getProperties(RenderedImage data, CoordinateReferenceSystem crs, InternationalString name, MathTransform gridToCRS, GridCoverage2D[] sources, OperationJAI.Parameters parameters) Description copied from class:OperationJAIPrepares the properties to be given to the coverage created by thederiveGridCoveragemethod. The default implementation returnsnull.- Overrides:
getPropertiesin classOperationJAI- Parameters:
data- TheRenderedImagecreated by this operation.crs- The coordinate reference system assigned to the coverage thisOperationJAIwill produce.name- The name assigned to the coverage thisOperationJAIwill produce.gridToCRS- The transform from grid tocrsto be assigned to the coverage thisOperationJAIwill produce.sources- The sources to be assigned to the coverage thisOperationJAIwill produce.parameters- The parameters that were used by thisOperationJAI.- Returns:
- a
Mapwith the properties generated by thisOperationJAIor null if we haven't any.
-