|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--trex.Algo.StegoAlgo
|
+--trex.Algo.StegoAlgoRGB
This extension to standard StegoAlgos allows for an
easier implementation, if the subjacent algorithm only works "pixel-wise",
taking one pixel at a time and returning another.
In this case, a TRexFilterRGB must be returned as declared by the
getDecryptFilter(int, int) and getEncryptFilter(java.lang.String, int, int). Traversing the image
then is done by the filtering routines of the java.awt.
| Field Summary |
| Fields inherited from class trex.Algo.StegoAlgo |
passPhrase |
| Constructor Summary | |
StegoAlgoRGB()
|
|
| Method Summary | |
int |
defaultAmplification()
Return the default amplification of this algorithm for the combinedPanel. |
String |
getDecrypted(ImageIcon img)
Return the string contained in the ImageIcon. |
protected abstract TRexFilterRGB |
getDecryptFilter(int w,
int h)
Return a decrypt filter for this algorithm. |
ImageIcon |
getEncrypted(String data,
ImageIcon img)
Return an image hiding the data. |
protected abstract TRexFilterRGB |
getEncryptFilter(String data,
int w,
int h)
Return an encrypt filter for this algorithm. |
| Methods inherited from class trex.Algo.StegoAlgo |
getConfigDialog, getInfo, hasConfigDialog, hasPassPhrase, pictureLargeEnough, setPassPhrase, validConfig |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StegoAlgoRGB()
| Method Detail |
public String getDecrypted(ImageIcon img)
throws DecryptImpossibleException
getDecrypted in class StegoAlgoimg - The image hiding the data.
String.
DecryptImpossibleException
public ImageIcon getEncrypted(String data,
ImageIcon img)
getEncrypted in class StegoAlgodata - Data to hide.img - Envelope image.
ImageIcon hiding the data.
protected abstract TRexFilterRGB getDecryptFilter(int w,
int h)
w - Picture's widthh - Picture's height
ImageFilter that does all the work.
protected abstract TRexFilterRGB getEncryptFilter(String data,
int w,
int h)
data - Data to hide while filteringw - Picture's widthh - Picture's height
ImageFilter that does all the work.public int defaultAmplification()
defaultAmplification in class StegoAlgo
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||