|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjjil.core.PipelineStage
jjil.algorithm.GrayRectStretch
public class GrayRectStretch
Pipeline stage stretches an image to a larger rectangular size with bilinear interpolation. For more information on this and other image warps, see George Wolberg's excellent book, "Digital Image Warping", Wiley-IEEE Computer Society Press, 1990.
| Constructor Summary | |
|---|---|
GrayRectStretch(int cWidth,
int cHeight)
Creates a new instance of GrayRectStretch. |
|
| Method Summary | |
|---|---|
int |
getHeight()
Gets current target height |
int |
getWidth()
Gets current target width |
void |
push(Image image)
Bilinear interpolation to stretch image to (cWidth, cHeight). |
void |
setHeight(int cHeight)
Changes target height |
void |
setWidth(int cWidth)
Changes target width |
java.lang.String |
toString()
Return a string describing the stretching operation. |
| Methods inherited from class jjil.core.PipelineStage |
|---|
getFront, isEmpty |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GrayRectStretch(int cWidth,
int cHeight)
throws Error
cWidth - new image widthcHeight - new image height
Error - if either is less than or equal to zero.| Method Detail |
|---|
public int getHeight()
public int getWidth()
public void push(Image image)
throws Error
push in class PipelineStageimage - the input image
Error - if input image is not gray 8 bits,
or the input image size is larger than the target size. This class
does not do subsampling, only interpolation.
public void setHeight(int cHeight)
throws Error
cHeight - the new target height.
Error - if height is not positive
public void setWidth(int cWidth)
throws Error
cWidth - the new target width.
Error - if height is not positivepublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||