| MIL 10 Reference
| Customize Help
| Save Settings

MedgeInquire



See also
Availability
Not available in MIL-Lite
Available in MIL

Available on Windows
Available on Linux

Available on Non-Matrox computer
Available on Matrox 4Sight-X
Available on Matrox 4Sight GP
Available on Matrox Supersight
function map Function map
Examples
None.
Synopsis
Inquire about an Edge Finder context or an Edge Finder result buffer.
Syntax
MIL_INT MedgeInquire(
MIL_ID ContextOrResultId, //in
MIL_INT64 InquireType, //in
void *UserVarPtr //out
)
Description

This function inquires information about the specified Edge Finder context or Edge Finder result buffer.

Note that for an Edge Finder result buffer, this function only retrieves information about result buffer settings (set with MedgeControl(), for example). To retrieve results from the Edge Finder result buffer, use MedgeGetResult().

If the inquired setting is set to M_DEFAULT (for example, in MedgeControl()), MedgeInquire() will return M_DEFAULT. To inquire the actual default value, add M_DEFAULT to the InquireType parameter.

Note that this function reference has not been updated for a MIL system added during a MIL update. Refer to the MIL system's release note to see if there is complementary information.
Parameters
This function is not supported on the selected boards.
Parameters
ContextOrResultId

Specifies either the Edge Finder context or the Edge Finder result buffer about which to inquire information. Both the Edge Finder context and the Edge Finder result buffer must have been previously allocated on the system using MedgeAlloc() or MedgeAllocResult(), respectively.

InquireType

Specifies the type of setting about which to inquire.

See the Parameter associations section for possible values that can be specified.

UserVarPtr
Accepts the address of one of the following (see the Parameter associations section for specifics on which is expected):
  • MIL_DOUBLE
  • MIL_ID
  • MIL_INT
  • MIL_INT32
  • MIL_INT64

Specifies the address in which to write the requested information. Since this function also returns the requested information, you can set this parameter to M_NULL.

See the Parameter associations section for possible values that can be returned.

To inquire about the operation settings for both M_CONTOUR and M_CREST Edge Finder contexts, set the InquireType parameter to one of the following values:

Unless otherwise specified, the following values require that you pass the UserVarPtr parameter the address of a MIL_DOUBLE.

function map For operation settings (both M_CONTOUR and M_CREST)
CollapseInquireType Description
UserVarPtr
- Possible values returned
Collapse M_ACCURACY +

Inquires the edgel accuracy of the edge extraction. SET

(summarize)
Collapse M_DEFAULT

Same as M_HIGH.

Collapse M_DISABLE

Specifies that edgel accuracy will be disabled. INFO

Collapse M_HIGH

Specifies high accuracy. INFO

Collapse M_VERY_HIGH

Specifies very high accuracy. INFO

Collapse M_ANGLE_ACCURACY +

Inquires the edgel angle accuracy of the edge extraction. SET

(summarize)
Collapse M_DEFAULT

Same as M_HIGH.

Collapse M_HIGH

Specifies high precision. INFO

Collapse M_LOW

Specifies low precision. INFO

Collapse M_CHAIN_ALL_NEIGHBORS +

Inquires whether edge chains are built using all the available neighboring edgels. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that edge chains are built with the least amount of edgel information possible. INFO

Collapse M_ENABLE

Specifies that edge chains are built with as much edgel information as possible. INFO

Collapse M_EXTRACTION_SCALE +

Inquires the image scale with which to extract the edges.

Returns the scale of the image at which to do the edge extraction. Once the extraction is complete, the results are scaled to the original scale of the image.

A lower extraction scale speeds up the search but can result in a less reliable result, including, the loss of important details and/or a reduction in the accuracy of the search results.

M_EXTRACTION_SCALE is for advanced users of the Edge Finder module. The default setting usually provides the most accurate search results. SET

(summarize)
Collapse M_DEFAULT

Specifies the default value; the default value is 1.0.

Collapse Value > 0

Specifies the extraction scale.

Collapse M_FILTER_SMOOTHNESS +

Inquires the degree of smoothness (strength of denoising) of the edge extraction filter. SET

(summarize)
Collapse M_DEFAULT

Specifies the default value; the default value is 50.0.

Collapse 0.0 <= Value <= 100.0

Specifies the smoothness value. INFO

Collapse M_FILTER_TYPE +

Inquires the type of filter used when performing the edge extraction. SET

(summarize)
Collapse M_DEFAULT

Same as M_SHEN.

Collapse M_DERICHE

Specifies a Canny-Deriche infinite support filter. INFO

Collapse M_FREI_CHEN

Specifies a Frei Chen filter. INFO

Collapse M_PREWITT

Specifies a Prewitt filter. INFO

Collapse M_SHEN

Specifies a Shen-Castan infinite support exponential filter. INFO

Collapse M_SOBEL

Specifies a Sobel filter. INFO

Collapse M_FLOAT_MODE +

Inquires whether the entire edge extraction process is forced to be performed using floating-point precision calculations. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that all edge extractions are not forced to be performed using floating-point precision calculations.

Collapse M_ENABLE

Specifies that all edge extractions are forced to be performed using floating-point precision calculations.

Collapse M_KERNEL_SIZE +

Inquires the actual X and Y size (same in X and Y) of the convolution kernel used for kernel filtering mode. Note that the kernel size can change according to the filter type, the smoothness factor, the specified maximum kernel width, the specified kernel depth, and whether you are using floating-point calculations.

(summarize)
Collapse Value

Specifies the actual size, in X and Y, of the convolution kernel.

Collapse M_MAGNITUDE_TYPE +

Inquires the type of magnitude value used to calculate the magnitude of the edge at each edgel position. SET

(summarize)
Collapse M_DEFAULT

Specifies the default value. INFO

Collapse M_NORM

Specifies that the magnitude will be used.

Collapse M_SQR_NORM

Specifies that the square of the magnitude will be used. INFO

Collapse M_MODIFICATION_COUNT +

Inquires the current value of the modification counter. The modification counter is increased by one each time settings for the context are modified.

Although you cannot identify the modification counter's contents, you can compare them throughout your application to know if the context has been altered. If the modification counter has changed you can, for example, prompt the user to save before closing the application.

(summarize)
Collapse Value

Specifies the current value of the modification counter.

Collapse M_OVERSCAN +

Inquires the type of overscan used by the convolution filters when extracting edges for kernel filtering mode. Note that M_OVERSCAN is ignored if using an IIR filter (e.g. Shen and Deriche filter types). SET

(summarize)
Collapse M_DEFAULT

Same as M_MIRROR.

Collapse M_DISABLE

Specifies that no overscan will be used, unless processing the border pixels is faster than ignoring them; in the latter case, MIL automatically selects the overscan to optimize speed according to the specified operation and the target system.

Collapse M_MIRROR

Specifies that the border pixels of a source image are processed using overscan pixel values that mirror the source buffer pixel values. INFO

Collapse M_REPLACE

Specifies that the border pixels of a source image are processed using overscan pixel values set to the overscan replacement value (MedgeControl() with M_OVERSCAN_REPLACE_VALUE).

Collapse M_TRANSPARENT

Specifies that the border pixels of a source image are processed using transparent overscan pixel values. INFO

Collapse M_OVERSCAN_REPLACE_VALUE +

Inquires the replacement value for the overscan pixel values when using replacement type overscan. Note that M_OVERSCAN_REPLACE_VALUE is ignored unless M_OVERSCAN with MedgeControl() is set to M_REPLACE. In addition, M_OVERSCAN_REPLACE_VALUE is ignored if using an IIR filter (e.g. Shen and Deriche filter types). SET

(summarize)
Collapse M_DEFAULT

Specifies the default value; the default value is 0.

Collapse M_REPLACE_MAX

Specifies that the overscan neighborhood pixel values will be set to the maximum value of the source image buffer.

Collapse M_REPLACE_MIN

Specifies that the overscan neighborhood pixel values will be set to the minimum value of the source image buffer.

