A tripture is a triple of pictures, where the last is the superimposition of the other two.
As an example, take a look at these three pictures A,B and C:
Our goal is to produce two new images A' and B' looking as A and B, such that their superimposition C' looks as C.
We get this result by producing the two images A' and B' in the next picture:
If A' and B' are printed on a transparency, the superimposition of A' and B' produces the image C'.
E.g., if the pixel in A is white, we replace it with the matrix having black pixels in the cells (1,2) and (2,1) and white pixels in the other two cells.
If the pixel in B is white and the corresponding pixel in C is black, we replace it with the matrix having black pixels in the cells (1,1) and (2,2) and white pixels in the other two cells.
Note that the replacement in B takes the image C into account, contrary to what happens for A.
NOTE: if the size of A and B is mxn, the size of A' and B' is 2mx2n.
If you use MATLAB and you are content with a rough m-file, you can download this m-file to produce your own tripture. Just rename your images A and B to image1.jpg and image2.jpg, respectively. The m-file will produce the files newimage1.jpg and newimage2.jpg, representing A' and B'. Their superimposition will show C'.
In other words darker pixels in C correspond to darker 2x2 matrixes in C', while lighter pixels in C correspond to lighter 2x2 matrixes in C'. Let us examine this fact more carefully. In each 2x2 matrix of A' the information concerning A is represented by the pixel (1,1), while the pixel (1,2) is always black. Analogously, in each 2x2 matrix of B' the information regarding B is represented by the pixel (1,2), while the pixel (1,1) is always black. Therefore in the superimposition of A' and B' the pixel (1,2) of A' hides the pixel (1,2) of B', and the pixel (1,1) of B' hides the pixel (1,1) of A'. In other words the pictures A and B hide each other in C'. The information concerning C is contained in the second row of each 2x2 matrix in C'. Each white pixel in C corresponds to setting two different colors in that second row, while each black pixel in C produces two black pixels in that second row.
P.S: I have developed this technique to produce my Christmas cards, but I have later discovered that it was already known in the scientific community. Please inform me if you know some similar or better procedure to get an image by superimposition of other two.