| Customize Help
| Save Settings

M3dmetInquire



Function Map
Synopsis
Inquire information about a 3D metrology context.
Syntax
MIL_INT64 M3dmetInquire(
MIL_ID Context3dmetId, //in
MIL_INT64 InquireType, //in
void *UserVarPtr //out
)
Description

This function inquires information about a 3D metrology context.

To retrieve results from a 3D metrology result buffer, use M3dmetGetResult().

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 which MIL system’s documentation you should use in its place and any possible differences.
Parameters
This function is not supported on the selected boards.
This function reference has not been updated for the selected MIL system. To show the content of this page, choose a second MIL system; refer to the MIL system's release note to see which MIL system’s documentation to choose and any possible differences.
Parameters
Context3dmetId

Specifies the identifier of the 3D metrology context to inquire. The 3D metrology context must have been previously allocated on the required system using M3dmetAlloc().

InquireType

Specifies the type of information 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):
  • defined-elsewhere-in-parameter
  • MIL_DOUBLE
  • MIL_FLOAT
  • MIL_INT
  • MIL_INT32
  • MIL_INT64

Specifies the address of the variable in which to write the requested information. Since the M3dmetInquire() 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.

The tables below list possible values for the InquireType parameter and possible values returned to the UserVarPtr parameter.

For a statistics 3D metrology context, the InquireType parameter can be set to one of the following.

function map For inquiring about a statistics 3D metrology context
Click to summarizeInquireType Description
UserVarPtr
- Possible values returned
Click to summarize M_STAT_MAX +

Inquires whether the maximum distance between the point cloud or depth map, and the specified reference object will be calculated. SET

(summarize)
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a MIL_INT
Click to summarize M_DISABLE

Specifies not to calculate the maximum distance.

Click to summarize M_ENABLE

Specifies to calculate the maximum distance.

Click to summarize M_STAT_MAX_ABS +

Inquires whether the maximum absolute distance between the point cloud or depth map, and the specified reference object will be calculated. SET

(summarize)
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a MIL_INT
Click to summarize M_DISABLE

Specifies not to calculate the maximum absolute distance.

Click to summarize M_ENABLE

Specifies to calculate the maximum absolute distance.

Click to summarize M_STAT_MEAN +

Inquires whether the average distance between the point cloud or depth map, and the specified reference object will be calculated. SET

(summarize)
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a MIL_INT
Click to summarize M_DISABLE

Specifies not to calculate the average distance.

Click to summarize M_ENABLE

Specifies to calculate the average distance.

Click to summarize M_STAT_MIN +

Inquires whether the minimum distance between the point cloud or depth map, and the specified reference object will be calculated. SET

(summarize)
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a MIL_INT
Click to summarize M_DISABLE

Specifies not to calculate the minimum distance.

Click to summarize M_ENABLE

Specifies to calculate the minimum distance.

Click to summarize M_STAT_MIN_ABS +

Inquires whether the minimum absolute distance between the point cloud or depth map, and the specified reference object will be calculated. SET

(summarize)
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a MIL_INT
Click to summarize M_DISABLE

Specifies not to calculate the minimum absolute distance.

Click to summarize M_ENABLE

Specifies to calculate the minimum absolute distance.

Click to summarize M_STAT_NUMBER +

Inquires whether to record the number of points that meet the condition specified when calling M3dmetStat() (using the Condition, CondLow and CondHigh parameters). SET

(summarize)
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a MIL_INT
Click to summarize M_DISABLE

Specifies not to record the number of points that meet the specified condition.

Click to summarize M_ENABLE

Specifies to record the number of points that meet the specified condition.

Click to summarize M_STAT_RMS +

Inquires whether the root-mean-square (RMS) error between the point cloud or depth map, and the specified reference object will be calculated. SET

(summarize)
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a MIL_INT
Click to summarize M_DISABLE

Specifies not to calculate the RMS error.

Click to summarize M_ENABLE

Specifies to calculate the RMS error.

Click to summarize M_STAT_STANDARD_DEVIATION +

Inquires whether the standard deviation of all the distances calculated between the point cloud or depth map, and the specified reference object will be calculated. SET

(summarize)
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a MIL_INT
Click to summarize M_DISABLE

Specifies not to calculate the standard deviation.

Click to summarize M_ENABLE

Specifies to calculate the standard deviation.

Click to summarize M_STAT_SUM +

Inquires whether the sum of all the distances calculated between the point cloud or depth map, and the specified reference object will be calculated. SET

(summarize)
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a MIL_INT
Click to summarize M_DISABLE

Specifies not to calculate the sum of all the distances.

Click to summarize M_ENABLE

Specifies to calculate the sum of all the distances.

Click to summarize M_STAT_SUM_ABS +

Inquires whether the sum of all the absolute distances calculated between the point cloud or depth map, and the specified reference object will be calculated. SET

(summarize)
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a MIL_INT
Click to summarize M_DISABLE

Specifies not to calculate the sum of all absolute distances.

Click to summarize M_ENABLE

Specifies to calculate the sum of all absolute distances.

Click to summarize M_STAT_SUM_OF_SQUARES +

Inquires whether the sum of squared distances between the point cloud or depth map, and the specified reference object will be calculated. SET

(summarize)
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a MIL_INT
Click to summarize M_DISABLE

Specifies not to calculate the sum of squared distances.

Click to summarize M_ENABLE

Specifies to calculate the sum of squared distances.

For a fit 3D metrology context, the InquireType parameter can be set to one of the following:

