EdgePitchProfile

Creates edge pitch profile

int EdgePitchProfile(
        const IMAGE             *image,
        const BYTE              *model,
        const int               mode,
        const int               *colorStandard,
        const int               *colorDiff,
        const int               colorThresh,
        int                     *type,
        double          *density,
        float                   *profile
)

Parameters
*image
Image data structure address
*model
Model data
mode
Detection mode
0: Standard mode
1: Precise mode
*colorStandard
Edge color RGB
Color
[0]: R density
[1]: G density
[2]: B density
Monochrome
[0]: 0 White
1 Black
*colorDiff
Edge color deviation RGB (default: 5 for all)
colorThresh
Color threshold level (0 to D_MAX)
*type
Profile type
*density
Edge profile density
*profile
Edge profile data (measurement result)

Return Value
NORMAL(0): Successful completion
ERROR(-1): Unsuccessful completion

Description
Creates an edge pitch profile. Edge pitch is the measurement of the number of edges in a color based on the color specified using a RGB value.
You must allocate a space of the required size in advance by using "refEdgePosProfileNum Edge position profile number retrieval (projective method)". (Number of the profile data items * sizeof(float))
colorStandard / colorDiff / colorThresh are only enabled for color image.
colorStandard and colorDiff arrays must contain the following values.
colorStandard[0] : R density reference value
colorStandard[1] : G density reference value
colorStandard[2] : B density reference value
colorDiff[0] : R density deviation
colorDiff[1] : G density deviation
colorDiff[2] : B density deviation
The upper limit of the range (D_MAX) of the color threshold level is within one of the following ranges depending on the image type.
Color image: 0 to 442
Monochrome image: 0 to 255

Notes