|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--trex.Algo.StegoAlgo | +--trex.Algo.StegoAlgoFFT
This algorithm stores data in the frequency domain.
Field Summary |
Fields inherited from class trex.Algo.StegoAlgo |
passPhrase |
Constructor Summary | |
StegoAlgoFFT()
|
Method Summary | |
protected javax.media.jai.PlanarImage |
cropImage(Object img,
int width,
int height)
After the inverse DFT, the image can be cropped to the original image's size with this function. |
int |
defaultAmplification()
Return the default amplification of this algorithm for the combinedPanel. |
protected javax.media.jai.PlanarImage |
embedData(String data,
javax.media.jai.PlanarImage img,
int w,
int h)
Embed data into image. |
protected String |
extractData(javax.media.jai.PlanarImage img,
int w,
int h)
Get actual data from image. |
protected javax.media.jai.PlanarImage |
FormatTransformed(javax.media.jai.PlanarImage src,
BufferedImage template)
Reformat the image to "TYPE_BYTE" so it can be displayed. |
Component |
getConfigDialog()
Return the config dialog. |
String |
getDecrypted(ImageIcon img)
Get embedded data from image. |
ImageIcon |
getEncrypted(String data,
ImageIcon img)
This method is called from the application's StegData object. |
String |
getInfo()
Static info. |
boolean |
hasConfigDialog()
Algorithm has a config dialog. |
boolean |
hasPassPhrase()
Algorithm doesn't have a pass phrase - uses a config dialog instead. |
boolean |
pictureLargeEnough(ImageIcon img,
String data)
Algorithm currently does not know how big an image has to be. |
protected javax.media.jai.PlanarImage |
squaredImage(Object img,
int width,
int height)
As FFT needs Images of the dimension n^2 x m^2 for any natural n and m, the image is converted to an image of that size beforehand with this method. |
boolean |
validConfig()
Config is valid when it's "I know it's senseless" button is checked. |
Methods inherited from class trex.Algo.StegoAlgo |
setPassPhrase |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StegoAlgoFFT()
Method Detail |
public boolean pictureLargeEnough(ImageIcon img, String data)
pictureLargeEnough
in class StegoAlgo
img
- Image to hide data indata
- data to hide
public boolean hasPassPhrase()
hasPassPhrase
in class StegoAlgo
public boolean hasConfigDialog()
hasConfigDialog
in class StegoAlgo
public boolean validConfig()
validConfig
in class StegoAlgo
protected String extractData(javax.media.jai.PlanarImage img, int w, int h) throws DecryptImpossibleException
img
- (idft) Image to get data from.w
- Image widthh
- Image height
DecryptImpossibleException
public String getDecrypted(ImageIcon img) throws DecryptImpossibleException
getDecrypted
in class StegoAlgo
img
- Image to get data from.
DecryptImpossibleException
public Component getConfigDialog()
getConfigDialog
in class StegoAlgo
StegoAlgo.hasConfigDialog()
,
StegoAlgo.hasPassPhrase()
public String getInfo()
getInfo
in class StegoAlgo
protected javax.media.jai.PlanarImage FormatTransformed(javax.media.jai.PlanarImage src, BufferedImage template)
src
- Image to transform.template
- Image to take sample- and color model from.
protected javax.media.jai.PlanarImage embedData(String data, javax.media.jai.PlanarImage img, int w, int h)
data
- Data to embed.img
- Envelope image.w
- Image width.h
- Image height.
protected javax.media.jai.PlanarImage squaredImage(Object img, int width, int height)
cropImage(java.lang.Object, int, int)
function.
img
- Image to resize. Any format recognized by JAI is allowed.width
- Original image width.height
- Original image height.
protected javax.media.jai.PlanarImage cropImage(Object img, int width, int height)
img
- Image to crop.width
- New image width.height
- New image height.
public ImageIcon getEncrypted(String data, ImageIcon img)
embedData(java.lang.String, javax.media.jai.PlanarImage, int, int)
method.
getEncrypted
in class StegoAlgo
data
- Data to hide.img
- Envelope image.
ImageIcon
hiding the data.public int defaultAmplification()
defaultAmplification
in class StegoAlgo
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |