Class DataHidingPlugin<C extends OpenStegoConfig>


  • public abstract class DataHidingPlugin<C extends OpenStegoConfig>
    extends OpenStegoPlugin<C>
    Abstract class for stego plugins for OpenStego purpose of which is data hiding. It implements few methods which are specific for data hiding, and provides dummy implementation for the methods which are specific to watermarking purposes so that sub-class does not need to implement them
    See Also:
    WatermarkingPlugin
    • Constructor Detail

      • DataHidingPlugin

        public DataHidingPlugin()
    • Method Detail

      • generateSignature

        public final byte[] generateSignature()
        Method to generate the signature data. This implementation returns null as this class is for data hiding plugins only
        Specified by:
        generateSignature in class OpenStegoPlugin<C extends OpenStegoConfig>
        Returns:
        Signature data
      • getWatermarkCorrelation

        public final double getWatermarkCorrelation​(byte[] origSigData,
                                                    byte[] watermarkData)
        Method to check the correlation between original signature and the extracted watermark. This implementation returns 0.0 as this class is for data hiding plugins only
        Specified by:
        getWatermarkCorrelation in class OpenStegoPlugin<C extends OpenStegoConfig>
        Parameters:
        origSigData - Original signature data
        watermarkData - Extracted watermark data
        Returns:
        Correlation
      • getHighWatermarkLevel

        public double getHighWatermarkLevel()
        Method to get correlation value which above which it can be considered that watermark strength is high
        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
        Specified by:
        getLowWatermarkLevel in class OpenStegoPlugin<C extends OpenStegoConfig>
        Returns:
        Low watermark