public abstract class AbstractContourGenerator extends Object
computeHeightMatrix()
according to the input object on which one desire to compute a contour
(Mapper
s, Shape
s, etc).Modifier and Type | Field and Description |
---|---|
protected double |
maxValue |
protected double |
minValue |
protected static double |
NON_CONTOUR |
Constructor and Description |
---|
AbstractContourGenerator() |
Modifier and Type | Method and Description |
---|---|
protected double[][] |
computeContour(int xRes,
int yRes,
double[] sortedLevels)
Calculates the points in the XY plane that belong to a contour whose
height is defined by the user in an array
|
protected double[][] |
computeContour(int xRes,
int yRes,
int nLevels)
Calculates the points in the XY plane that belong to a contour
|
protected double[][] |
computeFilledContour(int xRes,
int yRes,
int nLevels)
To paint the contours in the XY plane filling with color between contour
and contour
|
protected abstract void |
computeHeightMatrix(double[][] matrix,
int xRes,
int yRes) |
protected double[][] |
computeXYColors(int xRes,
int yRes,
int nLevels)
Having the colors of the surface on the XY plane gives a lot of info in
some surfaces
|
protected void |
extractCountours(double[][] contours,
double[][] matrix,
int xSpan,
int ySpan)
A point belongs to the contour if it is bigger than anyone of the
surrounding points of the Quantized matrix It is NOT part of the contour
if it is equal (or smaller) to all the surrounding points
|
protected void |
quantizeMatrix(double[][] matrix,
double[] sortedLevels)
Force the input matrix to have the minimum bigger value of the user
provided sortedLevels list
|
protected void |
quantizeMatrix(double[][] matrix,
double min,
double max,
int n)
Force the input matrix to have values rounded to one of the N steps in
the range [min;max].
|
protected static double NON_CONTOUR
protected double minValue
protected double maxValue
protected abstract void computeHeightMatrix(double[][] matrix, int xRes, int yRes)
protected double[][] computeContour(int xRes, int yRes, int nLevels)
protected double[][] computeContour(int xRes, int yRes, double[] sortedLevels)
protected double[][] computeFilledContour(int xRes, int yRes, int nLevels)
protected double[][] computeXYColors(int xRes, int yRes, int nLevels)
protected void quantizeMatrix(double[][] matrix, double[] sortedLevels)
protected void quantizeMatrix(double[][] matrix, double min, double max, int n)
protected void extractCountours(double[][] contours, double[][] matrix, int xSpan, int ySpan)
Copyright © 2016. All rights reserved.