Collapse Value

Specifies the value of the overscan neighborhood pixels.

Collapse M_THRESHOLD_HIGH +

Inquires the user-defined upper bound of the hysteresis threshold. SET

(summarize)
Collapse M_DEFAULT

Specifies the default value; the default value is 0.0.

Collapse Value

Specifies the upper bound of the hysteresis threshold.

Collapse M_THRESHOLD_LOW +

Inquires the user-defined lower bound of the hysteresis threshold. SET

(summarize)
Collapse M_DEFAULT

Specifies the default value; the default value is 0.0.

Collapse Value

Specifies the lower bound of the hysteresis threshold.

Collapse M_THRESHOLD_MODE +

Inquires the threshold mode of the edge extraction. Note that lower threshold values result in a more sensitive edgel detection. SET

(summarize)
Collapse M_DEFAULT

Same as M_HIGH.

Collapse M_DISABLE

Specifies no threshold. INFO

Collapse M_HIGH

Specifies a high threshold. INFO

Collapse M_LOW

Specifies a low threshold. INFO

Collapse M_MEDIUM

Specifies a medium threshold. INFO

Collapse M_USER_DEFINED

Specifies that the threshold values will be user-defined. INFO

Collapse M_VERY_HIGH

Specifies a very high threshold. INFO

Collapse M_THRESHOLD_TYPE +

Inquires the type of the hysteresis threshold used when performing the edge extraction. SET

(summarize)
Collapse M_DEFAULT

Same as M_HYSTERESIS.

Collapse M_FULL_HYSTERESIS

Specifies that the lower bound threshold value is 0.

Collapse M_HYSTERESIS

Specifies that both the lower bound threshold value and the upper bound threshold value will be used.

Collapse M_NO_HYSTERESIS

Specifies that the lower bound threshold value is equal to the upper bound threshold value.

Collapse M_TIMEOUT +

Inquires the maximum edge extraction and calculation time for MedgeCalculate(). SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies an infinite amount of edge extraction and calculation time.

Collapse Value > 0

Specifies the maximum edge extraction and calculation time, in msec.

To inquire about the operation settings for M_CREST Edge Finder contexts, set the InquireType parameter to the value below.

function map For operation settings (M_CREST only)
CollapseInquireType Description
UserVarPtr
- Possible values returned
Collapse M_FOREGROUND_VALUE +

Inquires the color used to extract line crests from the image. SET

(summarize)
Collapse UserVarPtr data type info

Data type: MIL_DOUBLE

Collapse M_DEFAULT

Same as M_FOREGROUND_BLACK.

Collapse M_ANY

Specifies that the line crests are both lighter and darker than the image's background color. INFO

Collapse M_FOREGROUND_BLACK

Specifies that the line crests are darker than the image's background color. INFO

Collapse M_FOREGROUND_WHITE

Specifies that the line crests are lighter than the image's background color. INFO

To inquire whether internal buffers have been saved in the Edge Finder result buffer, set the InquireType parameter to one of the values below. These values can be specified for both M_CONTOUR and M_CREST Edge Finder contexts.

Unless otherwise specified, the following values require that you pass the UserVarPtr parameter the address of a MIL_DOUBLE.

function map For internal buffers (both M_CONTOUR and M_CREST)
CollapseInquireType Description
UserVarPtr
- Possible values returned
Collapse M_SAVE_ANGLE +

Inquires whether the internal angle buffer used to extract edges is saved in the Edge Finder result buffer. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the angle buffer will not be saved.

Collapse M_ENABLE

Specifies that the angle buffer will be saved.

Collapse M_SAVE_CHAIN_ANGLE +

Inquires whether the angle value at each edgel position is saved in the Edge Finder result buffer. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the angle values will not be saved.

Collapse M_ENABLE

Specifies that the angle values will be saved.

Collapse M_SAVE_CHAIN_MAGNITUDE +

Inquires whether the magnitude value at each edgel position is saved in the Edge Finder result buffer. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the magnitude values will not be saved.

Collapse M_ENABLE

Specifies that the magnitude values will be saved.

Collapse M_SAVE_DERIVATIVES +

Inquires whether the internal derivative buffers used to extract edges are saved in the Edge Finder result buffer. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the derivative buffers will not be saved.

Collapse M_ENABLE

Specifies that the derivative buffers will be saved.

Collapse M_SAVE_IMAGE +

Inquires whether the source image is saved in the Edge Finder result buffer. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the image will not be saved.

Collapse M_ENABLE

Specifies that the image will be saved.

Collapse M_SAVE_MAGNITUDE +

Inquires whether the internal magnitude buffer used to extract edges is saved in the Edge Finder result buffer. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the magnitude buffer will not be saved.

Collapse M_ENABLE

Specifies that the magnitude buffer will be saved.

Collapse M_SAVE_MASK +

Inquires whether the mask buffer is saved in the Edge Finder result buffer. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the mask will not be saved.

Collapse M_ENABLE

Specifies that the mask will be saved.

To inquire about which edge features will be calculated for each edge, set the InquireType parameter to one of the values below. These values can be specified for both M_CONTOUR and M_CREST Edge Finder contexts. Note that, when an edge feature has been calculated, M_ENABLE is returned.

Unless otherwise specified, the following values require that you pass the UserVarPtr parameter the address of a MIL_DOUBLE.

function map For edge features (both M_CONTOUR and M_CREST)
CollapseInquireType Description
UserVarPtr
- Possible values returned
Collapse M_AVERAGE_STRENGTH +

Inquires whether the average strength value of each edge will be calculated. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the average strength will not be calculated.

Collapse M_ENABLE

Specifies that the average strength will be calculated.

Collapse M_BOX_X_MAX +

Inquires whether the extreme right edgel coordinate of each edge will be calculated. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the extreme right edgel coordinate will not be calculated.

Collapse M_ENABLE

Specifies that the extreme right edgel coordinate will be calculated.

Collapse M_BOX_X_MIN +

Inquires whether the extreme left edgel coordinate of each edge will be calculated. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the extreme left edgel coordinate will not be calculated.

Collapse M_ENABLE

Specifies that the extreme left edgel coordinate will be calculated.

Collapse M_BOX_Y_MAX +

Inquires whether the extreme bottom edgel coordinate of each edge will be calculated. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the extreme bottom edgel coordinate will not be calculated.

Collapse M_ENABLE

Specifies that the extreme bottom edgel coordinate will be calculated.

Collapse M_BOX_Y_MIN +

Inquires whether the extreme top edgel coordinate of each edge will be calculated. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the extreme top edgel coordinate will not be calculated.

Collapse M_ENABLE

Specifies that the extreme top edgel coordinate will be calculated.

Collapse M_CENTER_OF_GRAVITY_X +

Inquires whether the X-position of each edge's center of gravity will be calculated. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the X-position of the center of gravity will not be calculated.

Collapse M_ENABLE

Specifies that the X-position of the center of gravity will be calculated.

Collapse M_CENTER_OF_GRAVITY_Y +

Inquires whether the Y-position of each edge's center of gravity will be calculated. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the Y-position of the center of gravity will not be calculated.

Collapse M_ENABLE

Specifies that the Y-position of the center of gravity will be calculated.

Collapse M_CIRCLE_FIT_CENTER_X +

Inquires whether the X-coordinate of the center of the circle that is the best fit for each edge will be calculated. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the X-coordinate will not be calculated.

Collapse M_ENABLE

Specifies that the X-coordinate will be calculated.

Collapse M_CIRCLE_FIT_CENTER_Y +

Inquires whether the Y-coordinate of the center of the circle that is the best fit for each edge will be calculated. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the Y-coordinate will not be calculated.

Collapse M_ENABLE

Specifies that the Y-coordinate will be calculated.

Collapse M_CIRCLE_FIT_COVERAGE +

Inquires whether the coverage of the circle that is the best fit for each edge will be calculated. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the coverage of the circle will not be calculated.

Collapse M_ENABLE

Specifies that the coverage of the circle will be calculated.

