j2d.hpp
Class Threshold3Processor

java.lang.Object
  extended by j2d.hpp.Threshold3Processor
All Implemented Interfaces:
HppFilter3Interface, ImageProcessorInterface

public class Threshold3Processor
extends java.lang.Object
implements HppFilter3Interface, ImageProcessorInterface


Constructor Summary
Threshold3Processor(double _b)
           
 
Method Summary
 int average(int r, int g, int b)
           
 short getB(int r, int g, int b)
           
 short getG(int r, int g, int b)
           
 short getR(int r, int g, int b)
           
 java.awt.Image process(java.awt.Image img)
          a basic garbage in, garbage out processor.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Threshold3Processor

public Threshold3Processor(double _b)
Method Detail

process

public java.awt.Image process(java.awt.Image img)
Description copied from interface: ImageProcessorInterface
a basic garbage in, garbage out processor.

Specified by:
process in interface ImageProcessorInterface
Parameters:
img - input image
Returns:
output image

average

public int average(int r,
                   int g,
                   int b)

getR

public short getR(int r,
                  int g,
                  int b)
Specified by:
getR in interface HppFilter3Interface

getG

public short getG(int r,
                  int g,
                  int b)
Specified by:
getG in interface HppFilter3Interface

getB

public short getB(int r,
                  int g,
                  int b)
Specified by:
getB in interface HppFilter3Interface