xxxx18一60岁hd中国/日韩女同互慰一区二区/西西人体扒开双腿无遮挡/日韩欧美黄色一级片 - 色护士精品影院www

  • 大小: 1KB
    文件類型: .m
    金幣: 1
    下載: 0 次
    發布日期: 2021-01-04
  • 語言: Matlab
  • 標簽:

資源簡介

這個是我們期末的大作業,做了很久才做出來的,絕對正確,是對一幅圖里不同圖形的識別,希望大家能用的上

資源截圖

代碼片段和文件信息

bw=imread(‘223.bmp‘);
bw=imcomplement(bw);??????????????%反白
bw=im2bw(bwgraythresh(bw));??????%轉化為灰度圖
imshow(bw);

[BL]?=?bwboundaries(bw‘noholes‘);??%檢測邊界
figureimshow(bw);

%?Display?the?label?matrix?and?draw?each?boundary??%填充顏色
figureimshow(label2rgb(L?@jet?[.5?.5?.5]))
hold?on
for?k?=?1:length(B)
??boundary?=?B{k};
??plot(boundary(:2)?boundary(:1)?‘w‘?‘LineWidth‘?2)
end


stats?=?regionprops(L‘Area‘‘Centroid‘);
threshold?=?0.8;????????????????????????????????%閾值設定

%?loop?over?the?boundaries????????????????????%計算面積與周長關系“metric
for?k?=?1:length(B)

??%?obtain?(XY)?boundary?coordinates?corresponding?to?label?‘k‘
??boundary?=?B{k};

??%?compute?a?simple?estim

評論

共有 條評論

相關資源