资源简介
Lung Cancer Detection Using Image Processing Techniques
代码片段和文件信息
function imagBW = kittlerMet(imag)
% KITTLERMET binarizes a gray scale image ‘imag‘ into a binary image
% Input:
% imag: the gray scale image with black foreground(0) and white
% background(255).
% Output:
% imagBW: the binary image of the gray scale image ‘imag‘ with kittler‘s
% minimum error thresholding algorithm.
% Reference:
% J. Kittler and J. Illingworth. Minimum Error Thresholding. Pattern
% Recognition. 1986. 19(1):41-47
MAXD = 100000;
imag = imag(::1);
[counts x] = imhist(imag); % counts are the histogram. x is the intensity level.
GradeI = length(x); % the resolusion of the intensity. i.e. 256 for uint8.
J_t = zeros(GradeI 1); % criterion function
prob = counts ./ sum(counts); % Probability distribution
meanT = x‘ * prob; % Total mean level of the picture
% Initialization
w0 = prob(1); % Probability of the first class
miuK = 0; % First-order cumulative moments of the histogram up to the kth level.
J_t(1) = MAXD;
n = GradeI-1;
for i = 1 : n
w0 = w0 + prob(i+1);
miuK = miuK + i * prob(i+1); % first-order cumulative moment
if (w0 == 0) || (w0 == 1)
J_t(i+1) = MAXD; % T = i
else
miu1 = miuK / w0;
miu2 = (meanT-miuK) / (1-w0);
var1 = (((0 : i)‘-miu1).^2)‘ * prob(1 : i+1);
var1 = var1 / w0; % variance
var2 = (((i+1 : n)‘-miu2).^2)‘ * prob(i+2 : n+1);
var2 = var2 / (1-w0);
if var1 > 0 && var2 > 0 % in case of var1=0 or var2 =0
J_t(i+1) = 1+w0 * log(var1)+(1-w0) * log(var2)-2*w0*log(w0)-2*(1-w0)*log(1-w0);
else
J_t(i+1) = MAXD;
end
end
end
minJ = min(J_t);
index = find(J_t == minJ);
th = mean(index);
th = (th-1)/n
imagBW = im2bw(imag th);
% figure imshow(imagBW) title(‘kittler binary‘);
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 49013 2013-05-21 04:40 MCodes\binarization_Algorithm\702594115binarization_Algorithm.rar
文件 144178 2013-05-22 20:56 MCodes\binarization_Algorithm\binarization Algorithm\1.png
文件 151794 2013-05-28 20:30 MCodes\binarization_Algorithm\binarization Algorithm\2.png
文件 154187 2013-05-28 20:31 MCodes\binarization_Algorithm\binarization Algorithm\3.png
文件 154716 2013-05-28 20:31 MCodes\binarization_Algorithm\binarization Algorithm\4.png
文件 152133 2013-05-28 20:31 MCodes\binarization_Algorithm\binarization Algorithm\5.png
文件 149697 2013-05-28 20:29 MCodes\binarization_Algorithm\binarization Algorithm\6.png
文件 149287 2013-05-28 20:29 MCodes\binarization_Algorithm\binarization Algorithm\7.png
文件 148843 2013-05-28 20:29 MCodes\binarization_Algorithm\binarization Algorithm\8.png
文件 74878 2009-04-07 10:33 MCodes\binarization_Algorithm\binarization Algorithm\coins.bmp
文件 12353 2013-06-09 21:59 MCodes\binarization_Algorithm\binarization Algorithm\Hellp.docx
文件 1837 2009-04-07 10:33 MCodes\binarization_Algorithm\binarization Algorithm\kittlerMet.m
文件 418 2013-06-09 05:02 MCodes\binarization_Algorithm\binarization Algorithm\Masking.m
文件 2605 2013-05-21 04:48 MCodes\binarization_Algorithm\binarization Algorithm\niblack.m
文件 1776 2013-06-09 05:24 MCodes\binarization_Algorithm\binarization Algorithm\otsu.m
文件 144178 2013-05-22 20:56 MCodes\binarization_Algorithm\binarization Algorithm\Stage3\1.png
文件 55954 2013-06-09 22:04 MCodes\binarization_Algorithm\binarization Algorithm\Stage3\Help.docx
文件 418 2013-06-09 05:02 MCodes\binarization_Algorithm\binarization Algorithm\Stage3\Masking.m
文件 1285 2013-06-09 22:07 MCodes\binarization_Algorithm\binarization Algorithm\Stage3\otsu.m
文件 194693 2013-06-09 22:07 MCodes\binarization_Algorithm\binarization Algorithm\Stage3.rar
文件 144178 2013-05-22 20:56 MCodes\Gabor_stage-1\1.png
文件 213 2008-04-03 16:29 MCodes\Gabor_stage-1\compute.m
文件 667 2013-05-20 03:05 MCodes\Gabor_stage-1\gabor.m
文件 452 2013-05-26 00:19 MCodes\Gabor_stage-1\Gabor2.m
文件 55954 2013-06-09 22:04 MCodes\Gabor_stage-1\Help.docx
文件 587902 2013-06-24 23:56 MCodes\Lung Cancer Detection Using Image Processing Techniques.pdf
文件 144178 2013-05-22 20:56 MCodes\WatershedSegmentation_stage-2\1.png
文件 151794 2013-05-28 20:30 MCodes\WatershedSegmentation_stage-2\2.png
文件 154187 2013-05-28 20:31 MCodes\WatershedSegmentation_stage-2\3.png
文件 154716 2013-05-28 20:31 MCodes\WatershedSegmentation_stage-2\4.png
............此处省略20个文件信息
- 上一篇:麦克风阵列的定位算法
- 下一篇:啤酒瓶缺陷检测程序
相关资源
- 基于Matlab的最大熵模糊图像复原算法
- KITTI雷达点云与图像数据融合matlab源码
- matlab 解码 NMEA0183格式GGA数据
- 一个有关飞机的模板匹配的跟踪的m
- 基于MATLAB的电弧模型仿真
- PRI信号分选
- Matlab论文:基于Matlab的二进制数字调
- 802.11协议吞吐量随节点数性能仿真
- matlab图片rgb转yuv,存.yuv文件 播放器
- Duda模式分类Pattern Classification MATLAB 代
- dijkstra算法的matlab实现31274
- 随机路径生成函数matlab
- matlab语音信号处理工具箱
- matlab2013激活文件
- matlab实现游程编码
- 暗通道先验+引导滤波MATLAB代码
- 边缘检测中的canny算法及其matlab实现
- 通过达曼光栅生成点阵的matlab程序.
- MATLAB核函数算法
- 求控制系统的性能指标MptrtsFAI,matl
- matlab 求DTFT
- 逆变器重复控制算法MATLAB仿真
- MATLAB R2014b 许可协议文件
- matlab读取comtrade格式的程序
- 基于Matlab的RC一阶电路仿真
- Las点云数据读取代码
- 雷达回波加天线方向图模拟程序
- MATLAB 2017b 安装文件及其破解文件百度
- Matlab实现音频降噪
- matlab实现导航卫星系统中计算多普勒
评论
共有 条评论