1 Star 0 Fork 0

matthewgao/RS-analysis

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
randlsbget.m 511 Bytes
一键复制 编辑 原始数据 按行查看 历史
matthewgao 提交于 2019-04-28 21:43 +08:00 . rand hide
function result=randlsbget(output,len_total,goalfile,key)
ste_cover=imread(output);
ste_cover=double(ste_cover);
[m,n]=size(ste_cover);
frr=fopen(goalfile,'a');
p=1;
[row,col]=randinterval(ste_cover,len_total,key);
for i=1:len_total
if bitand(ste_cover(row(i),col(i)),1)==1
fwrite(frr,1,'ubit1');
result(p,1)=1;
else
fwrite(frr,0,'ubit1');
result(p,1)=0;
end
if p==len_total
break;
end
p=p+1;
end
fclose(frr);
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Matlab
1
https://gitee.com/matthewgao/RS-analysis.git
git@gitee.com:matthewgao/RS-analysis.git
matthewgao
RS-analysis
RS-analysis
master

搜索帮助