Code covered by the BSD License  

Highlights from
Embedding/ Hiding Image Within Image (with LSB encoding)

image thumbnail

Embedding/ Hiding Image Within Image (with LSB encoding)

by

 

20 Apr 2012 (Updated )

The objective is to illustrate how an image may be embedded or hidden within another given image.

bitStreamToIntArray( bitStream )
function intArray = bitStreamToIntArray( bitStream )
%BITSTREAMTOINTARRAY 
% assume byte stream
bitSize = 8;
numberOfBytes = floor(length(bitStream)/bitSize);

for i = 1:numberOfBytes
    startBit = (bitSize*(i-1))+1;
    endBit = (bitSize*(i-1))+bitSize;
    intArray(i) = bin2dec(bitStream(startBit:endBit));
end

end

Contact us