|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjjil.core.PipelineStage
jjil.algorithm.Gray8SubImageGenerator
public class Gray8SubImageGenerator
Generates sub images (cropped images positioned regularly across the input image) from an input Gray8Image. The subimages are of type Gray8SubImage which makes it possible to determine their location in the original input image.
Constructor Summary | |
---|---|
Gray8SubImageGenerator(int nWidth,
int nHeight,
int nXOffset,
int nYOffset)
Creates a new instance of Gray8SubImageGenerator. |
Method Summary | |
---|---|
Image |
getFront()
Returns the next subimage. |
boolean |
isEmpty()
Returns true when no more subimages are available from the input image. |
void |
push(Image image)
Reinitializes the subimage generator and prepares it to generate the first Gray8SubImage for the new input. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Gray8SubImageGenerator(int nWidth, int nHeight, int nXOffset, int nYOffset)
nWidth
- The width of the generated subimage.nHeight
- The height of the generated subimage.nXOffset
- The horizontal offset from one subimage to the next.nYOffset
- The vertical offset from one subimage to the next.Method Detail |
---|
public boolean isEmpty()
isEmpty
in class PipelineStage
public Image getFront() throws Error
getFront
in class PipelineStage
Error
- when there are no more subimages available (isEmpty() would return
true.)public void push(Image image) throws Error
push
in class PipelineStage
image
- The new input image (which must be of type Gray8Image).
Error
- if image is not of type Gray8Image, or is too small
(less than the size of the subimages we're supposed to
be generating).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |