经典COX水印算法,matlab实现
rgb_image = imread('H:\gg\源代码\lena.bmp');
ycbcr_image = rgb2ycbcr(rgb_image);
y = ycbcr_image(:,:,1); % extract luminance component
dct_image = dct2(y); % Compute the DCT of Y plane
%dlmwrite('orig_y_img.txt', ycbcr_image(:,:,1));
%dlmwrite('inv_orig_img.txt', y);
%dlmwrite('orig_dct.txt', dct_image);
%dlmwrite('orig_img.txt', ycbcr_image);
1