Skip to main content

M3dmeasInquire

BoardSupported
Host SystemYes
V4L2Yes
Clarity UHDYes
Concord PoENo
GenTLYes
GevIQYes
GigE VisionYes
IndioNo
Iris GTXYes
Radient eV-CLYes
Rapixo CLYes
Rapixo CoFYes
Rapixo CXPYes
USB3 VisionYes

Inquire information about a 3D measurement context.

Syntax

AIL_INT64 M3dmeasInquire(
AIL_ID Context3dmeasId, //in
AIL_INT64 PathOrTemplateIndex, //in
AIL_INT64 ProfileIndex, //in
AIL_INT64 InquireType, //in
void * UserVarPtr //out
)

Description

This function inquires information about a 3D measurement context.

To retrieve results from a 3D measurement result buffer, use M3dmeasGetResult.

To inquire about draw 3D measurement settings for M3dmeasDraw3d, use M3dmeasInquireDraw instead.

Parameters

Context3dmeasId (in, AIL_ID)

Specifies the identifier of the 3D measurement context to inquire. The 3D measurement context must have been previously allocated on the required system using M3dmeasAlloc.

PathOrTemplateIndex (in, AIL_INT64)

Specifies that information will be inquired about a 3D measurement context, a path, a template, or a default template. Set this parameter to one of the following values:

For specifying what to inquire

ValueDescription
M_DEFAULT
M_PATH_INDEXSpecifies to inquire about an individual path in a path 3D measurement context, if one is specified.
M_TEMPLATE_INDEXSpecifies to inquire about an individual template in a template 3D measurement context, if one is specified.
M_CONTEXT (default)Specifies to inquire about a global setting of a 3D measurement context.
M_DEFAULT_TEMPLATESpecifies to inquire about the default template in a profile 3D measurement context, if one is specified.

Note that the default template in a profile 3D measurement context is different from an explicitly defined template in a template 3D measurement context. The default template is inherent to the supplied profiles, such that it is the theoretical template that would result in these profiles. Note, unlike for the profiles perpendicular to the template in a template 3D measurement context, multiple markers can be found along the profiles perpendicular to the default template in a profile 3D measurement context. |

ProfileIndex (in, AIL_INT64)

Specifies the profile to inquire about, if required. Set this parameter to one of the following values:

For specifying a profile

ValueDescription
M_DEFAULTSpecifies that the index of a profile is not required.
M_PROFILE_INDEXSpecifies to inquire about an individual profile in a template 3D measurement context, if one is specified.

InquireType (in, AIL_INT64)

Specifies the type of information about which to inquire.

UserVarPtr *(out, void)

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

Parameter Associations

For inquiring about a global setting of a profile, path, or template 3D measurement context

For a profile, path, or template 3D measurement context, the InquireType parameter can be set to one of the following to inquire about a global setting. PathOrTemplateIndex must be set to M_DEFAULT or M_CONTEXT, and ProfileIndex must be set to M_DEFAULT.


M_TIMEOUT

Inquires the maximum amount of time for M3dmeasFindMarker or M3dmeasFit to complete the find marker operation before generating a time-out error.

ValueDescription
M_DEFAULT
M_DISABLE (default)Specifies that there is no timeout value.
Value > 0.0Specifies the timeout value, in msec.

For inquiring about the default template in a profile 3D measurement context, path in a path 3D measurement context, or template in a template 3D measurement context

For the default template in a profile 3D measurement context, a path in a path 3D measurement context, or a template in a template 3D measurement context, the InquireType parameter can be set to one of the following. PathOrTemplateIndex must be set to M_DEFAULT_TEMPLATE, the index of a path, or the index of a template, respectively, and ProfileIndex must be set to M_DEFAULT.


M_MARKER_DEPTH_MIN

Inquires the minimum depth required for a peak or valley in the profile response, for it to be considered a valid transition signifying a marker.

ValueDescription
M_DEFAULT
Value >= 0.0 (default)Specifies the minimum depth.

M_MARKER_NUMBER

Inquires the number of markers to search for in the profile. Note that this inquire type is not available for a template 3D measurement context. In this case, the find marker operation always looks for 1 marker in each perpendicular profile of the template.

ValueDescription
M_DEFAULT
M_ALLSpecifies to search for all markers.
Value > 0 (default)Specifies the number of markers for which to search.

M_MARKER_NUMBER_TRANSITION_INSIDE

Inquires the number of transitions to find inside a marker. > Note: This inquire type is only available when M_MARKER_TYPE is set to M_PAIR.

ValueDescription
M_DEFAULT
M_ANY (default)Specifies to find markers with any number of transitions.
Value > 0Specifies the number of transitions.

M_MARKER_POLARITY

Inquires the polarity of the transition to find. This is the polarity of the sole transition for an M_SINGLE marker and the first transition for an M_PAIR marker.

ValueDescription
M_DEFAULT
M_ANYSpecifies to find a transition with any polarity.
M_NEGATIVESpecifies to find a transition with negative polarity.
M_POSITIVE (default)Specifies to find a transition with positive polarity.

M_MARKER_POLARITY_SECOND

Inquires the polarity of the second transition to find. This is the polarity of the second transition for an M_PAIR marker. > Note: This inquire type is only available when M_MARKER_TYPE is set to M_PAIR.

ValueDescription
M_DEFAULT
M_ANYSpecifies to find a transition with any polarity.
M_NEGATIVESpecifies to find a transition with negative polarity.
M_OPPOSITE (default)Specifies to find a transition with the opposite polarity of the first transition.
M_POSITIVESpecifies to find a transition with positive polarity.
M_SAMESpecifies to find a transition with the same polarity as the first transition.

M_MARKER_POSITION_INVALID

Inquires where to identify a transition when an invalid region is encountered in the profile.

ValueDescription
M_DEFAULT
M_AFTERSpecifies that the transition is immediately after the gap.
M_BEFORESpecifies that the transition is immediately before the gap.
M_BOTH (default)Specifies that there is one transition immediately before and one transition immediately after the gap.
M_MIDDLESpecifies that the transition is in the middle of the gap.

M_MARKER_POSITION_RELATIVE

Inquires the position that the markers should be closest to when M_MARKER_SELECTION is set to M_POSITION_RELATIVEand the number of candidates is greater than M_MARKER_NUMBER. Note that this also inquires the relative position used when calculating the M3dmeasGetResult M_OFFSET result type.

ValueDescription
M_DEFAULT
0.0 <= Value <= 100.0 (default)Specifies the position, as a percentage of the nominal profile length.

M_MARKER_SELECTION

Inquires the policy used to select found markers when the number of candidates is greater than M_MARKER_NUMBER.

ValueDescription
M_DEFAULT
M_BEST_FITSpecifies to use a different selection criteria depending on the operation.When performing an M3dmeasFindMarker operation, M_BEST_FIT specifies to select markers according to their proximity to the profile's origin; the closest marker is selected first. When performing an M3dmeasFit operation with a template 3D measurement context, M_BEST_FIT specifies to select markers according to possible resulting fit scores; the marker that would result in the best fit possible is selected first.
M_CLOSEST_TO_SPACINGSpecifies to select markers according to their similarity to the spacing set using M_MARKER_SPACING_RELATIVE; the marker with the closest spacing is selected first.
M_CLOSEST_TO_WIDTHSpecifies to select markers according to their similarity to the width set using M_MARKER_WIDTH_RELATIVE; the marker with the closest width is selected first.
M_NARROWESTSpecifies to select markers according to their width; the narrowest marker is selected first.
M_POSITION_FIRSTSpecifies to select markers according to their proximity to the profile's origin; the closest marker is selected first.
M_POSITION_LASTSpecifies to select markers according to their proximity to the end of the profile; the closest marker is selected first.
M_POSITION_RELATIVESpecifies to select markers according to their proximity to the position set using M_MARKER_POSITION_RELATIVE; the closest marker is selected first.
M_STRONGEST (default)Specifies to select markers according to the strength of the transition; the marker with the strongest transition is selected first.
M_TALLESTSpecifies to select markers according to their measured depth; the marker with the greatest depth is selected first.
M_WIDESTSpecifies to select markers according to their width; the widest marker is selected first.

