Package com.openstego.desktop
Class WatermarkingPlugin<C extends OpenStegoConfig>
- java.lang.Object
-
- com.openstego.desktop.OpenStegoPlugin<C>
-
- com.openstego.desktop.WatermarkingPlugin<C>
-
public abstract class WatermarkingPlugin<C extends OpenStegoConfig> extends OpenStegoPlugin<C>
Abstract class for stego plugins for OpenStego purpose of which is watermarking. It implements few methods which are specific for watermarking, and provides dummy implementation for the methods which are specific to data hiding purposes so that sub-class does not need to implement them- See Also:
DataHidingPlugin
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openstego.desktop.OpenStegoPlugin
OpenStegoPlugin.Purpose
-
-
Field Summary
-
Fields inherited from class com.openstego.desktop.OpenStegoPlugin
config
-
-
Constructor Summary
Constructors Constructor Description WatermarkingPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
extractMsgFileName(byte[] stegoData, String stegoFileName)
Method to extract the message file name from the stego data.double
getHighWatermarkLevel()
Method to get correlation value which above which it can be considered that watermark strength is high (default to 0.5 which is safe for general watermarking)double
getLowWatermarkLevel()
Method to get correlation value which below which it can be considered that watermark strength is low (default to 0.2 which is safe for general watermarking)List<OpenStegoPlugin.Purpose>
getPurposes()
Gives the purpose(s) of the plugin.-
Methods inherited from class com.openstego.desktop.OpenStegoPlugin
checkMark, createConfig, createConfig, embedData, extractData, generateSignature, getConfig, getDescription, getDiff, getEmbedOptionsUI, getName, getPurposesLabel, getReadableFileExtensions, getUsage, getWatermarkCorrelation, getWritableFileExtensions, populateStdCmdLineOptions, resetConfig, resetConfig
-
-
-
-
Method Detail
-
getPurposes
public final List<OpenStegoPlugin.Purpose> getPurposes()
Gives the purpose(s) of the plugin. This implementation returns only one value - Watermarking- Specified by:
getPurposes
in classOpenStegoPlugin<C extends OpenStegoConfig>
- Returns:
- Purpose(s) of the plugin
-
extractMsgFileName
public final String extractMsgFileName(byte[] stegoData, String stegoFileName)
Method to extract the message file name from the stego data. This implementation returnsnull
as this class is for watermarking plugins only- Specified by:
extractMsgFileName
in classOpenStegoPlugin<C extends OpenStegoConfig>
- Parameters:
stegoData
- Stego data containing the messagestegoFileName
- Name of the stego file- Returns:
- Message file name
-
getHighWatermarkLevel
public double getHighWatermarkLevel()
Method to get correlation value which above which it can be considered that watermark strength is high (default to 0.5 which is safe for general watermarking)- Specified by:
getHighWatermarkLevel
in classOpenStegoPlugin<C extends OpenStegoConfig>
- Returns:
- High watermark
-
getLowWatermarkLevel
public double getLowWatermarkLevel()
Method to get correlation value which below which it can be considered that watermark strength is low (default to 0.2 which is safe for general watermarking)- Specified by:
getLowWatermarkLevel
in classOpenStegoPlugin<C extends OpenStegoConfig>
- Returns:
- Low watermark
-
-