What is meant by histogram thresholding? Is there any direct matlab command to implement it?

4 ビュー (過去 30 日間)
Sivakumaran Chandrasekaran
Sivakumaran Chandrasekaran 2014 年 6 月 12 日
コメント済み: Image Analyst 2014 年 6 月 12 日
What is meant by histogram thresholding? Is there any direct matlab command to implement it?

回答 (1 件)

Anand
Anand 2014 年 6 月 12 日
I don't think there is a direct function that implements the balanced histogram thresholding approach (I assume that's what you mean when you say histogram thresholding). However, there are similar methods. You could try using the graythresh function, which is a histogram-based threshold using Otsu's method, but not the same as balanced histogram thresholding.
Here is an example:
% Read an image
im = imread('cameraman.tif');
% Compute the Otsu level
level = graythresh(im);
% Threshold using computed level
BW = im2bw(im,level);
  1 件のコメント
Image Analyst
Image Analyst 2014 年 6 月 12 日
I've never heard of balanced thresholding. What is it? I just do this
binaryImage = grayImage < someThreshldValue; % or can use >
as I'm sure Sivakumaran knows already since he has said before that he's a MATLAB instructor and has been using image processing for quite some time now.

サインインしてコメントする。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by