Class WatermarkingPlugin<C extends OpenStegoConfig>


  • 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
    • Constructor Detail

      • WatermarkingPlugin

        public WatermarkingPlugin()
    • Method Detail

      • extractMsgFileName

        public final String extractMsgFileName​(byte[] stegoData,
                                               String stegoFileName)
        Method to extract the message file name from the stego data. This implementation returns null as this class is for watermarking plugins only
        Specified by:
        extractMsgFileName in class OpenStegoPlugin<C extends OpenStegoConfig>
        Parameters:
        stegoData - Stego data containing the message
        stegoFileName - 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 class OpenStegoPlugin<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 class OpenStegoPlugin<C extends OpenStegoConfig>
        Returns:
        Low watermark