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

  • 大小: 623KB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發布日期: 2021-06-01
  • 語言: Matlab
  • 標簽: SWT??

資源簡介

matlab Stroke width transform

資源截圖

代碼片段和文件信息

function?[?letters?]?=?extractletters(?swtMap?swtLabel?ccNum?)
%LETTERCANDIDATES?Summary?of?this?function?goes?here
%???Detailed?explanation?goes?here

numLetters?=?0;
letters?=?zeros(size(swtLabel));
maxLetterHeight?=?300;
minLetterHeight?=?10;

for?i=1:ccNum

????[rc]?=?find(swtLabel==i);
????idx?=?sub2ind(size(swtMap)rc);
????componentSW?=?swtMap(idx);
????varianceSW?=?var(componentSW);
????meanSW?=?mean(componentSW);
????width?=?max(c)?-?min(c);
????height?=?max(r)?-?min(r);
????aspectRatio?=?width/height;
????diameter?=?sqrt(width^2+height^2);
????medianSW?=?median(componentSW);
????maxSW?=?max(componentSW);

????%?Accepted?font?heights?are?between?10px?and?300px
????if?height>maxLetterHeight?|?height
????%?Reject?CC?with?hight?stroke?width?variance.??The?threshold?if?half
????%?the?average?stroke?width?of?a?connected?component
????if?varianceSW/meanSW?>?.5?continue?end

????%?Ratio?between?the?diameter?of?the?connected?component?and?its
????%?median?stroke?width?to?be?a?value?less?than?10
????if?diameter/medianSW?>=?10?continue?end

????%?Aspect?ratio?to?be?a?value?between?0.1?and?10
????if?aspectRatio??10?continue?end

????if?size(componentSW1)/maxSW?
????if?width?>?height*2.5?continue?end


????letters(idx)?=?1;

%?????????if?varianceSW?<=?meanSW*0.5
%?????????????%if?0.1?<=?aspectRatio?&&?aspectRatio?<=?10
%?????????????????numLetters?=?numLetters?+?1;
%?????????????????letters(idx)?=?1;
%?????????????%end
%?????????end

end

end

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2014-05-09?12:53??SWT\
?????文件???????82290??2014-05-07?12:29??SWT\1196.jpg
?????目錄???????????0??2014-05-09?13:12??__MACOSX\
?????目錄???????????0??2014-05-09?13:12??__MACOSX\SWT\
?????文件?????????172??2014-05-07?12:29??__MACOSX\SWT\._1196.jpg
?????文件???????33218??2014-05-07?12:29??SWT\1313.jpg
?????文件?????????172??2014-05-07?12:29??__MACOSX\SWT\._1313.jpg
?????文件???????23934??2014-05-07?12:29??SWT\1324.jpg
?????文件?????????172??2014-05-07?12:29??__MACOSX\SWT\._1324.jpg
?????文件???????47607??2014-05-07?12:29??SWT\1351.jpg
?????文件?????????172??2014-05-07?12:29??__MACOSX\SWT\._1351.jpg
?????文件???????39571??2014-05-07?12:29??SWT\1389.jpg
?????文件?????????172??2014-05-07?12:29??__MACOSX\SWT\._1389.jpg
?????文件???????35008??2014-05-07?12:29??SWT\1470.jpg
?????文件?????????172??2014-05-07?12:29??__MACOSX\SWT\._1470.jpg
?????文件???????35489??2014-05-07?12:29??SWT\1485.jpg
?????文件?????????172??2014-05-07?12:29??__MACOSX\SWT\._1485.jpg
?????文件???????36147??2014-05-09?12:53??SWT\19-139-thickbox.jpg
?????文件???????18823??2014-05-07?12:29??SWT\2935-238x300.jpg
?????文件?????????172??2014-05-07?12:29??__MACOSX\SWT\._2935-238x300.jpg
?????文件??????298255??2014-05-09?12:53??SWT\6d968876fef7d65b7f706b7941a8c9ab.jpg
?????文件????????1549??2014-05-09?00:39??SWT\extractletters.m
?????文件?????????120??2014-05-09?00:39??__MACOSX\SWT\._extractletters.m
?????文件????????1818??2014-05-09?00:40??SWT\label.m
?????文件?????????120??2014-05-09?00:40??__MACOSX\SWT\._label.m
?????文件????????5823??2014-05-09?12:54??SWT\swt.m
?????文件?????????120??2014-05-09?12:54??__MACOSX\SWT\._swt.m
?????文件????????5817??2014-05-09?12:15??SWT\swt.m~
?????文件?????????505??2014-05-09?12:55??SWT\SWT_demo.m
?????文件?????????120??2014-05-09?12:55??__MACOSX\SWT\._SWT_demo.m

評論

共有 條評論