@Beta
public class ImageHeightmap
extends java.lang.Object
Height is determined by how light each pixel of the image is, from black (0) to white (1). Lightness is determined by an average of the 3 color channels.
Constructor and Description |
---|
ImageHeightmap(java.awt.image.BufferedImage image)
Create a new image heightmap from an image.
|
Modifier and Type | Method and Description |
---|---|
double |
getHeightAt(int x,
int y,
int size)
Gets the height at the given position with scaling applied.
|