jjil.core
Class PipelineStage

java.lang.Object
  extended by jjil.core.PipelineStage
Direct Known Subclasses:
CannyHoriz, Complex2Gray32, Copy, DeblurHorizHalftone, DetectHaarMultiScale, DetectHaarMultiScale, FftGray8, GaussDeblurHoriz, GaussHoriz, Gray162Gray8, Gray16Threshold, Gray2Rgb, Gray322Gray8, Gray32Div, Gray32Scale2Gray8, Gray82Gray32, Gray8QmSum, Gray8Rect, Gray8SubImageGenerator, GrayAbs, GrayCrop, GrayHistEq, GrayHistMatch, GrayHorizSimpleEdge, GrayHorizVar, GrayHorizVertContrast, GrayLookup, GrayRectStretch, GrayReduce, GrayShrink, GrayThreshold, GrayTrapWarp, GrayVertVar, IFftComplex32, InverseFilter, Ladder, MaskedGray32SubImgGen, MaskedGray8SubImgGen, Rgb3x3Average, RgbAvg2Gray, RgbClip, RgbCrop, RgbMaxContrast2Gray, RgbSelect2Gray, RgbShrink, RgbStretch, RgbSubSample, Sequence, SumG82G32, WienerDeconv

public abstract class PipelineStage
extends java.lang.Object

PipelineStage is the class from which all image to image processing operations must derive. It holds the output image (in imageOutput) and notes whether there is an image available or not (in fReady). It is intended to be used as a single-level stack element.

Author:
webb

Method Summary
 Image getFront()
          Returns the current output, and pops it off the stack.
 boolean isEmpty()
          Returns true iff this pipeline stage does not have an output available.
abstract  void push(Image imageInput)
          Actual processing is done in the derived class here.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isEmpty

public boolean isEmpty()
Returns true iff this pipeline stage does not have an output available.

Returns:
true iff the pipeline stage does not have an image available.

getFront

public Image getFront()
               throws Error
Returns the current output, and pops it off the stack.

Returns:
the current output
Throws:
Error - if no output is available

push

public abstract void push(Image imageInput)
                   throws Error
Actual processing is done in the derived class here.

Parameters:
imageInput - the input image
Throws:
Error - typically, when the image is not of the expected type.