Halcon Scan document Dispel the background

Source: Internet
Author: User

                                      Halcon Scan Document to remove the background color increase  Many scanning apps have the ability to remove the undertone: they are used to improve image quality, and often scanned images may be used for archival or re-printing.originally wanted to pass the scan after printing, the idea is good, but the printed file is not as you imagined, printed out has a background,and very serious, then what to do to solve?  familiarity with Photoshop usually achieves this through color scale adjustments, but todayintroduced is the use of Halcon grayscale stretching function (Scale_image)to achievethis purpose. Is the effect of Halcon dispel the background.

Can be found in the Halcon visualizer-grayscale histogram, for example, this diagram stretches (0,130) to (0,255)
Code implementation
Read_image (image, ' test.png ') gmin:=0gmax:=130multi:=255.0/(gmax-gmin) Add:=-multi * Gminscale_image (image, Imagescale, multi, add)

  

Follow: Halconhub, daily get Halcon essence Articles



From for notes (Wiz)



Halcon Scan document Dispel the background

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.