部分图像分割的方法(matlab).pdfVIP

  • 2
  • 0
  • 约6.24千字
  • 约 11页
  • 2022-04-06 发布于江苏
  • 举报
大津法: function y1=OTSU(image,th_set) image=imread(color1.bmp); gray=rgb2gray(image);%原图像的灰度图 low_high=stretchlim(gray);%增强图像,似乎也不是一定需要 gray=imadjust(gray,low_high,[]); % subplot(224);imshow(gray);title(after adjust); count=imhist(gray); [r,t]=size(gray); n=r*t; l=256; count=count/n;%各级灰度出

文档评论(0)

1亿VIP精品文档

相关文档