private class PDFunctionType0.Rinterpol
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private float[] |
in |
private int[] |
inNext |
private int[] |
inPrev |
private int |
numberOfInputValues |
private int |
numberOfOutputValues |
Constructor and Description |
---|
Rinterpol(float[] input,
int[] inputPrev,
int[] inputNext)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private int |
calcSampleIndex(int[] vector)
calculate array index (structure described in p.171 PDF spec 1.7) in multiple dimensions.
|
private int[][] |
getSamples()
Get all sample values of this function.
|
private float[] |
rinterpol(int[] coord,
int step)
Do a linear interpolation if the two coordinates can be known, or
call itself recursively twice.
|
(package private) float[] |
rinterpolate()
Calculate the interpolation.
|
private final float[] in
private final int[] inPrev
private final int[] inNext
private final int numberOfInputValues
private final int numberOfOutputValues
Rinterpol(float[] input, int[] inputPrev, int[] inputNext)
input
- the input coordinatesinputPrev
- coordinate of the "ceil" pointinputNext
- coordinate of the "floor" pointfloat[] rinterpolate()
private float[] rinterpol(int[] coord, int step)
coord
- coord partially set coordinate (not set from step
upwards); gets fully filled in the last call ("leaf"), where it is
used to get the correct samplestep
- between 0 (first call) and dimension - 1private int calcSampleIndex(int[] vector)
vector
- with coordinatesprivate int[][] getSamples()