A summary of the method of binary value

Source: Internet
Author: User

1.IM2BW (Image, Threshold_value)

2. Maximum class part variance (Ostu):

MATLAB:IM2BW (image, Graythresh (image))

3.bernsen algorithm

The more primitive Bernsen:
The main idea of this algorithm is to set the current pixel to P, to calculate the maximum value m and the minimum n for all pixels in the P-centric size (2w+1) * (2w+1) window, the mean t of both,
if (m-n) > S
The threshold for the current point P is t.
Else
The current window area of the gray level difference is small, then the window in the target area or in the background area, if T>t ' The current point gray value is 255, otherwise, the current point grayscale value is 0.

End
The S author was initially set to "T ' set to (255+0)/2=128.
The effect of the most primitive algorithm is generally OK, but the Bernsen algorithm used in general has been improved by various methods.

4.adaptthreshold algorithm

h = fspecial (' average ', [width height]);
Im_mean =uint8 (Filter2 (H, Gray));
Bw = Gray < im_mean-t;

A summary of the method of binary value

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.