jjil.algorithm
Class Gray322Gray8

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

public class Gray322Gray8
extends PipelineStage

Gray82Gray32 converts an 32-bit gray image to a 8-bit gray image. Input values are clamped between 0 and 255 and offset for signed output.

Author:
webb

Constructor Summary
Gray322Gray8()
          Creates a new instance of Gray82Gray32
 
Method Summary
 void push(Image image)
          Converts a 32-bit gray image into an 8-bit gray 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

Gray322Gray8

public Gray322Gray8()
Creates a new instance of Gray82Gray32

Method Detail

push

public void push(Image image)
          throws Error
Converts a 32-bit gray image into an 8-bit gray image.

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