Collapse M_CIRCLE_FIT_ERROR +

Inquires whether the fit error of the circle that is the best fit for each edge will be calculated. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the fit error of the circle will not be calculated.

Collapse M_ENABLE

Specifies that the fit error of the circle will be calculated.

Collapse M_CIRCLE_FIT_RADIUS +

Inquires whether the radius of the circle that is the best fit for each edge will be calculated. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the radius will not be calculated.

Collapse M_ENABLE

Specifies that the radius will be calculated.

Collapse M_CLOSURE +

Inquires whether the closure of each edge will be calculated. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the edge's closure state will not be calculated.

Collapse M_ENABLE

Specifies that the edge's closure state will be calculated.

Collapse M_CONVEX_PERIMETER +

Inquires whether the convex elongation of each edge will be calculated. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the convex elongation will not be calculated.

Collapse M_ENABLE

Specifies that the convex elongation will be calculated.

Collapse M_ELLIPSE_FIT_ANGLE +

Inquires whether the angle of the ellipse that is the best fit for each edge will be calculated. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the angle will not be calculated.

Collapse M_ENABLE

Specifies that the angle will be calculated.

Collapse M_ELLIPSE_FIT_CENTER_X +

Inquires whether the X-coordinate of the center of the ellipse that is the best fit for each edge will be calculated. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the X-coordinate will not be calculated.

Collapse M_ENABLE

Specifies that the X-coordinate will be calculated.

Collapse M_ELLIPSE_FIT_CENTER_Y +

Inquires whether the Y-coordinate of the center of the ellipse that is the best fit for each edge will be calculated. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the Y-coordinate will not be calculated.

Collapse M_ENABLE

Specifies that the Y-coordinate will be calculated.

Collapse M_ELLIPSE_FIT_COVERAGE +

Inquires whether the coverage of the ellipse that is the best fit for each edge will be calculated. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the coverage of the ellipse will not be calculated.

Collapse M_ENABLE

Specifies that the coverage of the ellipse will be calculated.

Collapse M_ELLIPSE_FIT_ERROR +

Inquires whether the fit error of the ellipse that is the best fit for each edge will be calculated. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the fit error of the ellipse will not be calculated.

Collapse M_ENABLE

Specifies that the fit error of the ellipse will be calculated.

Collapse M_ELLIPSE_FIT_MAJOR_AXIS +

Inquires whether the major axis of the ellipse that is the best fit for each edge will be calculated. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the major axis will not be calculated.

Collapse M_ENABLE

Specifies that the major axis will be calculated.

Collapse M_ELLIPSE_FIT_MINOR_AXIS +

Inquires whether the minor axis the ellipse that is the best fit for each edge will be calculated. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the minor axis will not be calculated.

Collapse M_ENABLE

Specifies that the minor axis will be calculated.

Collapse M_FAST_LENGTH +

Inquires whether the length of each edge will be quickly calculated. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that a fast length will not be calculated.

Collapse M_ENABLE

Specifies that a fast length will be calculated.

Collapse M_FERET_ELONGATION +

Inquires whether the Feret elongation of each edge will be calculated. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the Feret elongation will not be calculated.

Collapse M_ENABLE

Specifies that the Feret elongation will be calculated.

Collapse M_FERET_MAX_ANGLE +

Inquires whether the maximum Feret angle of each edge will be calculated. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the maximum Feret angle will not be calculated.

Collapse M_ENABLE

Specifies that the maximum Feret angle will be calculated.

Collapse M_FERET_MAX_DIAMETER +

Inquires whether the maximum Feret diameter of each edge will be calculated. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the maximum Feret diameter will not be calculated.

Collapse M_ENABLE

Specifies that the maximum Feret diameter will be calculated.

Collapse M_FERET_MEAN_DIAMETER +

Inquires whether the average Feret diameter of each edge will be calculated. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the average Feret diameter will not be calculated.

Collapse M_ENABLE

Specifies that the average Feret diameter will be calculated.

Collapse M_FERET_MIN_ANGLE +

Inquires whether the minimum Feret angle of each edge will be calculated. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the minimum Feret angle will not be calculated.

Collapse M_ENABLE

Specifies that the minimum Feret angle will be calculated.

Collapse M_FERET_MIN_DIAMETER +

Inquires whether the minimum Feret diameter of each edge will be calculated. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the minimum Feret diameter will not be calculated.

Collapse M_ENABLE

Specifies that the minimum Feret diameter will be calculated.

Collapse M_FERET_X +

Inquires whether the X-Feret value of each edge will be calculated. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the X-Feret value will not be calculated.

Collapse M_ENABLE

Specifies that the X-Feret value will be calculated.

Collapse M_FERET_Y +

Inquires whether the Y-Feret value of each edge will be calculated. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the Y-Feret value will not be calculated.

Collapse M_ENABLE

Specifies that the Y-Feret value will be calculated.

Collapse M_FIRST_POINT_X +

Inquires whether the X-coordinate of each edge's first point (starting point) will be calculated. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the first point's X-coordinate will not be calculated.

Collapse M_ENABLE

Specifies that the first point's X-coordinate will be calculated.

Collapse M_FIRST_POINT_Y +

Inquires whether the Y-coordinate of each edge's first point (starting point) will be calculated. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the first point's Y-coordinate will not be calculated.

Collapse M_ENABLE

Specifies that the first point's Y-coordinate will be calculated.

Collapse M_GENERAL_FERET +

Inquires whether the general Feret of each edge will be calculated. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the general Feret will not be calculated.

Collapse M_ENABLE

Specifies that the general Feret will be calculated.

Collapse M_LABEL_VALUE +

Inquires whether the label value of each edge in an image will be calculated. SET

(summarize)
Collapse M_DEFAULT

Same as M_ENABLE.

Collapse M_DISABLE

Specifies that the label value will not be calculated.

Collapse M_ENABLE

Specifies that the label value will be calculated.

Collapse M_LENGTH +

Inquires whether the length of each edge will be calculated. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the length of each edge will not be calculated.

Collapse M_ENABLE

Specifies that the length of each edge will be calculated.

Collapse M_LINE_FIT_A +

Inquires whether the coefficient A of the line that is the best fit for each edge will be calculated. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the coefficient A will not be calculated.

Collapse M_ENABLE

Specifies that the coefficient A will be calculated.

Collapse M_LINE_FIT_B +

Inquires whether the coefficient B of the line that is the best fit for each edge will be calculated. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the coefficient B will not be calculated.

Collapse M_ENABLE

Specifies that the coefficient B will be calculated.

Collapse M_LINE_FIT_C +

Inquires whether the coefficient C of the line that is the best fit for each edge will be calculated. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the coefficient C will not be calculated.

Collapse M_ENABLE

Specifies that the coefficient C will be calculated.

Collapse M_LINE_FIT_ERROR +

Inquires whether the fit error of the line that is the best fit for each edge will be calculated. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the fit error will not be calculated.

Collapse M_ENABLE

Specifies that the fit error will be calculated.

Collapse M_MOMENT_ELONGATION +

Inquires whether the moment elongation of each edge will be calculated. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the moment elongation will not be calculated.

Collapse M_ENABLE

Specifies that the moment elongation will be calculated.

Collapse M_MOMENT_ELONGATION_ANGLE +

Inquires whether the angle of the principal axis along each edge's moment elongation will be calculated. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the angle of the moment elongation will not be calculated.

Collapse M_ENABLE

Specifies that the angle of the moment elongation will be calculated.

Collapse M_POSITION_X +

Inquires whether the X-position of each edge will be calculated. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the X-position will not be calculated.

Collapse M_ENABLE

Specifies that the X-position will be calculated.

Collapse M_POSITION_Y +

Inquires whether the Y-position of each edge will be calculated. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the Y-position will not be calculated.

Collapse M_ENABLE

Specifies that the Y-position will be calculated.

Collapse M_SIZE +

Inquires whether the number of edgels in each edge will be calculated. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the number of edgels will not be calculated.

Collapse M_ENABLE

Specifies that the number of edgels will be calculated.

Collapse M_STRENGTH +

Inquires whether the strength value of each edge will be calculated. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the strength will not be calculated.

Collapse M_ENABLE

Specifies that the strength will be calculated.

Collapse M_TORTUOSITY +

Inquires whether the tortuosity measure of each edge will be calculated. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the tortuosity measure will not be calculated.

Collapse M_ENABLE

Specifies that the tortuosity measure will be calculated.

Collapse M_X_MAX_AT_Y_MAX +

Inquires whether the X-maximum at Y-maximum contact point of each edge will be calculated. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the X-maximum at Y-maximum will not be calculated.

Collapse M_ENABLE

Specifies that the X-maximum at Y-maximum will be calculated.

Collapse M_X_MIN_AT_Y_MIN +

Inquires whether the X-minimum at Y-minimum contact point of each edge will be calculated. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the X-minimum at Y-minimum will not be calculated.

Collapse M_ENABLE

Specifies that the X-minimum at Y-minimum will be calculated.

Collapse M_Y_MAX_AT_X_MIN +

Inquires whether the Y-maximum at X-minimum contact point of each edge will be calculated. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the Y-maximum at X-minimum will not be calculated.

Collapse M_ENABLE

Specifies that the Y-maximum at X-minimum will be calculated.

Collapse M_Y_MIN_AT_X_MAX +

Inquires whether the Y-minimum at X-maximum contact point of each edge will be calculated. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the Y-minimum at X-maximum will not be calculated.

Collapse M_ENABLE

Specifies that the Y-minimum at X-maximum will be calculated.

To inquire about the corresponding edge feature associated with the specified sorting key, set the InquireType parameter to one of the values below. These values can be specified for both M_CONTOUR and M_CREST Edge Finder contexts.

Unless otherwise specified, the following values require that you pass the UserVarPtr parameter the address of a MIL_DOUBLE.

function map For sorting keys (both M_CONTOUR and M_CREST)
CollapseInquireType Description
UserVarPtr
- Possible values returned
Collapse M_SORTn_DOWN +

Inquires the feature associated with the n th sorting key (in descending order), where n stands for an integer between 1 and 3.

(summarize)
Collapse M_NULL

Specifies that no feature has been associated with the specified sorting key.

Collapse M_AVERAGE_STRENGTH

Sorts based on the average strength of each edge. INFO

Collapse M_BOX_X_MAX

Sorts based on the extreme right edgel coordinate of each edge.

Collapse M_BOX_X_MIN

Sorts based on the extreme left edgel coordinate of each edge.

Collapse M_BOX_Y_MAX

Sorts based on the extreme bottom edgel coordinate of each edge.

Collapse M_BOX_Y_MIN

Sorts based on the extreme top edgel coordinate of each edge.

Collapse M_CENTER_OF_GRAVITY_X

Sorts based on the X-position of each edge's center of gravity. INFO

Collapse M_CENTER_OF_GRAVITY_Y

Sorts based on the Y-position of each edge's center of gravity. INFO

Collapse M_CIRCLE_FIT_CENTER_X

Sorts based on the X-coordinate of the center of the circle that is the best fit for each edge.

Collapse M_CIRCLE_FIT_CENTER_Y

Sorts based on the Y-coordinate of the center of the circle that is the best fit for each edge.

Collapse M_CIRCLE_FIT_COVERAGE

Sorts based on the coverage of the circle that is the best fit for each edge. INFO

Collapse M_CIRCLE_FIT_ERROR

Sorts based on the fit error of the circle that is the best fit for each edge. INFO

Collapse M_CIRCLE_FIT_RADIUS

Sorts based on the radius of the circle that is the best fit for each edge.

Collapse M_CLOSURE

Sorts based on the closure state of each edge. INFO

Collapse M_CONVEX_PERIMETER

Sorts based on the convex elongation of each edge. INFO

Collapse M_ELLIPSE_FIT_ANGLE

Sorts based on the angle of the ellipse that is the best fit for each edge.

Collapse M_ELLIPSE_FIT_CENTER_X

Sorts based on the X-coordinate of the center of the ellipse that is the best fit for each edge.

Collapse M_ELLIPSE_FIT_CENTER_Y

Sorts based on the Y-coordinate of the center of the ellipse that is the best fit for each edge.

Collapse M_ELLIPSE_FIT_COVERAGE

Sorts based on the coverage of the ellipse that is the best fit for each edge. INFO

Collapse M_ELLIPSE_FIT_ERROR

Sorts based on the fit error of the ellipse that is the best fit for each edge. INFO

Collapse M_ELLIPSE_FIT_MAJOR_AXIS

Sorts based on the major axis of the ellipse that is the best fit for each edge. INFO

Collapse M_ELLIPSE_FIT_MINOR_AXIS

Sorts based on the minor axis of the ellipse that is the best fit for each edge. INFO

Collapse M_FAST_LENGTH

Sorts based on a coarse approximation for the length of each edge. INFO

Collapse M_FERET_ELONGATION

Sorts based on the Feret elongation of each edge. INFO

Collapse M_FERET_MAX_ANGLE

Sorts based on the maximum Feret angle of each edge. INFO

Collapse M_FERET_MAX_DIAMETER

Sorts based on the maximum Feret diameter of each edge. INFO

Collapse M_FERET_MEAN_DIAMETER

Sorts based on the average Feret diameter at all the angles checked (see M_NUMBER_OF_FERETS).

Collapse M_FERET_MIN_ANGLE

Sorts based on the minimum Feret angle of each edge. INFO

Collapse M_FERET_MIN_DIAMETER

Sorts based on the minimum Feret diameter of each edge. INFO

Collapse M_FERET_X

Sorts based on the X-Feret value of each edge. INFO

Collapse M_FERET_Y

Sorts based on the Y-Feret value of each edge. INFO

Collapse M_FIRST_POINT_X

Sorts based on the X-coordinate of each edge's first point (starting point). INFO

Collapse M_FIRST_POINT_Y

Sorts based on the Y-coordinate of each edge's first point (starting point). INFO

Collapse M_GENERAL_FERET

Sorts based on the general Feret of each edge. INFO

Collapse M_LABEL_VALUE

Sorts based on the label value of each edge in an image. INFO

Collapse M_LENGTH

Sorts based on the length of each edge. INFO

Collapse M_LINE_FIT_A

Sorts based on the coefficient A of the line that is the best fit for each edge. INFO

Collapse M_LINE_FIT_B

Sorts based on the coefficient B of the line that is the best fit for each edge. INFO

Collapse M_LINE_FIT_C

Sorts based on the coefficient C of the line that is the best fit for each edge. INFO

Collapse M_LINE_FIT_ERROR

Sorts based on the fit error of the line that is the best fit for each edge. INFO

Collapse M_MOMENT_ELONGATION

Sorts based on the moment elongation of each edge. INFO

Collapse M_MOMENT_ELONGATION_ANGLE

Sorts based on the angle of the principal axis along each edge's moment elongation (M_MOMENT_ELONGATION).

Collapse M_POSITION_X

Sorts based on the X-position of each edge. INFO

Collapse M_POSITION_Y

Sorts based on the Y-position of each edge. INFO

Collapse M_SIZE

Sorts based on the number of edgels of each edge.

Collapse M_STRENGTH

Sorts based on the strength of each edge. INFO

Collapse M_TORTUOSITY

Sorts based on the tortuosity measure of each edge. INFO

Collapse M_X_MAX_AT_Y_MAX

Sorts based on the maximum X-coordinate at the maximum Y-coordinate of each edge. INFO

Collapse M_X_MIN_AT_Y_MIN

Sorts based on the minimum X-coordinate at the minimum Y-coordinate of each edge. INFO

Collapse M_Y_MAX_AT_X_MIN

Sorts based on the maximum Y-coordinate at the minimum X-coordinate of each edge. INFO

Collapse M_Y_MIN_AT_X_MAX

