|
JIGL v1.6 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--jigl.image.SimpleOperator
|
+--jigl.image.warp.Mapper
Mapper applies a transformation (PointMapper) to an entire image.
| Field Summary | |
static int |
CUBIC
Interpolation method types 3 |
static int |
LINEAR
Interpolation method types 2 |
protected float[] |
m_defColor
Backgroung color |
private int |
m_interpMethod
Interpolation methods: neighbor, linear or cubic |
private PointMapper |
m_mapper
Pointmapper object for transformation |
static int |
NEIGHBOR
Interpolation method types 1 |
| Constructor Summary | |
Mapper(PointMapper mapper,
int interpolationMethod)
Constructs a Mapper object from a PointMapper object and an interpolation method. |
|
| Method Summary | |
protected Image |
apply(ColorImage image)
Applies the transformation to image through the PointMapper. |
protected Image |
apply(GrayImage image)
Applies the transformation to image through the PointMapper. |
protected Image |
apply(RealColorImage image)
Applies the transformation to image through the PointMapper. |
protected Image |
apply(RealGrayImage image)
Applies the transformation to image through the PointMapper. |
void |
setDefaultColor(float[] color)
set the color that will be use in apply() when out of bounds of the interpolated image. |
| Methods inherited from class jigl.image.SimpleOperator |
apply, apply, apply, apply, apply, apply, apply, apply, apply, apply |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private int m_interpMethod
private PointMapper m_mapper
public static final int NEIGHBOR
public static final int LINEAR
public static final int CUBIC
protected float[] m_defColor
| Constructor Detail |
public Mapper(PointMapper mapper,
int interpolationMethod)
throws ImageNotSupportedException
interpolationMethod - the way to interpolate (0=NEIGHBOR 1=LINEAR 2=CUBIC)| Method Detail |
public void setDefaultColor(float[] color)
color - color to be used as default color. color will be used to the extent needed by the image type. For example,
a GrayImage will return (int)color[0] for the default color, and RealColorImage will use the first three elements of
color. If not enough elements are in the array, the last color will be repeated as needed.protected Image apply(GrayImage image)
image through the PointMapper.
image is not modified.
apply in class SimpleOperatorimage - GrayImage to map.
protected Image apply(RealGrayImage image)
image through the PointMapper. image is not modified.
apply in class SimpleOperatorimage - RealGrayImage to map.
protected Image apply(ColorImage image)
image through the PointMapper. image is not modified.
apply in class SimpleOperatorimage - ColorImage to map.
protected Image apply(RealColorImage image)
image through the PointMapper. image is not modified.
apply in class SimpleOperatorimage - RealColorImage to map.
|
JIGL v1.6 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||