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 Rectangle
computeBandPixelRegion(GeoCoding productDefaultGeoCoding, GeoCoding bandDefaultGeoCoding, int defaultProductWidth, int defaultProductHeight, int defaultBandWidth, int defaultBandHeight, boolean roundPixelRegion)
Rectangle
computeProductPixelRegion(GeoCoding productDefaultGeoCoding, int defaultProductWidth, int defaultProductHeight, boolean roundPixelRegion)
Rectangle
getPixelRegion()
protected void
validateDefaultSize(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:
computeProductPixelRegion
in classAbstractSubsetRegion
-
computeBandPixelRegion
public Rectangle computeBandPixelRegion(GeoCoding productDefaultGeoCoding, GeoCoding bandDefaultGeoCoding, int defaultProductWidth, int defaultProductHeight, int defaultBandWidth, int defaultBandHeight, boolean roundPixelRegion)
- Specified by:
computeBandPixelRegion
in classAbstractSubsetRegion
-
validateDefaultSize
protected void validateDefaultSize(int defaultProductWidth, int defaultProductHeight, String exceptionMessagePrefix)
- Overrides:
validateDefaultSize
in classAbstractSubsetRegion
-
getPixelRegion
public Rectangle getPixelRegion()
-
-