i used lsb method to embed message bits in lsb. in coding i cannot get how to select the lsb bit. please help me

1 view (last 30 days)
clc
clear all
close all
a=imread('cameraman.tif');
x=dec2bin('cameraman.tif');
c=imshow(a);
y=dec2bin('s');
q=8;
for i=1:size(a) %for every pixel of image
for j=1:8 % for message bits
f=bitget(a(i),7)
end
end
  1 Comment
Geoff Hayes
Geoff Hayes on 25 Nov 2014
Have you already embedded the message in to the LSB, or are you trying to do this? Why do you call dec2bin and not use the result, x? Perhaps add some comments to you code so that we can get an idea of what you are attempting (and why)

Sign in to comment.

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!