Domino Steganography
Year: 2020 Authors: Robert Bosch; Aaron Kreiner
Core claim
Domino mosaics can encode a hidden secondary image through an optimization-based partition and domino assignment scheme.
Topics
domino mosaics, steganography, optimization, image encoding
Domains
discrete optimization, linear programming, quadratic error minimization, combinatorial design, visual design, opt art, image mosaic, graphic composition
Methods
Knowlton-Knuth method, binary-variable model, Gurobi Optimizer, two-phase optimization
Media
double-nine dominos, brightness grids, Frankenstein image, block letters
Paper text
The text below is the locally extracted OCR/Markdown version of the paper. Raw PDF files remain local and are not published here.
Bridges 2020 Conference Proceedings
Domino Steganography
Robert Bosch and Aaron Kreiner
Oberlin College, Oberlin, Ohio, USA; rbosch@oberlin.edu
Abstract
We present a method that, when given two target images, can be used to design plans for a domino mosaic that resembles a primary target image when all of the dominos are used, yet resembles a secondary target image when all of the horizontally-oriented dominos are removed from the mosaic. One can employ this method to hide one image inside another (i.e., to perform domino steganography).
Introduction
The Knowlton-Knuth method for designing a domino mosaic that resembles a target image has two phases ([4,5] and [2, pp. 66-78].) In the first, the target image is partitioned into domino-sized slots, and in the second, complete sets of double-nine dominos are assigned to the slots. The second phase is much more important than the first. For even if we don’t put much effort into Phase I and construct what turns out to be a low-quality partition, if we do our best work on Phase II we will end up with a domino mosaic that resembles the target image.
Figure 1: (a) A low-res rendition of Frankenstein’s monster; (b) the corresponding brightness values.
Bosch and Kreiner
The left-hand side of Figure 1 displays a low-resolution rendition of Frankenstein’s monster based on a public-domain publicity photograph of Boris Karloff. The right-hand side of Figure 1 shows the corresponding brightness values, measured on a 0-to-9, black-to-white scale (which is ideal for double-nine dominos).
Figure 2 displays output from the two phases of the Knowlton-Knuth method applied to the low-resolution Frankenstein’s monster image. The left-hand side shows an optimal partition, an optimal solution to Phase I. In Phase I, the objective is to maximize the total contrast score, which is defined to be , where the summation is taken over all slots , and is defined to be the contrast value for slot (the absolute value of the difference of the two numbers in slot ). For example, if refers to the slot in the top-left corner of the partition, then . And if , , and refer to the slots in the top-right, bottom-left, and bottom-right corners, respectively, then , , and . Here, the total contrast score ends up being .
The right-hand side of Figure 2 shows an optimal assignment of three complete sets of double-nine dominos to the slots, an optimal solution to Phase II. In Phase II, the objective is to minimize the total cost , which is defined to be the sum of the squares of the differences between the numbers on the dominos and the brightness values to which they correspond. The 6-6 domino in the top-left corner is perfectly placed, as it contributes to the total cost. The 5-6 domino in the top-right corner and the 4-8 domino in the bottom-left corner are also perfectly placed, as and . The 2-9 domino in the bottom-right corner, however, is not perfectly placed. It contributes to the total cost. Here, the total cost ends up being .
Figure 2: (a) An optimal partition and (b) an optimal assignment of dominos .
Figure 3 displays output from a hand-designed, suboptimal partition on Phase I and an optimal assignment of dominos to the slots on Phase II. With these particular suboptimal slots, the total contrast score is lower, and the optimal cost value is much higher. The resulting domino mosaic does resemble the target image, but not as closely as does the previous one.
Domino Steganography
Figure 3: (a) A suboptimal partition and (b) an optimal assignment of dominos .
Figure 4: The hidden image revealed by removing the horizontally oriented dominos.
Figure 4 shows what happens when we remove the horizontally oriented dominos from the lower quality mosaic: we obtain a hidden message, YOLO. Even if you are a monster built out of body parts by a mad scientist, you only live once.
In the next section, we present a mathematical optimization model [1] for domino steganography, hiding a secondary image (e.g., the word “YOLO” in block letters) inside a domino mosaic that resembles a primary image (e.g., Frankenstein’s monster).
Appendix A Mathematical Optimization Model for Domino Steganography
Let denote the brightness of the row--column- cell of the secondary target image, where stands for black, stands for white, and intermediate values stand for various shades of gray.
The simplest version of our model employs three sets of binary variables. The first two deal with the partitioning of the image into slots. We set equal to if on Phase I we cover cell with a horizontal slot that also covers the cell to its right, cell , and we set equal to if on Phase I we cover cell with a vertical slot that also covers the cell beneath it, cell . To ensure that an interior cell is covered by one and only one slot, we impose the following constraint:
(1)
A non-interior cell (one in the top or bottom rows or in the leftmost or rightmost columns) has a similar constraint but with fewer terms.
The third set of variables measures how bright cell will be after we remove all horizontal dominos. We let stand for the brightness of cell . For an interior cell we define via the equation , which simplifies to
(2)
Equation (2) states that cell will be white if covered by a horizontal slot and black if covered by a vertical slot.
For our objective, we minimize what can be thought of as the sum of squares of all “two-by-two error” terms:
(3)
If we minimize (3) subject to (1) and (2), we will obtain the Phase I partition that most closely resembles the secondary target image when all horizontal dominos are removed. In practice, we introduce an additional set of binary variables to linearize the objective function (3), and we use the Gurobi Optimizer to solve resulting discrete linear optimization problem. Figures 5-8 display two examples.
References
- [1] D. Bertsimas and J.T. Tsitsiklis, Introduction to Linear Optimization, Athena Scientific, 1997.
- [2] R. Bosch, Opt Art: From Mathematical Optimization to Visual Design, Princeton University Press, 2019.
- [3] Gurobi optimization. http://www.gurobi.com/products/gurobi-optimizer
- [4] Knowlton mosaics. http://www.knowltonmosaics.com
- [5] D.E. Knuth, The Stanford GraphBase: A Platform for Combinatorial Computing, Addison-Wesley, 1993.
Domino Steganography
Figure 5: Frankenstein’s monster in 48 complete sets of double-nine dominos (version 1).
Bosch and Kreiner
Figure 6: The hidden image (Dracula) formed by removing the horizontally oriented dominos in version 1.
Domino Steganography
Figure 7: Frankenstein’s monster in 48 complete sets of double-nine dominos (version 2).
Bosch and Kreiner
Figure 8: The hidden image (The Mummy) formed by removing the horizontal dominos in version 2.