jjil.algorithm
Class Gray8QmSum

java.lang.Object
  extended by jjil.core.PipelineStage
      extended by jjil.algorithm.Gray8QmSum

public class Gray8QmSum
extends PipelineStage

Gray8QmSum forms the cumulative sum of an image.

Output(i,j) = Sum(Input(k,l), k ≤ i, l ≤ j).
Output is a 32-bit gray image. Input is an 8-bit gray image.

Author:
webb

Constructor Summary
Gray8QmSum()
          Creates a new instance of Gray8QmSum
 
Method Summary
 void push(Image image)
          Forms the cumulative sum of an image.
 
Methods inherited from class jjil.core.PipelineStage
getFront, isEmpty
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Gray8QmSum

public Gray8QmSum()
Creates a new instance of Gray8QmSum

Method Detail

push

public void push(Image image)
          throws Error
Forms the cumulative sum of an image. Output(i,j) = Sum(Input(k,l), k @lte i, l@lte j). Output is 32-bit gray image. Input is 8-bit gray image.

Specified by:
push in class PipelineStage
Parameters:
image - the input image.
Throws:
Error - if the input is not a Gray8Image