Cleaning Up 1-Bit Images

(Document/Medical only)Scanned documents often contain a number of undesirable elements, including dots, blobs, lines, borders and hole punches. LEADTOOLS provides a number of functions that will improve the appearance of scanned documents by removing dots, blobs, lines, borders, hole punches, inverted text, bumps and nicks. These functions are listed below:

LBitmap::Smooth

LBitmap::LineRemove

LBitmap::DotRemove

LBitmap::HolePunchRemove

LBitmap::InvertedText

LBitmap::BorderRemove

Each of these functions takes as a parameter a specialized structure that controls the performance of the corresponding removal process. Included in the structure is a set of flags that allows you to obtain a LEAD region or a Windows region that contains all the elements removed from a document. The following callback member functions allow you to provide customized region processing, as well as create your own composite of the removed regions.

LBitmap::SmoothCallback

LBitmap::LineRemoveCallback

LBitmap::DotRemoveCallback

LBitmap::HolePunchRemoveCallback

LBitmap::BorderRemoveCallback

LBitmap::InvertedTextCallback