M_MARKER_SPACING_RELATIVE

Inquires the spacing that the marker's spacing should be closest to when M_MARKER_SELECTION is set to M_CLOSEST_TO_SPACINGand the number of candidates is greater than M_MARKER_NUMBER.

ValueDescription
M_DEFAULT
0.0 <= Value <= 100.0 (default)Specifies the spacing, as a percentage of the nominal profile length.

M_MARKER_STRENGTH_MIN

Inquires the minimum strength required for a peak or valley in the profile response, for it to be considered a valid transition signifying a marker.

ValueDescription
M_DEFAULT
0.0 <= Value <= 100.0 (default)Specifies the minimum strength.

M_MARKER_STRENGTH_MIN_VAR

Inquires the minimum prominence required for a peak or valley in the profile response, for it to be considered a valid transition signifying a marker.

ValueDescription
M_DEFAULT
0.0 <= Value <= 100.0 (default)Specifies the minimum prominence.

M_MARKER_TRANSITION

Inquires the type of transition to find.

ValueDescription
M_DEFAULT
M_EDGE (default)Specifies to find edge transitions.
M_EDGE_OR_INVALIDSpecifies to find edge transitions and invalid transitions.
M_INVALIDSpecifies to find invalid transitions.
M_RIDGESpecifies to find ridge transitions.

M_MARKER_TYPE

Inquires the type of marker to extract from the profile.

ValueDescription
M_DEFAULT
M_PAIRSpecifies to extract markers represented by a pair of transitions.
M_SINGLE (default)Specifies to extract markers represented by a single transition.

M_MARKER_WIDTH_RELATIVE

Inquires the width that the marker's width should be closest to when M_MARKER_SELECTION is set to M_CLOSEST_TO_WIDTHand the number of candidates is greater than M_MARKER_NUMBER.

ValueDescription
M_DEFAULT
0.0 <= Value <= 100.0 (default)Specifies the width, as a percentage of the nominal profile length.

M_PROFILE_FILTER_SMOOTHNESS

Inquires the normalized degree of smoothness (strength of denoising) applied to the profile to create the profile response before finding the markers. > Note: This inquire type is only used when M_PROFILE_FILTER_SMOOTHNESS_TYPE is set to M_NORMALIZED.

ValueDescription
M_DEFAULT
0.0 <= Value <= 100.0 (default)Specifies the smoothness value.

M_PROFILE_FILTER_SMOOTHNESS_SIZE

Inquires the smoothness size applied to the profile to create the profile response before finding the markers. > Note: This inquire type is only used when M_PROFILE_FILTER_SMOOTHNESS_TYPE is set to M_SIZE.

ValueDescription
M_DEFAULT
Value >= 2.0 (default)Specifies the smoothness size.

M_PROFILE_FILTER_SMOOTHNESS_TYPE

Inquires the filter smoothness type.

ValueDescription
M_DEFAULT
M_NORMALIZED (default)Specifies to apply a normalized filter smoothness, set with M_PROFILE_FILTER_SMOOTHNESS.
M_SIZESpecifies to apply a filter smoothness size, set with M_PROFILE_FILTER_SMOOTHNESS_SIZE.

M_PROFILE_GAP_FILL_SHARP_ELEVATION

Inquires how to fill sharp elevation gaps.

ValueDescription
M_DEFAULT
M_AFTERSpecifies to fill the gap with the value of the boundary after the gap.
M_BEFORESpecifies to fill the gap with the value of the boundary before the gap.
M_DISABLE (default)Specifies not to fill sharp elevation gaps.
M_MAXSpecifies to fill the gap with the maximum gap boundary value.
M_MIDDLESpecifies to fill the first half with the value of the boundary before the gap and the second half with the value of the boundary after the gap.
M_MINSpecifies to fill the gap with the minimum gap boundary value.

