Package org.esa.snap.rcp.pixelinfo
Class PixelInfoViewUtils
java.lang.Object
org.esa.snap.rcp.pixelinfo.PixelInfoViewUtils
Utility class to compute pixel value in any raster
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Point2D.Double
computeScenePos
(ProductSceneView view, int x, int y) Compute the scene position according to the view rasterstatic String
getPixelValue
(Point2D.Double scenePos, RasterDataNode raster) Get the pixel value for the current raster
-
Constructor Details
-
PixelInfoViewUtils
public PixelInfoViewUtils()
-
-
Method Details
-
computeScenePos
Compute the scene position according to the view raster- Parameters:
view
- the current viewx
- the current pixel's X coordinatey
- the current pixel's Y coordinate- Returns:
- the scene position
-
getPixelValue
Get the pixel value for the current raster- Parameters:
scenePos
- the scene position (in another raster)raster
- the current raster for which we want to find the pixel value- Returns:
- the pixel value for the current raster
-