The RAKEREMOVE structure provides rake removal information for the L_RakeRemoveBitmap function.
Minimum length of a rake considered for removal. Rake less than this length are not removed.
Maximum average width of a rake that is considered for removal. Rake that are greater in average width are not removed.
Height of a wall. Walls are slices of a rake that are too wide to be considered part of the rake. Examples of walls include characters and especially digits that a rake passes through. If the image contains rakes that pass through characters or digits , set nMinWallHeight to be equal to or a little larger than nMaxWidth.
The maximum number of wall slices (expressed as a percent of the total length of the rake) that are allowed. A rake consists of wall slices and non-wall slices (refer to nMinWallHeight). This field specifies that maximum number of wall slices (expressed as a percent of the total length of the rake) that are allowed. Rake that have a wall percent that is larger than nMaxWallPercent will not be removed.
The max length (or height) of the side-structures that exist on both ends of the rake. Rakes that have their side teeth of larger length than the value of nMaxSideteethLength will not be removed.
The max length (or height) of the mid-structure that separate the digit spaces in the rake. Rakes that have their middle separating structures (teeth) of larger length than the value of nMaxMidteethLength will not be removed.
The average space of separation (in pixels) between Mid-teeth. Usually is best fit to be 5 pixels or more.
Maximum length of a break or a hole in a rake. For practical uses, using smaller values yields better results.
Amount of width change that is tolerated between adjacent line slices that construct the main horizontal line of the rake.
To fine-tune the performance of L_RakeRemoveBitmap, you need varying the size of nMinWallHeight, nMaxWallPercent, nMaxSideteethLength, and nMaxMidteethLength. Finer adjustments to nGaps and nVariance will produce accurate results. Pass large value to nTeethSpacing makes the function faster.
The structure is used by:
Medical Web Viewer .NET
.NET, Java, Android, and iOS/macOS Assemblies
C API/C++ Class Libraries