Sorts based on the minimum Y-coordinate at the maximum X-coordinate of each edge. INFO

Collapse M_SORTn_UP +

Inquires the feature associated with the n th sorting key (in ascending order), where n stands for an integer between 1 and 3.

(summarize)
Collapse M_NULL

Specifies that no feature has been associated with the specified sorting key.

Collapse M_AVERAGE_STRENGTH

Sorts based on the average strength of each edge. INFO

Collapse M_BOX_X_MAX

Sorts based on the extreme right edgel coordinate of each edge.

Collapse M_BOX_X_MIN

Sorts based on the extreme left edgel coordinate of each edge.

Collapse M_BOX_Y_MAX

Sorts based on the extreme bottom edgel coordinate of each edge.

Collapse M_BOX_Y_MIN

Sorts based on the extreme top edgel coordinate of each edge.

Collapse M_CENTER_OF_GRAVITY_X

Sorts based on the X-position of each edge's center of gravity. INFO

Collapse M_CENTER_OF_GRAVITY_Y

Sorts based on the Y-position of each edge's center of gravity. INFO

Collapse M_CIRCLE_FIT_CENTER_X

Sorts based on the X-coordinate of the center of the circle that is the best fit for each edge.

Collapse M_CIRCLE_FIT_CENTER_Y

Sorts based on the Y-coordinate of the center of the circle that is the best fit for each edge.

Collapse M_CIRCLE_FIT_COVERAGE

Sorts based on the coverage of the circle that is the best fit for each edge. INFO

Collapse M_CIRCLE_FIT_ERROR

Sorts based on the fit error of the circle that is the best fit for each edge. INFO

Collapse M_CIRCLE_FIT_RADIUS

Sorts based on the radius of the circle that is the best fit for each edge.

Collapse M_CLOSURE

Sorts based on the closure state of each edge. INFO

Collapse M_CONVEX_PERIMETER

Sorts based on the convex elongation of each edge. INFO

Collapse M_ELLIPSE_FIT_ANGLE

Sorts based on the angle of the ellipse that is the best fit for each edge.

Collapse M_ELLIPSE_FIT_CENTER_X

Sorts based on the X-coordinate of the center of the ellipse that is the best fit for each edge.

Collapse M_ELLIPSE_FIT_CENTER_Y

Sorts based on the Y-coordinate of the center of the ellipse that is the best fit for each edge.

Collapse M_ELLIPSE_FIT_COVERAGE

Sorts based on the coverage of the ellipse that is the best fit for each edge. INFO

Collapse M_ELLIPSE_FIT_ERROR

Sorts based on the fit error of the ellipse that is the best fit for each edge. INFO

Collapse M_ELLIPSE_FIT_MAJOR_AXIS

Sorts based on the major axis of the ellipse that is the best fit for each edge. INFO

Collapse M_ELLIPSE_FIT_MINOR_AXIS

Sorts based on the minor axis of the ellipse that is the best fit for each edge. INFO

Collapse M_FAST_LENGTH

Sorts based on a coarse approximation for the length of each edge. INFO

Collapse M_FERET_ELONGATION

Sorts based on the Feret elongation of each edge. INFO

Collapse M_FERET_MAX_ANGLE

Sorts based on the maximum Feret angle of each edge. INFO

Collapse M_FERET_MAX_DIAMETER

Sorts based on the maximum Feret diameter of each edge. INFO

Collapse M_FERET_MEAN_DIAMETER

Sorts based on the average Feret diameter at all the angles checked (see M_NUMBER_OF_FERETS).

Collapse M_FERET_MIN_ANGLE

Sorts based on the minimum Feret angle of each edge. INFO

Collapse M_FERET_MIN_DIAMETER

Sorts based on the minimum Feret diameter of each edge. INFO

Collapse M_FERET_X

Sorts based on the X-Feret value of each edge. INFO

Collapse M_FERET_Y

Sorts based on the Y-Feret value of each edge. INFO

Collapse M_FIRST_POINT_X

Sorts based on the X-coordinate of each edge's first point (starting point). INFO

Collapse M_FIRST_POINT_Y

Sorts based on the Y-coordinate of each edge's first point (starting point). INFO

Collapse M_GENERAL_FERET

Sorts based on the general Feret of each edge. INFO

Collapse M_LABEL_VALUE

Sorts based on the label value of each edge in an image. INFO

Collapse M_LENGTH

Sorts based on the length of each edge. INFO

Collapse M_LINE_FIT_A

Sorts based on the coefficient A of the line that is the best fit for each edge. INFO

Collapse M_LINE_FIT_B

Sorts based on the coefficient B of the line that is the best fit for each edge. INFO

Collapse M_LINE_FIT_C

Sorts based on the coefficient C of the line that is the best fit for each edge. INFO

Collapse M_LINE_FIT_ERROR

Sorts based on the fit error of the line that is the best fit for each edge. INFO

Collapse M_MOMENT_ELONGATION

Sorts based on the moment elongation of each edge. INFO

Collapse M_MOMENT_ELONGATION_ANGLE

Sorts based on the angle of the principal axis along each edge's moment elongation (M_MOMENT_ELONGATION).

Collapse M_POSITION_X

Sorts based on the X-position of each edge. INFO

Collapse M_POSITION_Y

Sorts based on the Y-position of each edge. INFO

Collapse M_SIZE

Sorts based on the number of edgels of each edge.

Collapse M_STRENGTH

Sorts based on the strength of each edge. INFO

Collapse M_TORTUOSITY

Sorts based on the tortuosity measure of each edge. INFO

Collapse M_X_MAX_AT_Y_MAX

Sorts based on the maximum X-coordinate at the maximum Y-coordinate of each edge. INFO

Collapse M_X_MIN_AT_Y_MIN

Sorts based on the minimum X-coordinate at the minimum Y-coordinate of each edge. INFO

Collapse M_Y_MAX_AT_X_MIN

Sorts based on the maximum Y-coordinate at the minimum X-coordinate of each edge. INFO

Collapse M_Y_MIN_AT_X_MAX

Sorts based on the minimum Y-coordinate at the maximum X-coordinate of each edge. INFO

To inquire about general Edge Finder context settings, set the InquireType parameter to one of the values below. These values can be specified for both M_CONTOUR and M_CREST Edge Finder contexts.

Unless otherwise specified, the following values require that you pass the UserVarPtr parameter the address of a MIL_DOUBLE.

function map For general settings (both M_CONTOUR and M_CREST)
CollapseInquireType Description
UserVarPtr
- Possible values returned
Collapse M_CONTEXT_TYPE +

Inquires the type of the Edge Finder context. SET

(summarize)
Collapse M_CONTOUR

Specifies a contour context type, which is used to find object contours in images.

Collapse M_CREST

Specifies a crest context type, which is used to find thin line crests in images.

Collapse M_FILTER_POWER +

Inquires the power of the filter used to extract edges. This indicates the decreasing factor of the noise variance. In the following formula, h represents the filter values. The sum is computed over the filter support region. This region can be finite or infinite; it includes the neighboring image elements that are taken into account when computing the output image element.

(summarize)
Collapse Value

Specifies the power of the filter used to extract edges.

Collapse M_MASK_SIZE_X +

Inquires the X-size of the mask.

(summarize)
Collapse M_NULL

Specifies that no mask has been set using MedgeMask().

Collapse Value

Specifies the X-size of the mask, in pixels.

Collapse M_MASK_SIZE_Y +

Inquires the Y-size of the mask.

(summarize)
Collapse M_NULL

Specifies that no mask has been set using MedgeMask().

Collapse Value

Specifies the Y-size of the mask, in pixels.

To inquire about the values used to calculate Feret settings, set the InquireType parameter to one of the values below. These values can be specified for both M_CONTOUR and M_CREST Edge Finder contexts.

function map For Feret settings (both M_CONTOUR and M_CREST)
CollapseInquireType Description
UserVarPtr
- Possible values returned
Collapse M_FERET_ANGLE_SEARCH_END +

