Modifier and Type | Field | Description |
---|---|---|
protected int[] |
bounds |
This gives the minX,maxX, minY,maxY pixel values for the current
output image.
|
protected int |
inDepth |
|
protected int |
inHeight |
|
protected Image |
inImage |
The input image.
|
protected int |
inWidth |
|
protected int |
outDepth |
|
protected int |
outHeight |
|
protected Image |
outImage |
The output image.
|
protected int |
outWidth |
|
protected Transformer |
trans |
The transformation from the output image to the input image.
|
Constructor | Description |
---|---|
Sampler() |
Modifier and Type | Method | Description |
---|---|---|
Object |
clone() |
Allow someone to get a copy of this sampler for use on another
image.
|
static Sampler |
factory(String type) |
Factory for creating samplers
|
abstract void |
sample(int index) |
Find the value in the input data to put in the output data.
|
void |
setBounds(int[] bounds) |
Set the bounds of the output image that may be asked for.
|
void |
setInput(Image inImage) |
Set the input image for the sampling
|
void |
setOrder(int order) |
Set the order of the classifier.
|
void |
setOutput(Image outImage) |
Set the output image for the sampling
|
void |
setTransform(Transformer transform) |
Set the transformation information.
|
getDescription, getName
protected Image inImage
protected int inHeight
protected int inWidth
protected int inDepth
protected int[] bounds
protected Image outImage
protected int outHeight
protected int outWidth
protected int outDepth
protected Transformer trans
public abstract void sample(int index)
index
- The index into the output array.public Object clone()
public void setInput(Image inImage)
public void setBounds(int[] bounds)
public void setOutput(Image outImage)
public void setTransform(Transformer transform)
transform
- The transformer object.public void setOrder(int order)