jjil.algorithm
Class Gray162Gray8

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

public class Gray162Gray8
extends PipelineStage

Gray162Gray8 converts an 16-bit gray image to an 8-bit gray image. The most significant 8 bits of each pixel are dropped.

Author:
webb

Constructor Summary
Gray162Gray8()
          Creates a new instance of Gray162Gray8
 
Method Summary
 void push(Image image)
          Converts an 16-bit gray image into an 8-bit image by and'ing off the top 8 bits of every pixel.
 
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

Gray162Gray8

public Gray162Gray8()
Creates a new instance of Gray162Gray8

Method Detail

push

public void push(Image image)
          throws Error
Converts an 16-bit gray image into an 8-bit image by and'ing off the top 8 bits of every pixel.

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