Inquires the end of the angular range at which to search for Feret diameters. The angular range is used to calculate the following Feret features: M_FERET_MAX_DIAMETER, M_FERET_MIN_DIAMETER, M_FERET_MAX_ANGLE, and M_FERET_MIN_ANGLE. SET

(summarize)
Collapse UserVarPtr data type info

Data type: MIL_DOUBLE

Collapse M_DEFAULT

Specifies the default value; the default value is 360.0°.

Collapse 0.0 <= Value <= 360.0

Specifies the end of the angular region.

Collapse M_FERET_ANGLE_SEARCH_START +

Inquires the start of the angular range at which to search for Feret diameters. The angular range is used to calculate the following Feret features: M_FERET_MAX_DIAMETER, M_FERET_MIN_DIAMETER, M_FERET_MAX_ANGLE, and M_FERET_MIN_ANGLE. SET

(summarize)
Collapse UserVarPtr data type info

Data type: MIL_DOUBLE

Collapse M_DEFAULT

Specifies the default value; the default value is 0.0°.

Collapse 0.0 <= Value <= 360.0

Specifies the start of the angular region.

Collapse M_GENERAL_FERET_ANGLE +

Inquires the angle at which to calculate M_GENERAL_FERET. SET

(summarize)
Collapse UserVarPtr data type info

Data type: MIL_DOUBLE

Collapse M_DEFAULT

Specifies the default value; the default value is 0.0°.

Collapse M_MOMENT_ELONGATION_ANGLE + n

Specifies to use the moment elongation angle plus the offset n. INFO

Collapse 0.0 <= Value <= 360.0

Specifies the angle, in degrees.

Collapse M_NUMBER_OF_FERETS +
Collapse UserVarPtr data type info

Data type: MIL_DOUBLE

Collapse M_DEFAULT

Specifies the default value; the default value is 8.

Collapse Value

Specifies the number of Ferets.

To inquire about the settings used when performing post-calculations on extracted edges, set the InquireType parameter to one of the values below. These values can be specified for both M_CONTOUR and M_CREST Edge Finder contexts.

Unless otherwise specified, the following values require that you pass the UserVarPtr parameter the address of a MIL_DOUBLE.

function map For post-calculations (both M_CONTOUR and M_CREST)
CollapseInquireType Description
UserVarPtr
- Possible values returned
Collapse M_APPROXIMATION_TOLERANCE +

Inquires the resolution of the edge approximation. SET

(summarize)
Collapse M_DEFAULT

Specifies the default value; the default value is 50.0.

Collapse 0.0 <= Value <= 100.0

Specifies the resolution. INFO

Collapse M_CHAIN_APPROXIMATION +

Inquires the simple geometric features used to approximate edges. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the edge approximation will not be performed. INFO

Collapse M_LINE

Specifies that the edge approximation will be performed using a polygonal segmentation of each edge. INFO

Collapse M_FILL_GAP_ANGLE +

Inquires the aperture angle where Edge Finder searches for edge extremity candidates when filling edge gaps. SET

(summarize)
Collapse M_DEFAULT

Specifies the default value; the default value is 360.0°.

Collapse 0.0 <= Value <= 360.0

Specifies the aperture angle, in degrees.

Collapse M_FILL_GAP_CANDIDATE +

Inquires whether an edge extremity is filled with the other extremity of the same edge, or with an extremity of any edge. SET

(summarize)
Collapse M_DEFAULT

Same as M_ANY.

Collapse M_ANY

Specifies that the extremity of an edge can be connected with the extremity of any edge.

Collapse M_SAME

Specifies that the extremity of an edge can only be connected with the other extremity of the same edge.

Collapse M_FILL_GAP_CONTINUITY +

Inquires the continuity constraint used when performing edge gap filling, when more than one edge extremity candidate is present. SET

(summarize)
Collapse M_DEFAULT

Specifies the default value; the default value is 50.0.

Collapse 0.0 <= Value <= 100.0

Specifies the continuity constraint. INFO

Collapse M_FILL_GAP_DISTANCE +

Inquires the maximum distance radius where Edge Finder searches for edge extremity candidates when filling edge gaps. SET

(summarize)
Collapse M_DEFAULT

Specifies the default value; the default value is 0.0 pixels.

Collapse M_INFINITE

Specifies an infinite maximum distance radius.

Collapse Value

Specifies the maximum distance radius, in pixels. INFO

Collapse M_FILL_GAP_POLARITY +

Inquires the polarity constraint used when performing the filling of edge gaps. SET

(summarize)
Collapse M_DEFAULT

Same as M_ANY.

Collapse M_ANY

Specifies that gaps between edges will be filled, regardless of their polarity.

Collapse M_REVERSE

Specifies that gaps between edges that have reverse polarity will be filled. INFO

Collapse M_SAME

Specifies that gaps between edges that have the same polarity will be filled. INFO

To inquire about general Edge Finder result buffer settings, set the InquireType parameter to one of the following values:

Unless otherwise specified, the following values require that you pass the UserVarPtr parameter the address of a MIL_DOUBLE.

function map For result buffer settings (general)
CollapseInquireType Description
UserVarPtr
- Possible values returned
Collapse M_DRAW_CROSS_SIZE +

Inquires the size of the cross used for certain drawing operations. For example, M_DRAW_EDGELS, M_DRAW_POSITION, and M_DRAW_CENTER_OF_GRAVITY are drawn using this cross. SET

(summarize)
Collapse M_DEFAULT

Specifies the default value; the default value is 4.0 pixels.

Collapse Value

Specifies the size of the cross, in pixels.

Collapse M_MODEL_FINDER_COMPATIBLE +

Inquires whether the Edge Finder result buffer is ready to be used with a Model Finder context. SET

(summarize)
Collapse M_DEFAULT

Same as M_DISABLE.

Collapse M_DISABLE

Specifies that the Edge Finder result buffer cannot be used with a Model Finder context.

Collapse M_ENABLE

Specifies that the Edge Finder result buffer can be used with a Model Finder context.

Collapse M_NEAREST_NEIGHBOR_RADIUS +

Inquires the radius distance used to select (MedgeSelect()) the closest edge or edges from a point. SET

(summarize)
Collapse M_DEFAULT

Specifies the default value; the default value is 2.0 pixels.

Collapse Value

Specifies the radius distance, in pixels.

Collapse M_RESULT_OUTPUT_UNITS +

Inquires whether results are returned in pixel or world units. SET

(summarize)
Collapse M_DEFAULT

Same as M_ACCORDING_TO_CALIBRATION.

Collapse M_ACCORDING_TO_CALIBRATION

Specifies that results are returned in world units if the result was calculated on an image associated with a calibration context; otherwise, specifies that results are returned in pixel units.

Collapse M_PIXEL

Specifies that results are returned in pixel units, with respect to the pixel coordinate system.

Collapse M_WORLD

Specifies that results are returned in world units, with respect to the relative coordinate system. INFO

To inquire about Edge Finder result buffer settings used when performing closest-edgel operations with MedgeGetNeighbors(), set the InquireType parameter to one of the values below.

Unless otherwise specified, the following values require that you pass the UserVarPtr parameter the address of a MIL_DOUBLE.

function map For result buffer settings (closest-edgel operations)
CollapseInquireType Description
UserVarPtr
- Possible values returned
Collapse M_NEIGHBOR_ANGLE +

Inquires the gradient angle that an edgel must have, before being considered a candidate, when finding the closest edgels to a list of points. SET

(summarize)
Collapse M_DEFAULT

Same as M_ANY.

Collapse M_ANY

Specifies that the edgel candidate can have any gradient angle. INFO

Collapse M_REVERSE

Specifies that the gradient angle of the edgel candidate must have the reverse angle (+ 180°) of the source point.

Collapse M_SAME

Specifies that the gradient angle of the edgel candidate must have the same angle as the source point.

Collapse M_SAME_OR_REVERSE

Specifies that the gradient angle of the edgel candidate must either have the same, or the reverse angle of the source point.

