Code covered by the BSD License  

Highlights from
Hide Images In Image

4.66667

4.7 | 3 ratings Rate this file 53 Downloads (last 30 days) File Size: 10.08 MB File ID: #26217
image thumbnail

Hide Images In Image

by Divakar Roy

 

29 Dec 2009 (Updated 12 Jan 2010)

Embedding Utility

| Watch this File

File Information
Description

Embed/Hide one or more images inside one bigger image (source image).

Code also tells how much of the source image you are using for embedding and as long as it's less than 100 percent, you can obviously cramp in more images.

Hide n seek!!

Required Products Image Processing Toolbox
MATLAB release MATLAB 7.8 (R2009a)
Other requirements Large Images
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (10)
29 Dec 2009 Kadi

Hi

I dowloaded your program and was playing around with it. I took the image that you provided 'pano.jpg' and tried embedding it with a different image. I used a new image which was of size 480x640. The extraction algorithm was successful in extracting the embedded image but when I tried using this image as the source image and tried embedding it with one of the images that you provided I was getting an error message saying

Too Many Images or Too Big Image for Hiding [Used 341.7648 percent of the source image].

Your algorithms look simple and pretty straightforward. Is there any literature out there expliaing how you implemented this. I would like to know the idea behind the actual code.

Thanks and I appreciate your work.
Good Luck
Kadi

29 Dec 2009 Divakar Roy

First of all, thanks a lot for reviews.

As said in the requirements, it needs larger source image for embedding smaller images. So if you are trying to use a small image as source image, it will throw error. Roughly the size of the image to be embedded inside the source image should be less than 1/8th of the source image.

Theory is quite simple: Every 8 pixels of source image are altered for each pixel of image to be embedded and that’s why that 1/8th requirement.

Cheers

Divakar

22 Feb 2010 Nikhil Gohil

I'm using this file as a basis for a project on steganography. Could you please give me a place where i can find an explanation for the commands used and the algorithm here? I'm very new to matlab. Also, how would i go about writing a single GUI for both these files? In any case, thanks a lot for this file. It has been immensely helpful!

22 Feb 2010 Divakar Roy

For explanation of commands, nothing better than "help function_name". Algorithm is simple and described in my previous comment. Regarding GUI making, you need to go through GUI tutorial, lots around here on File-exchange and outside as well.

22 Jul 2010 lavanya ananthan

hi,
 i am having two images(jpg) of same size 512x512 .i want to hide one image into another image.
any code change required in your program?

22 Jul 2010 Divakar Roy

Yes you can insert as many images as you want, as long as you are not using more than 100 percentage of the source image(see the screenshot). It was clearly said in the description.

19 Feb 2011 Hamsah

Hi Mr. Divakar, Would u please tell me is it the LSB algorithm concept that you have been used in this program? by changing every 8pixel from the cover image? or what do u call your algorithm?

11 Apr 2011 Divakar Roy

It's not exactly LSB-algorithm, it basically uses 8 pixels from source to form the 8bit of the embedded image. Idea was to minimize the change in the source, so that there is negligible change in it.

19 Jan 2012 sabir khan

please give me some idea about how i hide an image into another image using matlab, please send me details code for encoding and decoding, i will be very gladful.
                    thanking you,

02 May 2012 amer jod  
Please login to add a comment or rating.
Updates
30 Dec 2009

Just changed the screenshot and description, code remains same.

31 Dec 2009

Now it saves in png format that reduces file size over the previous bmp format.

12 Jan 2010

Small Change In 'Readme.txt'

Tag Activity for this File
Tag Applied By Date/Time
image Divakar Roy 29 Dec 2009 10:32:57
hide Divakar Roy 29 Dec 2009 10:32:57
inside Divakar Roy 29 Dec 2009 10:32:57

Contact us at files@mathworks.com