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