XXX_Parm
typedef struct XXX_Parm_tag {
long general;
long prep;
short deskew_min; short filler1;
short noise_diameter_percent;
short noise_diameter_pixel;
short noise_width_percent;
short noise_length_percent;
short noise_width_pixel;
short noise_length_pixel;
INT_PTR hookparm;
} XXX_Parm;
Elements:
general
GENERAL_XXXCALL
prep
-
PREP_NOSPOTREMOVAL
- switches off the removal of spots.
PREP_AUTO_NOISEREDUCTION
- Adaptive controlled noise reduction.
PREP_RGBTOGRAY_COLORGRAY
- This value is used to make a gray image from an
image with colors in a medium way (default).
PREP_RGBTOGRAY_COLORMIN
and
PREP_RGBTOGRAY_COLORMAX
verwendet wird.
PREP_RGBTOGRAY_COLORMIN
- This value is used to make a gray image from a color image in a bright way.
PREP_RGBTOGRAY_COLORMAX
- This value is used to make a gray image from an image with colors in a dark way.
PREP_GRAYTOBIN_*
- This value is used to generate a black & white image from a gray image.
PREP_GRAYTOBIN_VERY_THIN
= Very light blackening.
PREP_GRAYTOBIN_THIN
= Light blackening.
PREP_GRAYTOBIN_MEDIUM
= Mean blackening.
PREP_GRAYTOBIN_THICK
= Dark blackening.
PREP_GRAYTOBIN_VERY_THICK
= Very dark blackening.
PREP_GRAYTOBIN_UNIFORM
- If this value is set, then there is no adaptive thresholding. Instead, only one threshold will be used for binarization of the whole image. This is recommended whenever the given images are uniformly illuminated.
PREP_BINFILTER_*
- With this parameter characters can be smoothed and ragged characters can be thickened or thinned out. Small objects such as smudges can be deleted. Dot-matrix print can be prepared for recognition. Five selections are possible:
PREP_BINFILTER_VERY_THIN
= Smoothing with strong thinning.
PREP_BINFILTER_THIN
= Smoothing with thinning.
PREP_BINFILTER_MEDIUM
= Smoothing without thinning.
PREP_BINFILTER_THICK
= Smoothing with thickening.
PREP_BINFILTER_VERY_THICK
= Smoothing with strong thickening.
PREP_REMOVE_BACKGROUND_AUTO
- Remove image background using histogram - (for color images only)
PREP_REMOVE_BACKGROUND
- Remove image background - (for color images only)
PREP_INPLACE
- Overwrite image in preprocessing
deskew_min
- Threshold value for deskewing. Zero means no deskewing (default).
filler1
- 8 byte alignment
noise_diameter_percent, noise_diameter_pixel
- Noise can be removed according to its diameter. This setting can be relative to the mean width of the character strokes or directly given in pixels.
noise_width_percent, noise_length_percent, noise_width_pixel, noise_length_pixel
- Dirt removal can not only be controlled via the dirt diameter, but also over the width and length of the dirt. Should pixels be used for specification of the noise reduction, the parameters
noise_width_pixel
and
noise_length_pixel
must be set. For a relative specification, i.e. using a percentage of the stroke width, the parameters noise_width_percent
, and noise_length_percent
must be set.
Noise will be removed if one of the settings for .._pixel
or .._percent
is found to be valid.
hookparm
- For private use
Reference: