• 大小: 14KB
    文件类型: .m
    金币: 1
    下载: 0 次
    发布日期: 2021-06-18
  • 语言: Matlab
  • 标签: 直方图  水印  

资源简介

直方图是狮子图像一个重要的全局特征的表示方法,利用直方图的这个特性在空域上实施水印的嵌入和提取。

资源截图

代码片段和文件信息

clc;
close all;
%读入文件
I=imread(‘lena.bmp‘);
[M1N1]=size(I);
subplot(231);
imshow(I);
I0=I;
subplot(232);
imhist(I64);
%水印处理
W=imread(‘watermark32.bmp‘);

subplot(234);
imshow(W);
subplot(235);
level=graythresh(W);
W1=im2bw(Wlevel);                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

评论

共有 条评论