Class MultiLevelROIGeometry
- Object
-
- MultiLevelROIGeometry
-
- All Implemented Interfaces:
MultiLevelROI
public class MultiLevelROIGeometry extends Object implements MultiLevelROI
A ROIGeometry provider that handles multi-scale ROI with some extras:- Caching of reduced resolution of the same ROI
- Management of the footprint inset
- Author:
- Andrea Aime - GeoSolutions
-
-
Constructor Summary
Constructors Constructor Description MultiLevelROIGeometry(Geometry footprint, Geometry granuleBounds, double inset, FootprintInsetPolicy insetPolicy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Geometry
getFootprint()
This method returns aGeometry
object containing the ROI footprint or, at least, its bounding boxROIGeometry
getTransformedROI(AffineTransform at, int imageIndex, Rectangle imgBounds, ImageReadParam params, ReadType readType)
Returns a transformed ROI based on the input parametersboolean
isEmpty()
Checks if the providedMultiLevelROI
object is empty or not
-
-
-
Constructor Detail
-
MultiLevelROIGeometry
public MultiLevelROIGeometry(Geometry footprint, Geometry granuleBounds, double inset, FootprintInsetPolicy insetPolicy)
-
-
Method Detail
-
getTransformedROI
public ROIGeometry getTransformedROI(AffineTransform at, int imageIndex, Rectangle imgBounds, ImageReadParam params, ReadType readType)
Description copied from interface:MultiLevelROI
Returns a transformed ROI based on the input parameters- Specified by:
getTransformedROI
in interfaceMultiLevelROI
- Parameters:
at
- AffineTransformationimageIndex
- Overview level used for extracting the correct image overviewimgBounds
- ImageBounds to set for Raster ROIsreadType
-ReadType
object indicating how the image file must be read. This may be useful for raster ROIs- Returns:
- a
ROI
object
-
isEmpty
public boolean isEmpty()
Description copied from interface:MultiLevelROI
Checks if the providedMultiLevelROI
object is empty or not- Specified by:
isEmpty
in interfaceMultiLevelROI
- Returns:
- a boolean indicating if this object is empty
-
getFootprint
public Geometry getFootprint()
Description copied from interface:MultiLevelROI
This method returns aGeometry
object containing the ROI footprint or, at least, its bounding box- Specified by:
getFootprint
in interfaceMultiLevelROI
- Returns:
- a
Geometry
object defining ROI bounds
-
-