1 Star 0 Fork 0

matthewgao/RS-analysis

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
RS.m 849 Bytes
一键复制 编辑 原始数据 按行查看 历史
matthewgao 提交于 2014-08-13 14:37 +08:00 . Signed-off-by: matthewgao matthewgao@gmail.com
%RS analysis
%author:Gaoshen
%E-mail:matthewgao@gmail.com
%date:2012.3.9
%Modern Information Technology Lab
%East China University of Science and Technology
clc
clear
inputfile='e:\lenna.bmp';
outputfile='e:\lennahide.bmp';
bitlsbhide(inputfile,1,outputfile);
mask=[1 0 1 0 1 ];
[r,s,u]=compare(outputfile,mask);
rplus=r/(r+s+u);
splus=s/(r+s+u);
[r,s,u]=ncompare(outputfile,mask);
rmins=r/(r+s+u);
smins=s/(r+s+u);
[r,s,u]=compare2(outputfile,mask);
rplus2=r/(r+s+u);
splus2=s/(r+s+u);
[r,s,u]=ncompare2(outputfile,mask);
rmins2=r/(r+s+u);
smins2=s/(r+s+u);
d0=rplus-splus;
d1=rplus2-splus2
dn0=rmins-smins;
dn1=rmins2-smins2;
a=2*(d0+d1);
b=(dn0-dn1-d1-d0*3);
c=d0-dn0;
z=[-1:0.01:2];
p=[a b c];
rootans=roots(p);
if abs(rootans(1,1))>abs(rootans(2,1))
finalans=rootans(2,1);
else
finalans=rootans(1,1);
end
p=finalans/(finalans-0.5);
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Matlab
1
https://gitee.com/matthewgao/RS-analysis.git
git@gitee.com:matthewgao/RS-analysis.git
matthewgao
RS-analysis
RS-analysis
master

搜索帮助