public class MapperContourPictureGenerator extends AbstractContourGenerator implements IContourPictureGenerator
Mapper, and returns it
as a BufferedImage.| Modifier and Type | Field and Description |
|---|---|
static float |
LINE_STRIP_WIDTH |
protected Mapper |
mapper |
static int |
MERGE_STRIP_DIST |
static int |
PIXEL_NEIGHBOUR_THRESHOLD |
protected Range |
xrange |
protected Range |
yrange |
maxValue, minValue, NON_CONTOUR| Constructor and Description |
|---|
MapperContourPictureGenerator(Mapper mapper,
Range xrange,
Range yrange) |
| Modifier and Type | Method and Description |
|---|---|
protected BufferedImage |
buildImage(int xRes,
int yRes,
double[][] contours,
IContourColoringPolicy policy) |
protected void |
computeHeightMatrix(double[][] matrix,
int xRes,
int yRes)
Calculates the Height of the surface for each point in the XY plane
|
BufferedImage |
getContourImage(IContourColoringPolicy policy,
int xRes,
int yRes,
double[] sortedLevels) |
BufferedImage |
getContourImage(IContourColoringPolicy policy,
int xRes,
int yRes,
int nLevels) |
double[][] |
getContourMatrix(int xRes,
int yRes,
int nLevels) |
BufferedImage |
getFilledContourImage(IContourColoringPolicy policy,
int xRes,
int yRes,
int nLevels) |
BufferedImage |
getHeightMap(IContourColoringPolicy policy,
int xRes,
int yRes,
int nLevels) |
computeContour, computeContour, computeFilledContour, computeXYColors, extractCountours, quantizeMatrix, quantizeMatrixpublic static int PIXEL_NEIGHBOUR_THRESHOLD
public static float LINE_STRIP_WIDTH
public static int MERGE_STRIP_DIST
protected Mapper mapper
protected Range xrange
protected Range yrange
public double[][] getContourMatrix(int xRes,
int yRes,
int nLevels)
getContourMatrix in interface IContourGeneratorpublic BufferedImage getContourImage(IContourColoringPolicy policy, int xRes, int yRes, int nLevels)
getContourImage in interface IContourPictureGeneratorpublic BufferedImage getContourImage(IContourColoringPolicy policy, int xRes, int yRes, double[] sortedLevels)
getContourImage in interface IContourPictureGeneratorpublic BufferedImage getFilledContourImage(IContourColoringPolicy policy, int xRes, int yRes, int nLevels)
getFilledContourImage in interface IContourPictureGeneratorpublic BufferedImage getHeightMap(IContourColoringPolicy policy, int xRes, int yRes, int nLevels)
getHeightMap in interface IContourPictureGeneratorprotected BufferedImage buildImage(int xRes, int yRes, double[][] contours, IContourColoringPolicy policy)
protected void computeHeightMatrix(double[][] matrix,
int xRes,
int yRes)
computeHeightMatrix in class AbstractContourGeneratorCopyright © 2016. All rights reserved.