91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

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

資源簡介

matlab開發-三角法灰度閾值。計算閾值三角形方法。

資源截圖

代碼片段和文件信息

%Demo?triangle_th.m?performing?gray?image?thresholding?
using?the?Triangle?Method.
%The?demo?reads?a?RGB?image?of?vegetation?against?soil?background.
%This?image?is?converted?to?a?gray?level?image

%%?Read?image?RGB?image?and?convert?to?gray?level
%Reads?RGB
Ib=imread(‘coins.png‘);
%%
[lehisto?x]=imhist(Ib);
[level]=triangle_th(lehisto256);
I_bw=im2bw(Iblevel);

%%
%Show?results
%Input?image
subplot(231);?imshow(Ib);?axis?off;??title(‘Input?image‘);
%Binary?image
subplot(232);?imshow(I_bw);?axis?off;?title(‘Triangle?method‘);
%graythresh?for?comparison
subplot(233);?imshow(im2bw(Ibgraythresh(Ib)));?axis?off;?title(‘graythresh?-?Image?Toolbox‘);
%Histogram
subplot(23[4:6]);?bar(xlehisto);?xlim([0?255]);
line([73?255][4264?0]‘Color‘‘r‘‘LineWidth‘2);
l

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????1170??2010-07-12?14:53??Demo_Triangle_th.m
?????文件????????2554??2010-06-29?12:52??triangle_th.m
?????文件????????1316??2014-02-12?13:13??license.txt

評論

共有 條評論

相關資源