博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
convert RGB image with hole into binary image with hole filled
阅读量:4041 次
发布时间:2019-05-24

本文共 382 字,大约阅读时间需要 1 分钟。

hImage = plot3(vertex1(:,1),vertex1(:,2),zeros(size(vertex1,1),1),'.');direction = [0 0 1];rotate(hImage,direction,90)axis off;view(2);f=getframe;%imshow(f.cdata);new=f.cdata;imwrite(new,'new.jpg','JPEG')RGB = imread('new.jpg');I = rgb2gray(RGB);imshow(I);BW = imbinarize(I);BWC = imcomplement(BW)BWC2= imfill(BWC,'holes');BW2 = imcomplement(BWC2);figureimshowpair(BW,BW2,'montage')

你可能感兴趣的文章
Golang 数据可视化利器 go-echarts ,实际使用
查看>>
mysql 跨机器查询,使用dblink
查看>>
mysql5.6.34 升级到mysql5.7.32
查看>>
dba 常用查询
查看>>
Oracle 异机恢复
查看>>
Oracle 12C DG 搭建(RAC-RAC/RAC-单机)
查看>>
Truncate 表之恢复
查看>>
Oracle DG failover 后恢复
查看>>
mysql 主从同步配置
查看>>
为什么很多程序员都选择跳槽?
查看>>
mongdb介绍
查看>>
mongdb安装使用
查看>>
mongdb在java中的应用
查看>>
mongodb与spring集成
查看>>
1060. Are They Equal (25)
查看>>
1020. Tree Traversals (25)
查看>>
1066. Root of AVL Tree (25)
查看>>
1086. Tree Traversals Again (25)
查看>>
1043. Is It a Binary Search Tree (25)
查看>>
大数阶乘!
查看>>