LSB steganography matlab program

1 view (last 30 days)
Maya
Maya on 13 Nov 2014
Commented: Maya on 13 Nov 2014
I make LSB steganography program to extract message, but the result of program is the message not same with the plaintext in the embedd program. please help me if you can clear it, thanks :)
clear all;
close all;
I = imread('steg1.bmp');
end_char = '@';
text_back = [];
for i = 1:8:numel(I)
C = bitget(I(i:i+7),1);
C = bin2dec(num2str(C));
if(C == end_char)
break;
else
text_back(end+1) = C;
end
end
text_back = char(text_back);
%%Display
subplot(1,2,1);
title('Original');
imshow(imread('dorin.jpg'));
disp(text_back);

Accepted Answer

Image Analyst
Image Analyst on 13 Nov 2014
Here's one that works with images. It's probably easy to adapt it.
  1 Comment
Maya
Maya on 13 Nov 2014
thank you for your help Mr/Mrs, i'll try it :)

Sign in to comment.

More Answers (0)

Categories

Find more on Read, Write, and Modify Image in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!