Matlab Code
Below you will find the links to the Matlab code we used to implement our algorithm.
binaryencode.m: Converts a string to a binary number vector.
binarydecode.m: Converts a binary number vector to a string
encode.m: Encodes a given picture with a given binary vector and saves to a given file.
decode.m: Decodes a binary vector from an image encoded with encode.m.
testdct.m: Finds the error in the fft domain between a "pre-printed" and "post-printed" images. Creates a graph of the human visual systems that shows which frequencies are optimal to change for data encoding.
testfft.m: Finds the error in the dft domain between a "pre-printed" and "post-printed" images. Creates a graph of the human visual systems that shows which frequencies are optimal to change for data encoding.