Image Segmentation Based on Moving Average

Source: Internet
Author: User

The threshold processing is intuitive, easy to implement, and fast to compute. Therefore, image threshold processing is at the core of image segmentation. Threshold processing can be divided into global threshold processing and local threshold processing (variable threshold processing ). This article briefly introduces Image Segmentation Based on Moving Average and provides the C language source code.

Moving Average is a local threshold processing method, which is based on the calculation of Moving Average based on the scanning line of an image. Moving Average split reduces illumination deviation and is easy to calculate. The p491 ~ of the third edition of "digital image processing ~ P492 provides a detailed description of the moving average. In particular, it is pointed out that when an object of interest is smaller (or smaller) than the image size, processing Based on the moving average threshold will work well. Printed images and handwritten text images meet this requirement.

The following shows the code for moving average. The tool used is opencv2.0 + vs2008.

# Include <cv. h> # include 

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.