图像分割的阈值算法matlab实现.docVIP

  • 3
  • 0
  • 约7.46千字
  • 约 8页
  • 2019-04-21 发布于江西
  • 举报
图像分割的阈值算法matlab实现【OTSU,1DEntropy,2DEntropy】 今天看了几篇论文,实现了一下,没有验证各算法的有效性 也没有进行定量比较 OTSU % OTSU method % 2006/9/4 clc; clear; %I = imread(E:\test\chinalake.bmp,bmp); I = imread(E:\test\lena.png,png); I = double(I); I = Medianfilter(I);???????? % median filter h_Tmean = mean(mean(I)); [height,width] = size(I); Size = height * width;? % the size of the image h_T = sum(sum(I));????? % the total gray value of the image G_min = min(min(I));??? % the min gray value of the image G_max = max(max(I));??? % the max gray value of the iamge I_seg = zeros(height,width);???? % the array to store the segmente

文档评论(0)

1亿VIP精品文档

相关文档