Class BufferedImageMapper

java.lang.Object
org.jzy3d.plot3d.builder.Mapper
org.jzy3d.plot3d.builder.concrete.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 Details

    • BufferedImageMapper

      public BufferedImageMapper(BufferedImage bi)
  • Method Details

    • 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