Collapse M_NEIGHBOR_ANGLE_TOLERANCE +

Inquires the angular tolerance used for the angle constraint (M_NEIGHBOR_ANGLE), when finding the closest edgels to a list of points. SET

(summarize)
Collapse M_DEFAULT

Specifies the default value; the default value is 180.0°.

Collapse 0.0 <= Value <= 360.0

Specifies the angular tolerance, in degrees. INFO

Collapse M_NEIGHBOR_MAXIMUM_NUMBER +

Inquires the maximum number of closest edgel candidates that can be returned (for each source point), when finding the closest edgels to a list of points. SET

(summarize)
Collapse M_DEFAULT

Specifies the default value; the default value is 1.

Collapse Value

Specifies the maximum number of edgels.

Collapse M_NEIGHBOR_MINIMUM_SPACING +

Inquires the minimum distance separating edgels within the same edge, in order for each to be considered potential candidates, when finding the closest edgels to a list of points. SET

(summarize)
Collapse M_DEFAULT

Same as M_INFINITE.

Collapse M_INFINITE

Specifies no minimum distance separating two edgel candidates.

Collapse Value >= 1

Specifies the minimum distance, in edgels.

Collapse M_SEARCH_ANGLE +

Inquires the search angle constraint (applied the Edge Finder result buffer), when finding the closest edgels to a list of points. SET

(summarize)
Collapse M_DEFAULT

Specifies the default value; the default value is 0.0°.

Collapse 0.0 <= Value <= 360.0

Specifies the angle, in degrees.

Collapse M_SEARCH_ANGLE_SIGN +

Inquires the orientation to use for the search angle constraint, when finding the closest edgels to a list of points. SET

(summarize)
Collapse M_DEFAULT

Same as M_SAME.

Collapse M_REVERSE

Specifies that the orientation of the angle must be the reverse (+ 180°) of the source angle. INFO

Collapse M_SAME

Specifies that the orientation of the angle must be the same as the source angle.

Collapse M_SAME_OR_REVERSE

Specifies that the orientation of the angle can be the same as, or the reverse of, the source angle.

Collapse M_SEARCH_ANGLE_TOLERANCE +

Inquires the angular tolerance used for the search angle constraint, when finding the closest edgels to a list of points. SET

(summarize)
Collapse M_DEFAULT

Specifies the default value; the default value is 360.0°.

Collapse 0.0 <= Value <= 360.0

Specifies the angle, in degrees.

Collapse M_SEARCH_RADIUS_MAX +

Inquires the maximum radius distance used to search for the closest edgel candidates that match source edgels. SET

(summarize)
Collapse M_DEFAULT

Same as M_INFINITE.

Collapse M_INFINITE

Specifies a maximum distance radius that spans all edgels in the Edge Finder result buffer.

Collapse Value

Specifies the maximum distance radius, in pixels.

Collapse M_SEARCH_RADIUS_MIN +

Inquires the minimum radius distance used to search for the closest edgel candidates that match source edgels. SET

(summarize)
Collapse M_DEFAULT

Specifies the default value; the default value is 0 pixels.

Collapse Value

Specifies the minimum distance radius, in pixels.

To inquire about the system on which either the Edge Finder context or Edge Finder result buffer has been allocated, set the InquireType parameter to the value below.

Unless otherwise specified, the following values require that you pass the UserVarPtr parameter the address of a MIL_DOUBLE.

function map For inquiring about the system
CollapseInquireType Description
UserVarPtr
- Possible values returned
Collapse M_OWNER_SYSTEM +

Inquires the identifier of the system on which either the Edge Finder context or Edge Finder result buffer has been allocated. SET SET

(summarize)
Collapse M_DEFAULT_HOST

Specifies the default Host system of the current MIL application.

Collapse MIL system identifier

Specifies a valid system identifier, previously allocated using MsysAlloc().

You can add the following value to the above-mentioned values to get the default value of an inquire type, regardless of the current value of the inquire type.

function map For inquiring the default value
CollapseInquireType Description
UserVarPtr
- Possible values returned
Collapse M_DEFAULT

Inquires the default value of the specified inquire type.

(summarize)
Collapse UserVarPtr data type info

Data type: MIL_DOUBLE

You can add the following value to the above-mentioned values to determine whether an inquire type is sortable or supported for the Edge Finder context currently being inquired.

Note that to inquire if an inquire type is sortable, you must add M_SUPPORTED to the appropriate sort value (M_SORTn_UP or M_SORTn_DOWN) and the specified inquire type (for example, M_SIZE + M_SORTn_UP + M_SUPPORTED). If the inquire type is not supported for the Edge Finder context, or sortable, M_NULL is returned.

function map For inquiring if an inquire type is sortable or is supported
CollapseInquireType Description
UserVarPtr
- Possible values returned
Collapse M_SUPPORTED

Inquires whether the specified inquire type is either sortable, or supported for the Edge Finder context.

(summarize)
Collapse UserVarPtr data type info

Data type: MIL_DOUBLE

Collapse M_NULL

Specifies that the inquire type is not sortable, or is not supported.

Collapse Value != 0

Specifies that the inquire type is sortable, or is supported.

You can add one of the following values to the above-mentioned values to cast the requested information to a required data type.

function map For specifying the data type
CollapseInquireType Description
UserVarPtr
- Possible values returned
Collapse M_TYPE_MIL_DOUBLE

Casts the requested information to a MIL_DOUBLE.

(summarize)
Collapse UserVarPtr data type info

Data type: MIL_DOUBLE

Collapse M_TYPE_MIL_ID

Casts the requested information to a MIL_ID. Note that M_TYPE_MIL_ID should only be used with M_OWNER_SYSTEM.

(summarize)
Collapse UserVarPtr data type info

Data type: MIL_ID

Collapse M_TYPE_MIL_INT

Casts the requested information to a MIL_INT.

(summarize)
Collapse UserVarPtr data type info

Data type: MIL_INT

Collapse M_TYPE_MIL_INT32

Casts the requested information to a MIL_INT32.

(summarize)
Collapse UserVarPtr data type info

Data type: MIL_INT32

Collapse M_TYPE_MIL_INT64

Casts the requested information to a MIL_INT64.

(summarize)
Collapse UserVarPtr data type info

Data type: MIL_INT64

