Class BufferedImageMapper


  • public class BufferedImageMapper
    extends Mapper
    Mapper which reads height information from the grayscale values of a BufferedImage, normalized to range [0..1].
    Author:
    Nils Hoffmann
    • Constructor Detail

      • BufferedImageMapper

        public BufferedImageMapper​(BufferedImage bi)
    • Method Detail

      • getClippedViewport

        public Rectangle getClippedViewport​(Rectangle roi)
        Returns the intersection of this BufferedImage's dimensions with those passed in in Rectangle roi, if there is one. Otherwise, the returned rectangle may be empty.
        Parameters:
        roi -
        Returns:
      • f

        public double f​(double x,
                        double y)
        Specified by:
        f in class Mapper