Class PixelInfoViewUtils


  • public class PixelInfoViewUtils
    extends Object
    Utility class to compute pixel value in any raster
    • Constructor Detail

      • PixelInfoViewUtils

        public PixelInfoViewUtils()
    • Method Detail

      • computeScenePos

        public static Point2D.Double computeScenePos​(ProductSceneView view,
                                                     int x,
                                                     int y)
        Compute the scene position according to the view raster
        Parameters:
        view - the current view
        x - the current pixel's X coordinate
        y - the current pixel's Y coordinate
        Returns:
        the scene position
      • getPixelValue

        public static String getPixelValue​(Point2D.Double scenePos,
                                           RasterDataNode raster)
        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