jjil.algorithm
Class GrayAbs

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

public class GrayAbs
extends PipelineStage

Computes absolute value of a Gray8Image, replacing the original.

Author:
webb

Constructor Summary
GrayAbs()
          Creates a new instance of GrayAbs
 
Method Summary
 void push(Image image)
          Compute absolute value of the 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

GrayAbs

public GrayAbs()
Creates a new instance of GrayAbs

Method Detail

push

public void push(Image image)
          throws Error
Compute absolute value of the image. Input is range Byte.MIN_VALUE to Byte.MAX_VALUE; output is 0..Byte.MAX_VALUE

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