|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjjil.core.PipelineStage
jjil.algorithm.MaskedGray8SubImgGen
public class MaskedGray8SubImgGen
Generates subimages from a source Gray8Image, using a mask. In a normal subimage generator subimages are generated evenly spaced across the input image. Here, the subimage is generated only if is center point is not masked. This can increase processing speed in hierarchical detection operations since features detected at coarser resolution don't have to be redetected at finer resolution.
Constructor Summary | |
---|---|
MaskedGray8SubImgGen(int nWidth,
int nHeight,
int nXOffset,
int nYOffset)
Creates a new instance of MaskedGray8SubImgGen. |
Method Summary | |
---|---|
Image |
getFront()
Returns the next subimage generated. |
boolean |
isEmpty()
Returns true iff there is another image available from getFront(). |
void |
push(Image image)
Accepts a new MaskedGray8Image and initializes all the generator indices. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MaskedGray8SubImgGen(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 between subimages.nYOffset
- the vertical offset between subimages.Method Detail |
---|
public boolean isEmpty()
isEmpty
in class PipelineStage
public Image getFront() throws Error
getFront
in class PipelineStage
Error
- if no subimage is available (you have to call isEmpty() to determine if
a subimage is available. As few as 0 subimage can be generated for a
given input if the entire image is masked.) Also throws if the output
image (stored in the superclass) has been changed in type.public void push(Image image) throws Error
push
in class PipelineStage
image
- The input MaskedGray8Image.
Error
- if the input is not of type MaskedGray8Image or is smaller than the
subimages to be generated.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |