org.jzy3d.plot3d.builder.concrete
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
Method Summary |
double |
f(double x,
double y)
|
java.awt.Rectangle |
getClippedViewport(java.awt.Rectangle roi)
Returns the intersection of this BufferedImage's dimensions
with those passed in in Rectangle roi, if there is one. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BufferedImageMapper
public BufferedImageMapper(java.awt.image.BufferedImage bi)
getClippedViewport
public java.awt.Rectangle getClippedViewport(java.awt.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