Return value
The returned value is the requested information, cast to a MIL_INT.
Compilation information
Header Include mil.h.
Library Use mil.lib; miledge.lib.
DLL Requires mil.dll; miledge.dll.
ACCURACY DEFAULT DISABLE HIGH VERY HIGH ANGLE ACCURACY DEFAULT HIGH LOW CHAIN ALL NEIGHBORS DEFAULT DISABLE ENABLE EXTRACTION SCALE DEFAULT FILTER SMOOTHNESS DEFAULT FILTER TYPE DEFAULT DERICHE FREI CHEN PREWITT SHEN SOBEL FLOAT MODE DEFAULT DISABLE ENABLE KERNEL SIZE MAGNITUDE TYPE DEFAULT NORM SQR NORM MODIFICATION COUNT OVERSCAN DEFAULT DISABLE MIRROR REPLACE TRANSPARENT OVERSCAN REPLACE VALUE DEFAULT REPLACE MAX REPLACE MIN THRESHOLD HIGH DEFAULT THRESHOLD LOW DEFAULT THRESHOLD MODE DEFAULT DISABLE HIGH LOW MEDIUM USER DEFINED VERY HIGH THRESHOLD TYPE DEFAULT FULL HYSTERESIS HYSTERESIS NO HYSTERESIS TIMEOUT DEFAULT DISABLE FOREGROUND VALUE DEFAULT ANY FOREGROUND BLACK FOREGROUND WHITE SAVE ANGLE DEFAULT DISABLE ENABLE SAVE CHAIN ANGLE DEFAULT DISABLE ENABLE SAVE CHAIN MAGNITUDE DEFAULT DISABLE ENABLE SAVE DERIVATIVES DEFAULT DISABLE ENABLE SAVE IMAGE DEFAULT DISABLE ENABLE SAVE MAGNITUDE DEFAULT DISABLE ENABLE SAVE MASK DEFAULT DISABLE ENABLE AVERAGE STRENGTH DEFAULT DISABLE ENABLE BOX X MAX DEFAULT DISABLE ENABLE BOX X MIN DEFAULT DISABLE ENABLE BOX Y MAX DEFAULT DISABLE ENABLE BOX Y MIN DEFAULT DISABLE ENABLE CENTER OF GRAVITY X DEFAULT DISABLE ENABLE CENTER OF GRAVITY Y DEFAULT DISABLE ENABLE CIRCLE FIT CENTER X DEFAULT DISABLE ENABLE CIRCLE FIT CENTER Y DEFAULT DISABLE ENABLE CIRCLE FIT COVERAGE DEFAULT DISABLE ENABLE CIRCLE FIT ERROR DEFAULT DISABLE ENABLE CIRCLE FIT RADIUS DEFAULT DISABLE ENABLE CLOSURE DEFAULT DISABLE ENABLE CONVEX PERIMETER DEFAULT DISABLE ENABLE ELLIPSE FIT ANGLE DEFAULT DISABLE ENABLE ELLIPSE FIT CENTER X DEFAULT DISABLE ENABLE ELLIPSE FIT CENTER Y DEFAULT DISABLE ENABLE ELLIPSE FIT COVERAGE DEFAULT DISABLE ENABLE ELLIPSE FIT ERROR DEFAULT DISABLE ENABLE ELLIPSE FIT MAJOR AXIS DEFAULT DISABLE ENABLE ELLIPSE FIT MINOR AXIS DEFAULT DISABLE ENABLE FAST LENGTH DEFAULT DISABLE ENABLE FERET ELONGATION DEFAULT DISABLE ENABLE FERET MAX ANGLE DEFAULT DISABLE ENABLE FERET MAX DIAMETER DEFAULT DISABLE ENABLE FERET MEAN DIAMETER DEFAULT DISABLE ENABLE FERET MIN ANGLE DEFAULT DISABLE ENABLE FERET MIN DIAMETER DEFAULT DISABLE ENABLE FERET X DEFAULT DISABLE ENABLE FERET Y DEFAULT DISABLE ENABLE FIRST POINT X DEFAULT DISABLE ENABLE FIRST POINT Y DEFAULT DISABLE ENABLE GENERAL FERET DEFAULT DISABLE ENABLE LABEL VALUE DEFAULT DISABLE ENABLE LENGTH DEFAULT DISABLE ENABLE LINE FIT A DEFAULT DISABLE ENABLE LINE FIT B DEFAULT DISABLE ENABLE LINE FIT C DEFAULT DISABLE ENABLE LINE FIT ERROR DEFAULT DISABLE ENABLE MOMENT ELONGATION DEFAULT DISABLE ENABLE MOMENT ELONGATION ANGLE DEFAULT DISABLE ENABLE POSITION X DEFAULT DISABLE ENABLE POSITION Y DEFAULT DISABLE ENABLE SIZE DEFAULT DISABLE ENABLE STRENGTH DEFAULT DISABLE ENABLE TORTUOSITY DEFAULT DISABLE ENABLE X MAX AT Y MAX DEFAULT DISABLE ENABLE X MIN AT Y MIN DEFAULT DISABLE ENABLE Y MAX AT X MIN DEFAULT DISABLE ENABLE Y MIN AT X MAX DEFAULT DISABLE ENABLE SORTn DOWN NULL AVERAGE STRENGTH BOX X MAX BOX X MIN BOX Y MAX BOX Y MIN CENTER OF GRAVITY X CENTER OF GRAVITY Y CIRCLE FIT CENTER X CIRCLE FIT CENTER Y CIRCLE FIT COVERAGE CIRCLE FIT ERROR CIRCLE FIT RADIUS CLOSURE CONVEX PERIMETER ELLIPSE FIT ANGLE ELLIPSE FIT CENTER X ELLIPSE FIT CENTER Y ELLIPSE FIT COVERAGE ELLIPSE FIT ERROR ELLIPSE FIT MAJOR AXIS ELLIPSE FIT MINOR AXIS FAST LENGTH FERET ELONGATION FERET MAX ANGLE FERET MAX DIAMETER FERET MEAN DIAMETER FERET MIN ANGLE FERET MIN DIAMETER FERET X FERET Y FIRST POINT X FIRST POINT Y GENERAL FERET LABEL VALUE LENGTH LINE FIT A LINE FIT B LINE FIT C LINE FIT ERROR MOMENT ELONGATION MOMENT ELONGATION ANGLE POSITION X POSITION Y SIZE STRENGTH TORTUOSITY X MAX AT Y MAX X MIN AT Y MIN Y MAX AT X MIN Y MIN AT X MAX SORTn UP NULL AVERAGE STRENGTH BOX X MAX BOX X MIN BOX Y MAX BOX Y MIN CENTER OF GRAVITY X CENTER OF GRAVITY Y CIRCLE FIT CENTER X CIRCLE FIT CENTER Y CIRCLE FIT COVERAGE CIRCLE FIT ERROR CIRCLE FIT RADIUS CLOSURE CONVEX PERIMETER ELLIPSE FIT ANGLE ELLIPSE FIT CENTER X ELLIPSE FIT CENTER Y ELLIPSE FIT COVERAGE ELLIPSE FIT ERROR ELLIPSE FIT MAJOR AXIS ELLIPSE FIT MINOR AXIS FAST LENGTH FERET ELONGATION FERET MAX ANGLE FERET MAX DIAMETER FERET MEAN DIAMETER FERET MIN ANGLE FERET MIN DIAMETER FERET X FERET Y FIRST POINT X FIRST POINT Y GENERAL FERET LABEL VALUE LENGTH LINE FIT A LINE FIT B LINE FIT C LINE FIT ERROR MOMENT ELONGATION MOMENT ELONGATION ANGLE POSITION X POSITION Y SIZE STRENGTH TORTUOSITY X MAX AT Y MAX X MIN AT Y MIN Y MAX AT X MIN Y MIN AT X MAX CONTEXT TYPE CONTOUR CREST FILTER POWER MASK SIZE X NULL MASK SIZE Y NULL FERET ANGLE SEARCH END DEFAULT FERET ANGLE SEARCH START DEFAULT GENERAL FERET ANGLE DEFAULT MOMENT ELONGATION ANGLE n NUMBER OF FERETS DEFAULT APPROXIMATION TOLERANCE DEFAULT CHAIN APPROXIMATION DEFAULT DISABLE LINE FILL GAP ANGLE DEFAULT FILL GAP CANDIDATE DEFAULT ANY SAME FILL GAP CONTINUITY DEFAULT FILL GAP DISTANCE DEFAULT INFINITE FILL GAP POLARITY DEFAULT ANY REVERSE SAME DRAW CROSS SIZE DEFAULT MODEL FINDER COMPATIBLE DEFAULT DISABLE ENABLE NEAREST NEIGHBOR RADIUS DEFAULT RESULT OUTPUT UNITS DEFAULT ACCORDING TO CALIBRATION PIXEL WORLD NEIGHBOR ANGLE DEFAULT ANY REVERSE SAME SAME OR REVERSE NEIGHBOR ANGLE TOLERANCE DEFAULT NEIGHBOR MAXIMUM NUMBER DEFAULT NEIGHBOR MINIMUM SPACING DEFAULT INFINITE SEARCH ANGLE DEFAULT SEARCH ANGLE SIGN DEFAULT REVERSE SAME SAME OR REVERSE SEARCH ANGLE TOLERANCE DEFAULT SEARCH RADIUS MAX DEFAULT INFINITE SEARCH RADIUS MIN DEFAULT OWNER SYSTEM DEFAULT HOST DEFAULT SUPPORTED NULL TYPE MIL DOUBLE TYPE MIL ID TYPE MIL INT TYPE MIL INT32 TYPE MIL INT64