M_PROFILE_GAP_FILL_SHARP_ELEVATION_DEPTH

Inquires the threshold used to differentiate between gradual elevation gaps and sharp elevation gaps.

ValueDescription
M_DEFAULT
M_INFINITE (default)Specifies that the threshold is infinite.
Value >= 0.0Specifies the threshold, as a percentage of the depth map's Z-range or in world units, depending on the units specified with M_PROFILE_GAP_FILL_SHARP_ELEVATION_DEPTH_UNITS.

M_PROFILE_GAP_FILL_SHARP_ELEVATION_DEPTH_UNITS

Inquires the units with which to interpret the M_PROFILE_GAP_FILL_SHARP_ELEVATION_DEPTH inquire type.

ValueDescription
M_DEFAULT
M_PERCENTAGE (default)Specifies to interpret the value as a percentage of the range of Z-values (Z-range) visible in the depth map.
M_WORLDSpecifies to interpret the value in world units.

M_PROFILE_GAP_FILL_THRESHOLD

Inquires the maximum size of gaps that will be filled.

ValueDescription
M_DEFAULT
M_INFINITESpecifies no maximum gap size.
Value >= 0.0 (default)Specifies the maximum gap size, in sample or world units, depending on the units specified with M_PROFILE_GAP_FILL_THRESHOLD_UNITS.

M_PROFILE_GAP_FILL_THRESHOLD_UNITS

Inquires the units with which to interpret the M_PROFILE_GAP_FILL_THRESHOLD inquire type.

ValueDescription
M_DEFAULT
M_SAMPLE (default)Specifies to interpret the value relative to the sampling distance (M_PROFILE_SAMPLE_SIZE).
M_WORLDSpecifies to interpret the value in world units.

For inquiring about the profile extraction along a path in a path 3D measurement context or perpendicular to the template in a template 3D measurement context

For a path in a path 3D measurement context or template in a template 3D measurement context, the InquireType parameter can be set to one of the following. PathOrTemplateIndex must be set to the index of a path or template, respectively, and ProfileIndex must be set to M_DEFAULT. These inquire types are used to inquire about how to extract the profile along the path or the profiles at regular intervals perpendicular to the template.


M_PROFILE_ACCUMULATE_TYPE

Inquires how points in a given sample are accumulated to create a single profile point when there are multiple points within the thickness of the profile line.

ValueDescription
M_DEFAULT
M_MAXSpecifies to use the largest value of all the points in the sample.
M_MEAN (default)Specifies to use the mean value of all the points in the sample.
M_MINSpecifies to use the smallest value of all the points in the sample.

M_PROFILE_INTERPOLATION_AVERAGE_FRACTION

Inquires the fraction of the sampling distance to use when taking a weighted average of the area surrounding the profile point.

ValueDescription
M_DEFAULT
0.0 < Value <= 1.0 (default)Specifies the fraction.

M_PROFILE_INTERPOLATION_MODE

Inquires the interpolation mode used to calculate the value for each point in the sample that will be used to create the profile point.

ValueDescription
M_DEFAULT
M_AVERAGESpecifies averaging interpolation.
M_BILINEAR (default)Specifies bilinear interpolation.
M_NEAREST_NEIGHBORSpecifies nearest neighbor interpolation.

M_PROFILE_MIN_VALID_PERCENTAGE

Inquires the minimum percentage of points in a given sample that must be valid to set the corresponding profile point to a valid value.

ValueDescription
M_DEFAULT
0.0 <= Value <= 100.0 (default)Specifies the percentage of points in the sample.

M_PROFILE_PROJECTION_ANGLE

Inquires the nominal angle at which the projection is done for a given profile.

ValueDescription
M_DEFAULT
10.0 <= Value <= 170.0 (default)Specifies the nominal projection angle, in degrees.

M_PROFILE_PROJECTION_ANGLE_ACCURACY

Inquires the accuracy of the projection angle.

ValueDescription
M_DEFAULT
10.0 <= Value <= 170.0 (default)Specifies the nominal projection angle, in degrees.

M_PROFILE_PROJECTION_ANGLE_DELTA_NEG

Inquires the lower limit of the projection angle range, relative to the nominal projection angle (M_PROFILE_PROJECTION_ANGLE). That is, LowerLimit = M_PROFILE_PROJECTION_ANGLE - M_PROFILE_PROJECTION_ANGLE_DELTA_NEG.

ValueDescription
M_DEFAULT
0.0 <= Value <= 170.0 (default)Specifies the lower limit of the projection angle range, in degrees.

M_PROFILE_PROJECTION_ANGLE_DELTA_POS

Inquires the upper limit of the projection angle range, relative to the nominal projection angle (M_PROFILE_PROJECTION_ANGLE). That is, UpperLimit = M_PROFILE_PROJECTION_ANGLE + M_PROFILE_PROJECTION_ANGLE_DELTA_POS.

ValueDescription
M_DEFAULT
0.0 <= Value <= 170.0 (default)Specifies the upper limit of the projection angle range, in degrees.

M_PROFILE_PROJECTION_ANGLE_MODE

Inquires whether to consider projection angles within an angular range when extracting the profile to search.

ValueDescription
M_DEFAULT
M_DISABLE (default)Specifies not to use multiple projection angles.
M_ENABLESpecifies to use multiple projection angles.

M_PROFILE_PROJECTION_ANGLE_TOLERANCE

Inquires the tolerance used to determine the projection angles.

ValueDescription
M_DEFAULT
0.0 < Value <= 170.0 (default)Specifies the tolerance, in degrees.

M_PROFILE_SAMPLE_SIZE

Inquires the sampling distance between two consecutive points along the profile line.

ValueDescription
M_DEFAULT
Value > 0.0 (default)Specifies the distance.

M_PROFILE_SAMPLE_SIZE_MODE

Inquires how to interpret the specified sampling distance (M_PROFILE_SAMPLE_SIZE).

ValueDescription
M_DEFAULT
M_ABSOLUTESpecifies to use the sampling distance directly, without applying a multiplying factor.
M_RELATIVE_TO_PIXEL_SIZE_MAXSpecifies to multiply the sampling distance by the pixel size in X or in Y, depending on which is bigger.
M_RELATIVE_TO_PIXEL_SIZE_MIN (default)Specifies to multiply the sampling distance by the pixel size in X or in Y, depending on which is smaller.
M_RELATIVE_TO_PIXEL_SIZE_XSpecifies to multiply the sampling distance by the pixel size in X.
M_RELATIVE_TO_PIXEL_SIZE_YSpecifies to multiply the sampling distance by the pixel size in Y.

M_PROFILE_THICKNESS

Inquires the thickness of the profile line.

ValueDescription
M_DEFAULT
Value > 0.0 (default)Specifies the thickness.

M_PROFILE_THICKNESS_MODE

Inquires how to interpret the specified thickness value (M_PROFILE_THICKNESS).

ValueDescription
M_DEFAULT
M_ABSOLUTESpecifies to use the thickness value directly, without applying a multiplying factor.
M_RELATIVE_TO_PIXEL_SIZE_MAXSpecifies to multiply the thickness value by the pixel size in X or in Y, depending on which is bigger.
M_RELATIVE_TO_PIXEL_SIZE_MIN (default)Specifies to multiply the thickness value by the pixel size in X or in Y, depending on which is smaller.
M_RELATIVE_TO_PIXEL_SIZE_XSpecifies to multiply the thickness value by the pixel size in X.
M_RELATIVE_TO_PIXEL_SIZE_YSpecifies to multiply the thickness value by the pixel size in Y.
M_RELATIVE_TO_SPACINGSpecifies to multiply the thickness value by the profile spacing.

For inquiring about a template in a template 3D measurement context

