27-01-2015, 11:02 PM
Sourse code of BPCS stegnography in java
bpcs steganography source code in java
|
% lena -grayscale 512*512 size
a=imread('lena.png')
[c1 c2 c3 c4 c5 c6 c7 c8]=bitplane(a);
% taking lsb bitplane only
C{1} = c1;
curr_plane = C{1};
row = size(cover, 1)/8;
col = size(cover, 2)/8;
% divid it into 8*8 blocks
blocks = mat2cell(curr_plane, ones(1, row)*8, ones(1, col)*8);
for bi = 1,size(blocks,1)
for bj = 1,size(blocks,2)
% for each block in curr_plane image , now identify the complex block
% and replace it with secret blocks first and then followed by conjugate
% blocks until all information finally embedded
my_8x8_block = blocks{bi,bj};
figure,imshow(my_8x8_block)
end
end
« Next Oldest | Next Newest »
|