资源简介
hough变换 很好用的 解决问题很实际 很方便的
代码片段和文件信息
function [threshold] = adaptiveThreholding(img);
[imgH imgW] = size(img);
iniT = 50.0;
lvPixelMean=0.0;
hvPixelMean=0.0;
imgVector = reshape(img imgH*imgW 1);
lvPixels = find(imgVector hvPixels = find(imgVector>=iniT); %% high-value pixels
lvPixelMean = mean(imgVector(lvPixels));
hvPixelMean = mean(imgVector(hvPixels));
T = (lvPixelMean + hvPixelMean)/2;
T0 = 3;
Tdiff = 0;
if T>=ini
- 上一篇:永磁同步电机弱磁控制
- 下一篇:数字0~9模式识别的matlab代码
评论
共有 条评论