vhdl code for steganography
#1

i need the vhdl code for image steganography
Reply
#2

vhdl code for steganography

%This program hides a message image in the lower
%bit planes of a cover image
%read in cover image filename
covername = input('Enter image file name with extension (like jennifer.bmp): ', 's');

%read in message image filename
messagename = input('Enter message image file name with extension: ', 's');

%open cover and message image files
cover = imread(covername);
message = imread(messagename);

%display on screen the two images
figure(1), imshow(cover); title('Original Image (Cover Image)');
figure(2), imshow(message);title('Image to Hide (Message Image)');

%change to double to work with addition below
cover=double(cover);
message=double(message);

%imbed = no. of bits of message image to embed in cover image
imbed=4;

%shift the message image over (8-imbed) bits to right
messageshift=bitshift(message,-(8-imbed));

%show the message image with only embed bits on screen
%must shift from LSBs to MSBs
showmess=uint8(messageshift);
showmess=bitshift(showmess,8-imbed);
figure(3),imshow(showmess);title('4 Bit Image to Hide');

%now zero out imbed bits in cover image
coverzero = cover;
for i=1:imbed
coverzero=bitset(coverzero,i,0);
end

%now add message image and cover image
stego = uint8(coverzero+messageshift);
figure(4),imshow(stego);title('Stego image');

%save files if need to
%4 bit file that was embedded = same as file extracted
imwrite(showmess,'showmesscolor.bmp'); %use bmp to preserve lower bits

%jpg will get rid of them
%stego file
imwrite(stego,'stegocolor.bmp');
Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Popular Searches: steganography project using vhdl, image steganography vhdl, project on steganography in vhdl, vhdl project on steganography,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Possibly Related Threads...
Thread Author Replies Views Last Post
  car alarm system in vhdl 1 1,525 28-04-2017, 01:05 AM
Last Post: abdullah saad
  vhdl code for 128 bit carry select adder 1 871 15-04-2017, 12:19 PM
Last Post: jaseela123d
  matlab code for image steganography using dwt 1 861 13-04-2017, 09:31 AM
Last Post: jaseela123d
  vhdl code for 128 bit carry select adder 1 825 10-04-2017, 11:27 AM
Last Post: jaseela123d
Star code of parallel multiplier in vhdl 1 813 07-04-2017, 11:49 AM
Last Post: jaseela123d
  vhdl codes for voting machine 1 897 05-04-2017, 04:39 PM
Last Post: jaseela123d
  matlab code for adaptive differential pulse code modulation 1 1,133 04-04-2017, 11:49 AM
Last Post: jaseela123d
  bpcs steganography source code in java 1 735 31-03-2017, 01:49 PM
Last Post: jaseela123d
  vhdl test bench for hamming code generator 1 838 31-03-2017, 12:28 PM
Last Post: jaseela123d
  vhdl code for histogram equalization 1 815 31-03-2017, 11:53 AM
Last Post: jaseela123d

Forum Jump: