public class InterpolatingMicrosphere2D extends InterpolatingMicrosphere
MicrosphereProjectionInterpolatoralgorithm. For 2D interpolation, this class constructs the microsphere as a series of evenly spaced facets (rather than generating random normals as in the base implementation).
|Modifier||Constructor and Description|
Create a sphere from vectors regularly sampled around a circle.
|Modifier and Type||Method and Description|
Perform a copy.
add, getDimension, getSize, value
public InterpolatingMicrosphere2D(int size, double maxDarkFraction, double darkThreshold, double background)
size- Number of surface elements of the sphere.
maxDarkFraction- Maximum fraction of the facets that can be dark. If the fraction of "non-illuminated" facets is larger, no estimation of the value will be performed, and the
backgroundvalue will be returned instead.
darkThreshold- Value of the illumination below which a facet is considered dark.
background- Value returned when the
maxDarkFractionthreshold is exceeded.
size <= 0.
darkThreshold < 0.
maxDarkFractiondoes not belong to the interval
Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.