public class GKDTree
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
MAX_LEVEL |
static int |
NUM_SAMPLES |
Constructor and Description |
---|
GKDTree(java.lang.String filename,
int dimension,
FileOctree data,
float scale_R) |
Modifier and Type | Method and Description |
---|---|
void |
blur(float sigma)
Blur is a Query at every leaf node and propagates
the value of the leaf node to adjacent leaf nodes.
|
void |
downsample(float sigma)
For all data-points do a Gaussian query - save results to leaf nodes
Query results in a list of points.
|
float[] |
get_drawingStructure()
Returns quads at the cut values of the kd-tree.
|
float[] |
get_drawingStructureColor() |
float[] |
get_drawingStructureUV()
Returns uv-coordinates since they are required in the current rendering process.
|
float[] |
get_Leaves()
Returns a position array of all leaf nodes.
|
float[] |
get_LeavesColor() |
void |
initTree(float sigma)
Starts the tree initialization method.
|
java.util.ArrayList<GKDNode.Result> |
queryIntoTree(float[] pos,
float sigma,
int num_samples)
Starts a Gaussian query at the leaf node.
|
void |
scale(float sigma_s,
float sigma_r)
Sets the scale parameters for the data-set.
|
void |
undoScale() |
void |
upsample(float sigma)
For all data-points a Query is executed.
|
public static final int NUM_SAMPLES
public static final int MAX_LEVEL
public GKDTree(java.lang.String filename, int dimension, FileOctree data, float scale_R)
public void initTree(float sigma)
sigma
- public void scale(float sigma_s, float sigma_r)
sigma_s
- sigma_r
- public void undoScale()
public void downsample(float sigma)
sigma
- public void blur(float sigma)
sigma
- public void upsample(float sigma)
sigma
- public java.util.ArrayList<GKDNode.Result> queryIntoTree(float[] pos, float sigma, int num_samples)
pos
- sigma
- num_samples
- public float[] get_drawingStructure()
public float[] get_drawingStructureUV()
public float[] get_drawingStructureColor()
public float[] get_Leaves()
public float[] get_LeavesColor()