jjil.algorithm
Class GrayHorizSimpleEdge

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

public class GrayHorizSimpleEdge
extends PipelineStage

Computes a simple horizontal edge measure. The measure is simply the difference between the current pixel and the one to the left, clamped between Byte.MIN_VALUE and Byte.MAX_VALUE. The output replaces the input.

Author:
webb

Constructor Summary
GrayHorizSimpleEdge()
          Creates a new instance of GrayHorizSimpleEdge
 
Method Summary
 void push(Image image)
          Compute a simple horizontal edge measure.
 
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

GrayHorizSimpleEdge

public GrayHorizSimpleEdge()
Creates a new instance of GrayHorizSimpleEdge

Method Detail

push

public void push(Image image)
          throws Error
Compute a simple horizontal edge measure. The measure is simply the difference between the current pixel and the one to the left, clamped between Byte.MIN_VALUE and Byte.MAX_VALUE. The output replaces the input.

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