jjil.algorithm
Class Gray32Div

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

public class Gray32Div
extends PipelineStage

Divides a Gray32Image by a constant.

Author:
webb

Constructor Summary
Gray32Div(int nDivisor)
          Creates a new instance of Gray32Div.
 
Method Summary
 void push(Image image)
          Divides a Gray32Image by a constant.
 void setDivisor(int nDivisor)
          Changes divisor.
 
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

Gray32Div

public Gray32Div(int nDivisor)
          throws Error
Creates a new instance of Gray32Div.

Parameters:
nDivisor - The number to divide the input image by.
Throws:
Error - if the divisor is 0.
Method Detail

push

public void push(Image image)
          throws Error
Divides a Gray32Image by a constant.

Specified by:
push in class PipelineStage
Parameters:
image - the image image (and output)
Throws:
Error - if the image is not a gray 32-bit image.

setDivisor

public void setDivisor(int nDivisor)
                throws Error
Changes divisor.

Parameters:
nDivisor - The new divisor.
Throws:
Error - if the divisor is 0.