EdgePosProfile

Creates an edge position profile (projective method)

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

Parameters
*image
Image data structure address
*model
Model data
*colorStandard
Edge color RGB (default: 0 for all)
*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 position profile of projective method.
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