没有合适的资源?快使用搜索试试~ 我知道了~
本资源,是同时对比度在matlab中的编程实现,总共输出三个窗口
资源推荐
资源详情
资源评论
%The whole fundament is simple, the key is that the main frame is cut into
%three parts by colour.But the frame in the center is filled by the same
%color consistently, so the effect is obvious.
clear
%the whole background is black
m=128;%width of whole background
n=128*3;%length of--
ground_gray1=0;%the color of--
X=ones(m,n)*ground_gray1;%the metric of background
%the first frame
m0=1;
n0=1;
step1=128;
step2=128;
ground_gray1=255;
X(m0:m0+step1,n0:n0+step2)=ground_gray1;
m0=50;
n0=40;
step=50;
before_gray1=40;
X(m0:m0+step,n0:n0+step)=before_gray1;
%the second frame
m0=1;
n0=128;
step1=128;
step2=128;
ground_gray1=125;
%three parts by colour.But the frame in the center is filled by the same
%color consistently, so the effect is obvious.
clear
%the whole background is black
m=128;%width of whole background
n=128*3;%length of--
ground_gray1=0;%the color of--
X=ones(m,n)*ground_gray1;%the metric of background
%the first frame
m0=1;
n0=1;
step1=128;
step2=128;
ground_gray1=255;
X(m0:m0+step1,n0:n0+step2)=ground_gray1;
m0=50;
n0=40;
step=50;
before_gray1=40;
X(m0:m0+step,n0:n0+step)=before_gray1;
%the second frame
m0=1;
n0=128;
step1=128;
step2=128;
ground_gray1=125;
资源评论
xinopq
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功