经典COX水印算法,matlab实现rgb_image=imread('H:\gg\源代码\lena.bmp');ycbcr_image=rgb2ycbcr(rgb_image);y=ycbcr_image(:,:,1);%extractluminancecomponentdct_image=dct2(y);%ComputetheDCTofYplane%dlmwrite('orig_y_img.txt',ycbcr_image(:,:,1));%dlmwrite('inv_orig_img.txt