Code covered by the BSD License  

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

4.5 | 2 ratings Rate this file 56 Downloads (last 30 days) File Size: 198 KB File ID: #36288
image thumbnail

Embedding/ Hiding Image Within Image (with LSB encoding)


Michael Chan (view profile)


20 Apr 2012 (Updated )

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

| Watch this File

File Information

Executing reference usage: usage_imageWithinImage.m

Uses Gray-scaled image (as target image) and embedd / hide a low resolution image within using
LSB encoding.

* Caveat:
- HTML / other forms of documents may be generated. This is only a simple sample.
- For educational reference only.


If the reference demo has a more elegant presentation, please do not hesitate to suggest and send feedback to author.

Thank you.

Michael Chan JT

-------------------------------------- EOF --------------------------------------

MATLAB release MATLAB 7.6 (R2008a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (5)
17 Sep 2014 Ira

Ira (view profile)

Very good post.

23 May 2013 Jhon

Jhon (view profile)

23 Apr 2012 Michael Chan

Michael Chan (view profile)

yes, BITGET and BITSET is more relevant.

Comment only
23 Apr 2012 Michael Chan

Michael Chan (view profile)

That is true.
The intention though is to make it easier for people to translate by handcoding it to C/ C++ or Java by reducing the use of Matlab toolboxes.

However, I agree with you. I will provide 2 versions later on.

Comment only
23 Apr 2012 Jan Simon

Jan Simon (view profile)

The functions would be dramatically faster if you consider the concept of pre-allocation. In modern Matlab releases MLint warns for such problems.
Using BITGET and BITSET is much faster than using DEC2BIN/BIN2DEC and its strange conversion to strings.
Some expressions like "(bitSize*(i-1))+bitSize" could be simplified.

Comment only
24 Apr 2012

update description

07 May 2012
07 May 2012


Contact us