Package eu.kartoffelquadrat.visucrypt
Class Upscaler
- java.lang.Object
-
- eu.kartoffelquadrat.visucrypt.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 Summary
Constructors Constructor Description Upscaler()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean[][]
upscale(boolean[][] compactShare)
Uses designated diagonal patterns to extend raw entropy false and true values.
-
-
-
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.
-
-