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

  • 大小: 980B
    文件類型: .m
    金幣: 1
    下載: 0 次
    發布日期: 2021-05-12
  • 語言: Matlab
  • 標簽: matalb??光斑中心??

資源簡介

matlab環境下,能夠求取光斑中心,并讀入txt中

資源截圖

代碼片段和文件信息

clear;
clc;
test_im=imread(‘E:\實驗\47cm7月2日\靶-3\Y?5\5?(18).bmp‘);?%原始圖像(黑色背景,白色圓點)
test_im_gray=rgb2gray(test_im);
[mn]=size(test_im_gray);
bw(1:m1:n)=0;?
for?i=1:m
for?j=1:n
if?test_im_gray(ij)>10;%二值
bw(ij)=1;
end
end
end
L=?bwlabel(bw);
L=imclearborder(L);
L=bwareaopen(L10);%除去多余光點
s?=?regionprops(L?‘centroid‘‘area‘?‘boundingbox‘);%求中心
centroids?=?cat(1?s.Centroid)
areas?=?[s.Area];
rects?=?cat(1??s.BoundingBox);
figure;
imshow(test_im);

評論

共有 條評論