Package org.geotools.coverage.processing
Class BaseStatisticsOperationJAI
Object
AbstractOperation
Operation2D
OperationJAI
BaseStatisticsOperationJAI
- All Implemented Interfaces:
Serializable,Operation
- Direct Known Subclasses:
Extrema,Histogram,ZonalStatistics
This class is the root class for the Statistics operations based on
JAI's StatisticsOpImage like
Extrema and Histogram. It provides basic capabilities for management of geospatial parameters like
ROIs and subsampling factors.- Since:
- 2.4.x
- Author:
- Simone Giannecchini
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class OperationJAI
OperationJAI.Parameters -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LoggerLoggerfor this class.static final ParameterDescriptor<Polygon>The parameter descriptor for the Region Of Interest.static final ParameterDescriptor<Double>The parameter descriptor for the SPATIAL_SUBSAMPLING_Xstatic final ParameterDescriptor<Double>The parameter descriptor for the SPATIAL_SUBSAMPLING_YFields inherited from class OperationJAI
operation, RENDERED_MODEFields inherited from class Operation2D
PRIMARY_SOURCE_INDEX, SOURCE_0Fields inherited from class AbstractOperation
descriptor -
Constructor Summary
ConstructorsConstructorDescriptionConstructor forBaseStatisticsOperationJAI.BaseStatisticsOperationJAI(String name, OperationDescriptor operationDescriptor) Constructor forBaseStatisticsOperationJAI.BaseStatisticsOperationJAI(OperationDescriptor operationDescriptor) Constructor forBaseStatisticsOperationJAI.BaseStatisticsOperationJAI(OperationDescriptor operationDescriptor, ImagingParameterDescriptors replacements) Constructor forBaseStatisticsOperationJAI. -
Method Summary
Modifier and TypeMethodDescriptionprotected static PolygonconvertPolygon(Polygon roiInput, MathTransform worldToGridTransform) Converte a JTSPolygon, which represents a ROI, into an AWTPolygonby means of the providedMathTransform.protected ParameterBlockImageNprepareParameters(ParameterValueGroup parameters) Copies parameter values from the specifiedParameterValueGroupto theParameterBlockImageNMethods inherited from class OperationJAI
createRenderedImage, deriveCategory, deriveGridCoverage, deriveName, deriveRange, deriveSampleDimension, deriveUnit, doOperation, equals, extractSources, getJAI, getOperationDescriptor, getProperties, getQuantitative, handleJAIEXTParams, handleROINoDataInternal, handleROINoDataProperties, hashCode, resampleToCommonGeometryMethods inherited from class Operation2D
extractSources, getFactoryMethods inherited from class AbstractOperation
getDescription, getDocURL, getName, getNumSources, getParameters, getVendor, getVersion, toString
-
Field Details
-
LOGGER
Loggerfor this class. -
SPATIAL_SUBSAMPLING_X
The parameter descriptor for the SPATIAL_SUBSAMPLING_X -
SPATIAL_SUBSAMPLING_Y
The parameter descriptor for the SPATIAL_SUBSAMPLING_Y -
ROI
The parameter descriptor for the Region Of Interest.
-
-
Constructor Details
-
BaseStatisticsOperationJAI
public BaseStatisticsOperationJAI(OperationDescriptor operationDescriptor) Constructor forBaseStatisticsOperationJAI.- Parameters:
operationDescriptor-OperationDescriptorfor the underlying ImageN operation.
-
BaseStatisticsOperationJAI
public BaseStatisticsOperationJAI(OperationDescriptor operationDescriptor, ImagingParameterDescriptors replacements) Constructor forBaseStatisticsOperationJAI.- Parameters:
operationDescriptor-OperationDescriptorfor the underlying ImageN operation.replacements-ImagingParameterDescriptorsthat should replace the correspondentImagingParametersin order to change the default behavior they have inside ImageN.
-
BaseStatisticsOperationJAI
Constructor forBaseStatisticsOperationJAI.- Parameters:
name- of the underlying ImageN operation.
-
BaseStatisticsOperationJAI
Constructor forBaseStatisticsOperationJAI.- Parameters:
name- of the underlying ImageN operation.
-
-
Method Details
-
prepareParameters
Copies parameter values from the specifiedParameterValueGroupto theParameterBlockImageN- Overrides:
prepareParametersin classOperationJAI- Parameters:
parameters- TheParameterValueGroupto be copied.- Returns:
- A copy of the provided
ParameterValueGroupas a ImageN block. - See Also:
-
convertPolygon
protected static Polygon convertPolygon(Polygon roiInput, MathTransform worldToGridTransform) throws TransformException Converte a JTSPolygon, which represents a ROI, into an AWTPolygonby means of the providedMathTransform.- Parameters:
roiInput- the input ROI as a JTSPolygon.worldToGridTransform- theMathTransformto apply to the input ROI.- Returns:
- an AWT
Polygon. - Throws:
TransformException- in case the providedMathTransformchokes.
-