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)
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
Image Analyst on 22 Mar 2014
See my attached demo of LSB watermarking. That's one way.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!