Sseifoun
Messages postés1Date d'inscriptionmardi 8 janvier 2013StatutMembreDernière intervention10 janvier 2013
-
10 janv. 2013 à 16:52
Bonjour,
I am doing a project in Digital watermarking(koch and zhao ) using DCT
in Matlab my steps of program are
1-read image
2- application DCT on image
3-selections blocks(B1,B2)from image
4-selction 2 coefficients from each block
5-put conditions to modify the to coefficien............
.......................................
i do that on my code but i stop in selection the 2 coefficient i don't
know how to do
I am looking for some help in selection two coeffiecients from each
block separately. I need to access into subblocks of size 8x8 and
have to find the coefficients to modify it
I cannot access to pixels in the block [8x8]
help me with some working code, it will be greatful
thankkkkks this my @ mail if u want to send
codes :seifeddine.enimien@gmail.com
this my code
I = imread('cameraman.tif');
% appliquer la dct
I = im2double(I);
T = dctmtx(8);
dct = @(x)T * x * T';
I1 = blkproc(I,[8 8],dct);
bs = [8 8]
%step 1 divide into blocks
szM = size(I1)
nb = ceil(szM ./ bs) % number of blocks in each dimension
C = mat2cell(I1,repmat(bs(1),1,nb(1)), repmat(bs(2),1,nb(2)))
%mat2cell=matrice to cellule this exB = repmat(eye(2),3,4)explique
repmat
c1=C{15,16}
c2=C{8,9}
i wait you