DiffEdgePosition

Edge position measurement (differential method)

int DiffEdgePosition(
        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,
        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)
*edgePos
Edge detection position (measurement result)

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

Description
Creates an edge position profile with differential method.
For the profile type and density, you need to use the value obtained by "refDiffEdgePosProfile Creates an edge position profile (differential 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