Esempio n. 1
0
 def build(step):
     return BlockBitHider(
         TransformHider(
             SingleBitHider(ScanMapping(),
                            BinaryQuantizationIndexModulation(step)),
             ImageTransform(
                 SeparableTransform(transform.TCHEBICHEF, transform.DCT2))))
Esempio n. 2
0
    def build(step, alpha, dimension=8):
        CHARLIER = matrix.CharlierMatrix(dimension, alpha=alpha).get_values()

        return BlockBitHider(
            TransformHider(
                SingleBitHider(ScanMapping(),
                               BinaryQuantizationIndexModulation(step)),
                ImageTransform(SeparableTransform(CHARLIER, transform.DCT2))))
Esempio n. 3
0
 def build(step, a, q, dimension=8):
     qc = QCharlierMatrix(dimension, a=a, q=q)
     th = TchebichefMatrix(dimension, N=dimension)
     transform = SeparableTransform(qc.get_values(), th.get_values())
     return BlockBitHider(
         TransformHider(
             SingleBitHider(ScanMapping(),
                            BinaryQuantizationIndexModulation(step)),
             ImageTransform(transform)))