For a template in a template 3D measurement context, the InquireType parameter can be set to one of the following. PathOrTemplateIndex must be set to the index of a template, and ProfileIndex must be set to M_DEFAULT.


Inquires whether to extend the search outside of the template's defined area. [Image: 3dmeas_extended_search.png]

ValueDescription
M_DEFAULT
M_DISABLESpecifies not to extend the search beyond the template.
M_ENABLE (default)Specifies to extend the search beyond the template.

M_TEMPLATE_PROFILE_COUNT

Inquires the number of profiles used to find the markers of a template.

ValueDescription
M_UNKNOWNSpecifies that the number of profiles used is unknown. This occurs when the number of profiles is dependent on the depth map calibration. For example, when M_TEMPLATE_PROFILE_NUMBER_MODE is set to M_SPACING and M_TEMPLATE_PROFILE_SPACING_MODE is set to M_RELATIVE_TO_PIXEL_SIZE_....
Value > 0Specifies the number profiles used.

M_TEMPLATE_PROFILE_NUMBER_ELEMENTS

Inquires the number of profile elements in the template 3D measurement context.

ValueDescription
M_DEFAULT
Value >= M_TEMPLATE_PROFILE_NUMBER_VALUE (default)Specifies the number of profile elements.

M_TEMPLATE_PROFILE_NUMBER_MODE

Inquires the mode with which to determine the number of profiles to use to find the markers of a template.

ValueDescription
M_DEFAULT
M_SPACINGSpecifies that the number of profiles is determined based on the spacing between the profiles.
M_USER_DEFINED (default)Specifies to use the value set with M_TEMPLATE_PROFILE_NUMBER_VALUE.

M_TEMPLATE_PROFILE_NUMBER_VALUE

Inquires the number of profiles perpendicular to the template. Note that this inquire type is only valid if M_TEMPLATE_PROFILE_NUMBER_MODE is set to M_USER_DEFINED.

ValueDescription
M_DEFAULT
0 < Value <= M_TEMPLATE_PROFILE_NUMBER_ELEMENTS (default)Specifies the number of profiles.

M_TEMPLATE_PROFILE_SPACING

Inquires the spacing between the profiles along the template. Note that this inquire type is only valid if M_TEMPLATE_PROFILE_NUMBER_MODE is set to M_SPACING.

ValueDescription
M_DEFAULT
Value > 0.0 (default)Specifies the spacing.

M_TEMPLATE_PROFILE_SPACING_MODE

Inquires how to interpret the specified spacing value (M_TEMPLATE_PROFILE_SPACING). Note that this inquire type is only valid if M_TEMPLATE_PROFILE_NUMBER_MODE is set to M_SPACING.

ValueDescription
M_DEFAULT
M_ABSOLUTESpecifies to use the spacing value directly, without applying a multiplying factor.
M_RELATIVE_TO_PIXEL_SIZE_MAXSpecifies to multiply the spacing value by the pixel size in X or in Y, depending on which is bigger.
M_RELATIVE_TO_PIXEL_SIZE_MINSpecifies to multiply the spacing value by the pixel size in X or in Y, depending on which is smaller.
M_RELATIVE_TO_PIXEL_SIZE_XSpecifies to multiply the spacing value by the pixel size in X.
M_RELATIVE_TO_PIXEL_SIZE_YSpecifies to multiply the spacing value by the pixel size in Y.
M_RELATIVE_TO_THICKNESS (default)Specifies to multiply the spacing value by the profile thickness.

For inquiring about a template or profile in a template 3D measurement context

For a template or profile in a template 3D measurement context, the InquireType parameter can be set to one of the following. PathOrTemplateIndex must be set to the index of a template. If ProfileIndex is set to M_DEFAULT, these inquire types allow you to retrieve global settings for the template's perpendicular profiles. If ProfileIndex is set to a specific index, they allow you to retrieve custom settings for the specified profile. Note that any custom setting for the specified profile will only be used if its corresponding M_TEMPLATE_PROFILE_..._SOURCE control is set to M_PROFILE.


