Package org.esa.snap.core.subset
Class PixelSubsetRegion
- java.lang.Object
-
- org.esa.snap.core.subset.AbstractSubsetRegion
-
- org.esa.snap.core.subset.PixelSubsetRegion
-
public class PixelSubsetRegion extends AbstractSubsetRegion
Created by jcoravu on 13/2/2020.
-
-
Field Summary
-
Fields inherited from class org.esa.snap.core.subset.AbstractSubsetRegion
borderPixels
-
-
Constructor Summary
Constructors Constructor Description PixelSubsetRegion(int x, int y, int width, int height, int borderPixels)PixelSubsetRegion(Rectangle pixelRegion, int borderPixels)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RectanglecomputeBandPixelRegion(GeoCoding productDefaultGeoCoding, GeoCoding bandDefaultGeoCoding, int defaultProductWidth, int defaultProductHeight, int defaultBandWidth, int defaultBandHeight, boolean roundPixelRegion)RectanglecomputeProductPixelRegion(GeoCoding productDefaultGeoCoding, int defaultProductWidth, int defaultProductHeight, boolean roundPixelRegion)RectanglegetPixelRegion()protected voidvalidateDefaultSize(int defaultProductWidth, int defaultProductHeight, String exceptionMessagePrefix)
-
-
-
Constructor Detail
-
PixelSubsetRegion
public PixelSubsetRegion(int x, int y, int width, int height, int borderPixels)
-
PixelSubsetRegion
public PixelSubsetRegion(Rectangle pixelRegion, int borderPixels)
-
-
Method Detail
-
computeProductPixelRegion
public Rectangle computeProductPixelRegion(GeoCoding productDefaultGeoCoding, int defaultProductWidth, int defaultProductHeight, boolean roundPixelRegion)
- Specified by:
computeProductPixelRegionin classAbstractSubsetRegion
-
computeBandPixelRegion
public Rectangle computeBandPixelRegion(GeoCoding productDefaultGeoCoding, GeoCoding bandDefaultGeoCoding, int defaultProductWidth, int defaultProductHeight, int defaultBandWidth, int defaultBandHeight, boolean roundPixelRegion)
- Specified by:
computeBandPixelRegionin classAbstractSubsetRegion
-
validateDefaultSize
protected void validateDefaultSize(int defaultProductWidth, int defaultProductHeight, String exceptionMessagePrefix)- Overrides:
validateDefaultSizein classAbstractSubsetRegion
-
getPixelRegion
public Rectangle getPixelRegion()
-
-