jjil.algorithm
Class Gray32Scale2Gray8

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

public class Gray32Scale2Gray8
extends PipelineStage

Gray32Scale2Gray8 converts an 32-bit gray image to a 8-bit gray image. Input values are scaled so that the max value in the image maps to Byte.MAX_VALUE and the minimum value to Byte.MIN_VALUE.

Author:
webb

Constructor Summary
Gray32Scale2Gray8()
          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

Gray32Scale2Gray8

public Gray32Scale2Gray8()
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