M_TEMPLATE_PROFILE_LENGTH

Inquires the nominal length of the profile to extract (perpendicular to the template).

ValueDescription
M_DEFAULT
Value > 0.0 (default)Specifies the length.

M_TEMPLATE_PROFILE_LENGTH_MARGIN

Inquires the margin on the profile length. The nominal length (M_TEMPLATE_PROFILE_LENGTH), plus the margin define the length of the profile.

ValueDescription
M_DEFAULT
Value >= 0.0 (default)Specifies the margin, as a percentage of the nominal length.

M_TEMPLATE_PROFILE_LENGTH_MODE

Inquires how to interpret the specified length value (M_TEMPLATE_PROFILE_LENGTH).

ValueDescription
M_DEFAULT
M_ABSOLUTESpecifies to use the length value directly, without applying a multiplying factor.
M_RELATIVE_TO_PIXEL_SIZE_MAXSpecifies to multiply the length value by the pixel size in X or in Y, depending on which is bigger.
M_RELATIVE_TO_PIXEL_SIZE_MIN (default)Specifies to multiply the length value by the pixel size in X or in Y, depending on which is smaller.
M_RELATIVE_TO_PIXEL_SIZE_XSpecifies to multiply the length value by the pixel size in X.
M_RELATIVE_TO_PIXEL_SIZE_YSpecifies to multiply the length value by the pixel size in Y.

M_TEMPLATE_PROFILE_POSITION_RELATIVE

Inquires the position of the profile, relative to the template.

ValueDescription
M_DEFAULT
-50.0 <= Value <= 50.0 (default)Specifies the relative position, as a percentage of the nominal length.

For inquiring about a profile in a template 3D measurement context

For a profile perpendicular to a template in a template 3D measurement context, the InquireType parameter can be set to one of the following. PathOrTemplateIndex must be set to the index of a template, and ProfileIndex must be set to the index of one or all profiles. These inquire types allow you to retrieve whether the global or custom settings will be used for the specified profile, when extracting the profile perpendicular to the template.


M_TEMPLATE_PROFILE_LENGTH_MARGIN_SOURCE

Inquires whether to use the global margin value or a custom margin for the profile.

ValueDescription
M_DEFAULT
M_PROFILESpecifies to use the custom margin value for the specified profile.
M_TEMPLATE (default)Specifies to use the template's global margin value for the specified profile.

M_TEMPLATE_PROFILE_LENGTH_SOURCE

Inquires whether to use the global nominal length value and length mode or a custom nominal length and length mode for the profile.

ValueDescription
M_DEFAULT
M_PROFILESpecifies to use the custom profile length for the specified profile.
M_TEMPLATE (default)Specifies to use the template's global profile length for the specified profile.

M_TEMPLATE_PROFILE_POSITION_SOURCE

Inquires whether to use the global relative position value or a custom relative position for the profile.

ValueDescription
M_DEFAULT
M_PROFILESpecifies to use the custom relative position value for the specified profile.
M_TEMPLATE (default)Specifies to use the template's global relative position value.

For inquiring about a fit 3D measurement context

For a fit 3D measurement context, the InquireType parameter can be set to one of the following. PathOrTemplateIndex must be set to M_DEFAULT or M_CONTEXT, and ProfileIndex must be set to M_DEFAULT.


M_EXPECTED_OUTLIER_PERCENTAGE

Inquires the expected percentage of outlier markers among the markers that are extracted.

ValueDescription
M_DEFAULT
0.0 < Value < 100.0 (default)Specifies the expected outliers, as a percentage.

M_FIT_COVERAGE_MIN

Inquires the minimum percentage of profiles that must have a marker covered by a fitted point.

ValueDescription
M_DEFAULT
Value > 0.0 (default)Specifies the minimum coverage, as a percentage.

M_FIT_DISTANCE

Inquires the distance value that Aurora Imaging Library uses to establish outlier markers, which are excluded from the robust best fit.