function map For inquiring about a fit 3D metrology context
Click to summarizeInquireType Description
UserVarPtr
- Possible values returned
Click to summarize M_ESTIMATION_MODE +

Inquires how to compute an initial fit estimate between the point cloud or depth map, and the specified reference object. SET

(summarize)
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a MIL_INT
Click to summarize M_FROM_GEOMETRY

Specifies that an initial fit estimate is determined using a geometry object.

Click to summarize M_NO_SAMPLING

Specifies that an initial fit estimate is calculated using all available points in a point cloud or depth map.

Click to summarize M_RANDOM_SAMPLING

Specifies that an initial fit estimate is determined using a random sampling consensus (RANSAC) algorithm.

Click to summarize M_EXPECTED_OUTLIER_PERCENTAGE +

Inquires the expected percentage of outliers among the points of the point cloud or depth map to be fitted. SET

(summarize)
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a MIL_DOUBLE
Click to summarize 0.0 < Value < 100.0

Specifies the expected percentage of outliers among the points of the point cloud or depth map to be fitted.

Click to summarize M_FIT_ITERATIONS_MAX +

Inquires the maximum number of iterations to use during the fit operation. SET

(summarize)
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a MIL_INT
Click to summarize Value >= 0

Specifies the maximum number of iterations to use during the fit operation.

Click to summarize M_INLIER_AMOUNT_THRESHOLD +

Inquires the minimum number of inliers required for the fit operation to end. SET

(summarize)
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a MIL_INT
Click to summarize M_INFINITE

Specifies that there is no minimum number of inliers.

Click to summarize Value >= 0

Specifies the minimum number of inliers.

Click to summarize M_RMS_ERROR_THRESHOLD +

Inquires the maximum RMS error required for the fit operation to end. SET

(summarize)
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a MIL_DOUBLE
Click to summarize Value >= 0.0

Specifies the maximum RMS error.

Combination values for the values listed in For inquiring about a statistics 3D metrology context; the values listed in For inquiring about a fit 3D metrology context.

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.

function map For inquiring about the default value
Click to summarizeInquireType Description
UserVarPtr
- Possible values returned
Click to summarize M_DEFAULT

Inquires the default value of the specified inquire type.

(summarize)
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: defined elsewhere
Click to summarize M_IS_SET_TO_DEFAULT

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

(summarize)
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a MIL_INT
Click to summarize M_FALSE

Specifies that the inquire type is not set to its default value.

Click to summarize M_TRUE

Specifies that the inquire type is set to its default value.

Combination value for the values listed in For inquiring about a statistics 3D metrology context; the values listed in For inquiring about a fit 3D metrology context.

You can add the following value to the above-mentioned values to determine whether an inquire type is supported.

function map To inquire whether an inquire type is supported
Click to summarizeInquireType Description
UserVarPtr
- Possible values returned
Click to summarize M_SUPPORTED

Inquires whether the specified inquire type is supported for the 3D metrology context.

(summarize)
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a MIL_INT
Click to summarize M_NULL

Specifies that the inquire type is not supported.

Click to summarize Value != 0

Specifies that the inquire type is supported.

Combination values for the values listed in For inquiring about a statistics 3D metrology context; the values listed in For inquiring about a fit 3D metrology context.

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 To specify the data type
Click to summarizeInquireType Description
UserVarPtr
- Possible values returned
Click to summarize M_TYPE_MIL_DOUBLE

Casts the requested information to a MIL_DOUBLE.

(summarize)
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a MIL_DOUBLE MORE
Click to summarize M_TYPE_MIL_FLOAT

Casts the requested information to a MIL_FLOAT.

(summarize)
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a MIL_FLOAT MORE
Click to summarize M_TYPE_MIL_INT

Casts the requested information to a MIL_INT.

(summarize)
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a MIL_INT MORE
Click to summarize M_TYPE_MIL_INT32

Casts the requested information to a MIL_INT32.

(summarize)
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a MIL_INT32 MORE
Click to summarize M_TYPE_MIL_INT64

Casts the requested information to a MIL_INT64.

(summarize)
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a MIL_INT64 MORE
Return value
The returned value is the requested information, if it is a MIL_INT. If the requested information is a MIL_DOUBLE or if it is a MIL_INT64 on a 32-bit system, this function will return M_NULL.
Compilation information
Header Include mil.h.
Library Use mil.lib; mil3dmet.lib.
DLL Requires mil.dll; mil3dmet.dll.
STAT MAX DISABLE ENABLE STAT MAX ABS DISABLE ENABLE STAT MEAN DISABLE ENABLE STAT MIN DISABLE ENABLE STAT MIN ABS DISABLE ENABLE STAT NUMBER DISABLE ENABLE STAT RMS DISABLE ENABLE STAT STANDARD DEVIATION DISABLE ENABLE STAT SUM DISABLE ENABLE STAT SUM ABS DISABLE ENABLE STAT SUM OF SQUARES DISABLE ENABLE ESTIMATION MODE FROM GEOMETRY NO SAMPLING RANDOM SAMPLING EXPECTED OUTLIER PERCENTAGE FIT ITERATIONS MAX INLIER AMOUNT THRESHOLD INFINITE RMS ERROR THRESHOLD DEFAULT IS SET TO DEFAULT FALSE TRUE SUPPORTED NULL TYPE MIL DOUBLE TYPE MIL FLOAT TYPE MIL INT TYPE MIL INT32 TYPE MIL INT64