jjil.algorithm
Class SumG82G32

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

public class SumG82G32
extends PipelineStage

Forms integral image by summing pixels in a Gray8[Sub]Image to form a Gray32[Sub]Image.
The computation is O(i,j) = Sum for k<=i,l<=j of I(k,l)
Note output type is 32 bit because otherwise we'd get truncation. With 32-bit output we can go up to 65,536 = 256x256 pixels in the input image.

Author:
webb

Constructor Summary
SumG82G32()
          Creates a new instance of SumG82G32
 
Method Summary
 void push(Image image)
          Form the cumulative sum
 
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

SumG82G32

public SumG82G32()
Creates a new instance of SumG82G32

Method Detail

push

public void push(Image image)
          throws Error
Form the cumulative sum

Output(i,j) = Sum(k≤i,j≤j)[Input(k,l)]

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