trex.Algo
Class StegoAlgoLSB.LSBDecryptFilter

java.lang.Object
  |
  +--java.awt.image.ImageFilter
        |
        +--java.awt.image.RGBImageFilter
              |
              +--trex.Filter.TRexFilterRGB
                    |
                    +--trex.Algo.StegoAlgoLSB.LSBDecryptFilter
All Implemented Interfaces:
Cloneable, ImageConsumer
Direct Known Subclasses:
StegoAlgoLSBpp.LSBppDecryptFilter
Enclosing class:
StegoAlgoLSB

protected class StegoAlgoLSB.LSBDecryptFilter
extends TRexFilterRGB

LSBDecryptFilter is the decrypt filter for the LSB algorithm.


Field Summary
 
Fields inherited from class trex.Filter.TRexFilterRGB
data, h, w
 
Fields inherited from class java.awt.image.RGBImageFilter
canFilterIndexColorModel, newmodel, origmodel
 
Fields inherited from class java.awt.image.ImageFilter
consumer
 
Fields inherited from interface java.awt.image.ImageConsumer
COMPLETESCANLINES, IMAGEABORTED, IMAGEERROR, RANDOMPIXELORDER, SINGLEFRAME, SINGLEFRAMEDONE, SINGLEPASS, STATICIMAGEDONE, TOPDOWNLEFTRIGHT
 
Constructor Summary
StegoAlgoLSB.LSBDecryptFilter(int w, int h)
          Constructs a new filter.
 
Method Summary
 int filterRGB(int x, int y, int rgb)
          Extracts the data from the image.
 
Methods inherited from class trex.Filter.TRexFilterRGB
getData
 
Methods inherited from class java.awt.image.RGBImageFilter
filterIndexColorModel, filterRGBPixels, setColorModel, setPixels, setPixels, substituteColorModel
 
Methods inherited from class java.awt.image.ImageFilter
clone, getFilterInstance, imageComplete, resendTopDownLeftRight, setDimensions, setHints, setProperties
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StegoAlgoLSB.LSBDecryptFilter

public StegoAlgoLSB.LSBDecryptFilter(int w,
                                     int h)
Constructs a new filter.

Parameters:
w - picture's width
h - picture's height
Method Detail

filterRGB

public int filterRGB(int x,
                     int y,
                     int rgb)
Extracts the data from the image. The data is stored privately and can be requested via the getData() method.

Specified by:
filterRGB in class RGBImageFilter
Parameters:
x - horizontal coordinate
y - vertical coordinate
rgb - input pixel color
Returns:
Arbitrary rgb value, currently original color
See Also:
TRexFilterRGB.getData()