|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjjil.core.PipelineStage
jjil.algorithm.GrayTrapWarp
public class GrayTrapWarp
This PipelineStage warps a trapezoid in the input gray image into a rectangular output image.
Constructor Summary | |
---|---|
GrayTrapWarp(int nRowStart,
int nRowEnd,
int nColLeftStart,
int nColRightStart,
int nColLeftEnd,
int nColRightEnd)
Creates a new instance of GrayTrapWarp. |
Method Summary | |
---|---|
int |
getColLeftEnd()
Returns the left column position of the trapezoid in the ending row. |
int |
getColLeftStart()
Returns the left column position of the trapezoid in the starting row. |
int |
getColRightEnd()
Returns the right column position of the trapezoid in the ending row. |
int |
getColRightStart()
Returns the right column position of the trapezoid in the starting row. |
int |
getRowEnd()
Returns the ending row of the trapezoid. |
int |
getRowStart()
Returns the starting row of the trapezoid. |
void |
push(Image image)
Warps a trapezoidal region in the input gray image into a rectangular output image. |
void |
setTrapezoid(int nRowStart,
int nRowEnd,
int nColLeftStart,
int nColRightStart,
int nColLeftEnd,
int nColRightEnd)
Sets the bounds of the trapezoid. |
java.lang.String |
toString()
Returns a string describing the current instance. |
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 GrayTrapWarp(int nRowStart, int nRowEnd, int nColLeftStart, int nColRightStart, int nColLeftEnd, int nColRightEnd) throws Error
The bounds are specified here in a manner consistent with the way they are specified as array bounds -- that is, the starting bound is closed (<=) and the ending bound is open (<).
nRowStart
- starting row of trapezoid in input imagenRowEnd
- bounding row of trapezoid in input image. This is one past
the actual last row processed in the input image.nColLeftStart
- left edge of trapezoid on starting row.nColRightStart
- right bound of trapezoid on starting row. This is
one past the actual last column processed in the input image.nColLeftEnd
- left edge of trapezoid on ending rownColRightEnd
- right bound of trapezoid on ending row. This is one
past the actual last column processed in the input image. The row
referred to as the ending row is the one above the bounding row, i.e.,
nRowEnd.
Error
- if the trapezoid is empty or outside
the bounds of any image, i.e., if nRowStart < 0, or nRowEnd <= nRowStart,
or nColLeftStart <= nColRightStart, or nColLeftEnd <= nColRightEnd.Method Detail |
---|
public int getColLeftEnd()
public int getColLeftStart()
public int getColRightEnd()
public int getColRightStart()
public int getRowEnd()
public int getRowStart()
public void push(Image image) throws Error
push
in class PipelineStage
image
- the input gray image.
Error
- if the input image is not gray,
or the trapezoid already specified extends outside its bounds.public void setTrapezoid(int nRowStart, int nRowEnd, int nColLeftStart, int nColRightStart, int nColLeftEnd, int nColRightEnd) throws Error
nRowStart
- starting row of trapezoid in input imagenRowEnd
- ending row of trapezoid in input imagenColLeftStart
- left edge of trapezoid on starting row.nColRightStart
- right edge of trapezoid on starting rownColLeftEnd
- left edge of trapezoid on ending rownColRightEnd
- right edge of trapezoid on ending row
Error
- if the trapezoid is empty or outside
the bounds of any image, i.e., if nRowStart < 0, or nRowEnd <= nRowStart,
or nColLeftStart <= nColRightStart, or nColLeftEnd <= nColRightEnd.public 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 |