Class Upscaler


  • public class Upscaler
    extends Object
    Utility class. Offers method that transforms a bool[][] and transforms it into a bigger bool[][] with quadrupled dimensions.
    • Constructor Detail

      • Upscaler

        public Upscaler()
    • Method Detail

      • upscale

        public static boolean[][] upscale​(boolean[][] compactShare)
        Uses designated diagonal patterns to extend raw entropy false and true values. It can be seen as the transformation from a compact share (not usable for visual cryptography) to a visual share (usable for visual cryptography)

        False (False) becomes: FT/TF.

        True (White) becomes TF/FT.

        Parameters:
        compactShare - as a share in its compressed state i.e. not yet visually perceivable.
        Returns:
        a visual share of double the dimensions where every position is boosted to a pattern.