ValueDescription
M_DEFAULT
M_INFINITE (default)Specifies that the fit distance is infinite.
Value > 0.0Specifies the fit distance.

M_FIT_DISTANCE_MODE

Inquires how to interpret the specified fit distance value (M_FIT_DISTANCE).

ValueDescription
M_DEFAULT
M_ABSOLUTESpecifies to use the fit distance value directly, without applying a multiplying factor.
M_AUTO (default)Specifies to automatically calculate the fit distance; the distance is estimated from all the extracted markers.
M_RELATIVE_TO_PIXEL_SIZE_MAXSpecifies to multiply the fit distance value by the pixel size in X or in Y, depending on which is bigger.
M_RELATIVE_TO_PIXEL_SIZE_MINSpecifies to multiply the fit distance value by the pixel size in X or in Y, depending on which is smaller.
M_RELATIVE_TO_PIXEL_SIZE_XSpecifies to multiply the fit distance value by the pixel size in X.
M_RELATIVE_TO_PIXEL_SIZE_YSpecifies to multiply the fit distance value by the pixel size in Y.
M_RELATIVE_TO_SAMPLINGSpecifies to multiply the fit distance value by the sampling distance along each profile.

M_REMOVE_OUTLIERS

Inquires whether to remove outlier markers from the template 3D measurement result buffer after the fit.

ValueDescription
M_DEFAULT
M_DISABLE (default)Specifies not to remove outliers.
M_ENABLESpecifies to remove outliers.

For inquiring about a path 3D measurement context

For a path 3D measurement context, the InquireType parameter can be set to one of the following. PathOrTemplateIndex must be set to M_DEFAULT or M_CONTEXT, and ProfileIndex must be set to M_DEFAULT.


M_NUMBER_OF_PATHS

Inquires the number of paths in the path 3D measurement context.

ValueDescription
Value >= 0Specifies the number of paths.

For inquiring about a template 3D measurement context

For a template 3D measurement context, the InquireType parameter can be set to one of the following. PathOrTemplateIndex must be set to M_DEFAULT or M_CONTEXT, and ProfileIndex must be set to M_DEFAULT.


M_NUMBER_OF_TEMPLATES

Inquires the number of templates in the template 3D measurement context.

ValueDescription
Value >= 0Specifies the number of templates.

Combination Constants — For inquiring about the default value

Optional.

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

M_DEFAULT

Inquires the default value of the specified inquire type.

M_IS_SET_TO_DEFAULT

Inquires whether the specified inquire type is set to its default value.

ValueDescription
M_FALSESpecifies that the inquire type is not set to its default value.
M_TRUESpecifies that the inquire type is set to its default value.

Combination Constants — To inquire whether an inquire type is supported

Optional.

Usage: You can add one of the following values to the above-mentioned values to determine whether an inquire type is supported.

M_HAS_DEFAULT

Inquires whether the specified inquire type has a default value.

ValueDescription
M_FALSESpecifies that the inquire type does not have a default value.
M_TRUESpecifies that the inquire type has a default value.

M_SUPPORTED

Inquires whether the specified inquire type is supported.

ValueDescription
M_FALSESpecifies that the inquire type is not supported.
M_TRUESpecifies that the inquire type is supported.

Combination Constants — To specify the data type

Optional.

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

M_TYPE_AIL_DOUBLE

Casts the requested information to an AIL_DOUBLE.

M_TYPE_AIL_FLOAT

Casts the requested information to an AIL_FLOAT.

M_TYPE_AIL_INT

Casts the requested information to an AIL_INT.

M_TYPE_AIL_INT32

Casts the requested information to an AIL_INT32.

M_TYPE_AIL_INT64

Casts the requested information to an AIL_INT64.

Return Value

Type: AIL_INT64

The returned value is the requested information, cast to an AIL_INT64. If the requested information does not fit into an AIL_INT64, this function will return M_NULLor truncate the information.

Copyright © 2026 Zebra Technologies.