i want code to hide text within image and extract it back.i have code how to hide text. can you suggest me code for how to extract that data from image?
4 views (last 30 days)
Show older comments
clear all; clc;
dat=dec2bin('tkiet');%string that we want to send x=imread('IMG4701A.jpg');%read carrier image figure;imshow(x);%show carrier image [M N]=size(dat);%size of data
%encoding algoritm starts here
for a=1:1:M for b=1:1:N x(a,b)=bitand(x(a,b),254); x(a,b)=bitor(x(a,b),bin2dec(dat(a,b))); end end figure;imshow(x);title('stego image');%show steganographic image [A B]=size(x);%detect size of image
Answers (1)
Image Analyst
on 22 Mar 2014
See my attached demo of LSB watermarking. That's one way.
2 Comments
hemalatha
on 25 Dec 2014
your answer is useful for me..but i need to extract a text from the stegno image..please clearly explain me retrieveing technique
Image Analyst
on 25 Dec 2014
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!