public class DownsizeTable
extends java.lang.Object
DownSizeTable dt = new DownSizeTable(width, roi.x, roi.width, destinationWidth, ImageProcessor.BICUBIC);
int tablePointer = 0;
for (int srcPoint=dt.srcStart, srcPoint<=dt.srcEnd; srcPoint++) {
float v = pixels[srcPoint];
for (int i=0; i
Modifier and Type | Field and Description |
---|---|
int[] |
indices
For each source point between srcStart and srcEnd, indices of destination
points where the data should be added.
|
int |
kernelSize
Number of kernel points per source data point
|
int |
srcEnd
index of the last point of the source data that should be accessed
|
int |
srcStart
index of the first point of the source data that should be accessed
|
float[] |
weights
For each source point, weights for adding it to the destination point
given in the corresponding element of 'indices'
|
Modifier and Type | Method and Description |
---|---|
protected float |
kernel(double x) |
public final int kernelSize
public final int srcStart
public final int srcEnd
public final int[] indices
public final float[] weights