EdgePosition

Edge position measurement (projective method)

int EdgePosition(
        const float             *profile,
        const int               num,
        const int               type,
        const double    density,
        const int               edgeNo,
        const int               absoluteMode,
        const int               edgeLevel,
        const int               noiseLevel,
        const int               noiseWidth,
        const int               detectionMode,
        double          *edgePos
)

Parameters
*profile
Edge profile data
num
Number of profile data
type
Profile type
density
Edge profile density
edgeNo
Edge number (0 to 99: default is 0)
absoluteMode
Absolute value mode
0: Relative value mode (default)
1: Absolute value mode
edgeLevel
Edge level
Relative value mode 0 to 100 default is 50
Absolute value mode 0 to D_MAX default is 50
noiseLevel
Noise level (0 to D_MAX: default is 0)
noiseWidth
Noise width (0 to X_MAX: default is 0)
detectionMode
Detection mode
color 0: Edge color IN
1: Edge color OUT
Monochrome 0: black -> white
1: white -> black
*edgePos
Edge detection position (measurement result)

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

Description
Creates an edge position profile with projective method.
For the profile type and density, you need to use the value obtained by "refEdgePosProfile Creates an edge position profile (projective method)".
The upper limit of the range (D_MAX) of the edge level and noise level is within one of the following ranges depending on the image type.
Color image: 0 to 442
Monochrome image: 0 to 255

Notes