Click here to show toolbars of the Web Online Help System: show toolbars |
MIL_ID Result3dmapId, | //in |
MIL_INT LabelOrIndex, | //in |
MIL_INT64 ResultType, | //in |
void *ResultArrayPtr | //out |
This function retrieves the result(s) of the specified type from a result buffer. For M_LASER_CALIBRATION_DATA, M_DEPTH_CORRECTED_DATA, and M_POINT_CLOUD_CONTAINER 3D reconstruction result buffers, results are available after using M3dmapAddScan() and/or M3dmapPut() to fill the result buffer with the extracted laser line data.
For an M_STAT_RESULT result buffer, results are available after using M3dmapStat() to fill the result buffer with statistics on a depth map.
An M_POINT_CLOUD_CONTAINER 3D reconstruction result buffer contains an array of distinct point clouds. You can retrieve results from an individual point cloud in the result buffer, from an aggregate of all point clouds in the result buffer, or from the result buffer itself using the LabelOrIndex parameter.
Specifies the identifier of the 3D reconstruction result buffer from which to retrieve results.
Specifies the point cloud(s) in the specified 3D reconstruction result buffer, or the entire result buffer itself, from which to get results. Only 3D reconstruction result buffers allocated using M_POINT_CLOUD_CONTAINER have point clouds that can be specified using this parameter. For all other types of 3D reconstruction result buffers, set this parameter to M_DEFAULT.
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description | ||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the array index of a point cloud in the specified 3D reconstruction result buffer. |
||||||||||||||||||||||||||||||||||||||
Parameters | |||||||||||||||||||||||||||||||||||||||
Specifies the array index of an existing point cloud. |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the label for a point cloud in the specified 3D reconstruction result buffer. |
||||||||||||||||||||||||||||||||||||||
Parameters | |||||||||||||||||||||||||||||||||||||||
Specifies the label of an existing point cloud. |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to get results about all point clouds in the specified 3D reconstruction result buffer. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to get results about the point cloud container (3D reconstruction result buffer allocated using M_POINT_CLOUD_CONTAINER). |
Specifies the type of result to get.
See the Parameter associations section for possible values that can be specified.
Specifies the address in which to write the results.
When LabelOrIndex is set to M_ALL, you must specify the address of an array with as many elements as point clouds in the point cloud container. You can inquire the number of point clouds using M3dmapInquire() set to M_NUMBER_OF_POINT_CLOUDS.
See the Parameter associations section for possible values that can be returned.
The tables below list possible values for the ResultType parameter and possible values returned to the ResultArrayPtr parameter.
To retrieve a result from an M_POINT_CLOUD_CONTAINER 3D reconstruction result buffer, the ResultType parameter can be set to one of the following values:
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description | ||||||||||||||||||||||||||||||||||||||
ResultArrayPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Retrieves whether the specified point cloud(s) have the specified feature (such as position or intensity data). |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Data type info: Data
type: address of a MIL_DOUBLE |
array of type MIL_DOUBLE (more
details...)
|
||||||||||||||||||||||||||||||||||||||
![]() ![]() ![]() |
Specifies that the specified point cloud(s) do not have the feature. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() ![]() |
Specifies that the specified point cloud(s) do have the feature. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Retrieves the number of 3D points extracted from laser line data and stored in the specified point cloud(s). |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Data type info: Data
type: address of a MIL_DOUBLE |
array of type MIL_DOUBLE (more
details...)
|
||||||||||||||||||||||||||||||||||||||
![]() ![]() ![]() |
Specifies the number of 3D points. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Retrieves the total displacement along the Y-axis (typically the conveyor) from the first call to M3dmapAddScan(). |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Data type info: Data
type: address of a
MIL_DOUBLE
|
You must add one of the following values to the above-mentioned value to determine whether the feature exists in the specified location.
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description | ||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to determine if intensity information exists in the specified point cloud(s). |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to determine if position information exists in the specified point cloud(s). |
You can add one of the following values to the above-mentioned value to specify which 3D points should be included when returning the number of points.
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description | ||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to exclude all points in the specified point cloud(s) that are set to M_INVALID_POINT. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to include only the valid points inside the extraction box. |
You can add the following value to the above-mentioned values to specify to return the points of the last scan only.
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description | ||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to return only those points generated during the last call to M3dmapAddScan(). |
To retrieve a result from a pairwise 3D alignment result buffer allocated using M3dmapAllocResult() with M_ALIGNMENT_RESULT, the ResultType parameter can be set to one of the following values:
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description | ||||||||||||||||||||||||||||||||||||||
ResultArrayPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Retrieves the RMS error calculated from the distance between paired 3D points from the two aligned point clouds. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Data type info: Data
type: address of a
MIL_DOUBLE
|
||||||||||||||||||||||||||||||||||||||
![]() ![]() ![]() |
Specifies the RMS error. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Retrieves the relative RMS error, which is the percent change of the RMS error of the last two iterations of the pairwise 3D alignment process. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Data type info: Data
type: address of a MIL_DOUBLE
(more
details...)
|
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Retrieves the transformation matrix that would align the model point cloud with the scene point cloud. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Data type info: Data
type: array of type MIL_DOUBLE
(more
details...)
|
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Retrieves the number of iterations performed during the pairwise 3D alignment process. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Data type info: Data
type: address of a MIL_INT
(more
details...)
|
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Retrieves the status of the pairwise 3D alignment process. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Data type info: Data
type: address of a
MIL_DOUBLE
|
||||||||||||||||||||||||||||||||||||||
![]() ![]() ![]() |
Specifies that the change in RMS errors of the last two iterations is equal to or lower than the specified percentile threshold (M3dmapControl() with M_ALIGN_RMS_ERROR_RELATIVE_THRESHOLD). |
||||||||||||||||||||||||||||||||||||||
![]() ![]() ![]() |
Specifies that the RMS error of the last iteration is equal to or lower than the specified RMS error threshold (M3dmapControl() with M_ALIGN_RMS_ERROR_THRESHOLD). |
||||||||||||||||||||||||||||||||||||||
![]() ![]() ![]() |
Specifies that the maximum number of iterations of the alignment process, set using M3dmapControl() with M_MAX_ITERATIONS, has been reached. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() ![]() |
Specifies that either the model or the scene point cloud does not contain valid points. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() ![]() |
Specifies that the number of points which overlap between the model point cloud and the scene point cloud is below a critical threshold. |
You can add the following value to the above-mentioned values to determine the result for each iteration.
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description | ||||||||||||||||||||||||||||||||||||||
ResultArrayPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to retrieve the result for each iteration during the pairwise 3D alignment. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Data type info:
Data type: array of type
MIL_DOUBLE (more
details...)
|
To retrieve a result about partially corrected depth maps from an M_DEPTH_CORRECTED_DATA 3D reconstruction result buffer, the ResultType parameter can be set to one of the following values:
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description | ||||||||||||||||||||||||||||||||||||||
ResultArrayPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Retrieves the data type and depth that an image buffer should have to store the partially corrected depth map. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Data type info:
Data type: address of a
MIL_DOUBLE
|
||||||||||||||||||||||||||||||||||||||
![]() ![]() ![]() |
Specifies that the image buffer should be an 8-bit unsigned buffer. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() ![]() |
Specifies that the image buffer should be a 16-bit unsigned buffer. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Retrieves the X-size, in pixels, that an image buffer should have to store the partially corrected depth map. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Data type info:
Data type: address of a
MIL_DOUBLE
|
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Retrieves the Y-size, in pixels, that an image buffer should have to store the partially corrected depth map. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Data type info:
Data type: address of a
MIL_DOUBLE
|
To retrieve a result from a 3D reconstruction result buffer of type M_LASER_CALIBRATION_DATA or M_DEPTH_CORRECTED_DATA, or a point cloud of type M_LASER_SCAN, the ResultType parameter can be set to one of the following values:
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description | ||||||||||||||||||||||||||||||||||||||
ResultArrayPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Retrieves the X-size of the image buffer from which the last laser line was extracted using M3dmapAddScan(). |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Data type info:
Data type: address of a
MIL_DOUBLE | array of type
MIL_DOUBLE (more
details...)
|
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Retrieves the Y-size of the image buffer from which the last laser line was extracted using M3dmapAddScan(). |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Data type info:
Data type: address of a
MIL_DOUBLE | array of type
MIL_DOUBLE (more
details...)
|
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Retrieves the data type and depth that an image buffer should have to store the intensity map. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Data type info:
Data type: address of a
MIL_DOUBLE | array of type
MIL_DOUBLE (more
details...)
|
||||||||||||||||||||||||||||||||||||||
![]() ![]() ![]() |
Specifies that the image buffer should be an 8-bit unsigned buffer. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() ![]() |
Specifies that the image buffer should be a 16-bit unsigned buffer. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Retrieves the number of points (pixels) with unknown values in the last laser line extracted using M3dmapAddScan(). |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Data type info:
Data type: address of a
MIL_DOUBLE | array of type
MIL_DOUBLE (more
details...)
|
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Retrieves whether laser line detection was performed vertically or horizontally. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Data type info:
Data type: address of a
MIL_DOUBLE | array of type
MIL_DOUBLE (more
details...)
|
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Retrieves the data type and depth that an image buffer should have to store the uncorrected depth map. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Data type info:
Data type: address of a
MIL_DOUBLE | array of type
MIL_DOUBLE (more
details...)
|
||||||||||||||||||||||||||||||||||||||
![]() ![]() ![]() |
Specifies that the image buffer should be an 8-bit unsigned buffer. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() ![]() |
Specifies that the image buffer should be a 16-bit unsigned buffer. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Retrieves the number of fractional bits used for the uncorrected depth map. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Data type info:
Data type: address of a
MIL_DOUBLE | array of type
MIL_DOUBLE (more
details...)
|
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Retrieves the X-size, in pixels, that an image buffer should have to store the uncorrected depth map. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Data type info:
Data type: address of a
MIL_DOUBLE | array of type
MIL_DOUBLE (more
details...)
|
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Retrieves the Y-size, in pixels, that an image buffer should have to store the uncorrected depth map. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Data type info:
Data type: address of a
MIL_DOUBLE | array of type
MIL_DOUBLE (more
details...)
|
To retrieve a result from a M_STAT_RESULT 3D reconstruction result buffer, the ResultType parameter can be set to one of the following values:
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description | ||||||||||||||||||||||||||||||||||||||
ResultArrayPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Retrieves the maximum height between the depth map and the reference level (always positive). |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Data type info:
Data type: address of a
MIL_DOUBLE
|
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Retrieves the average height between the depth map and the reference level. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Data type info:
Data type: address of a
MIL_DOUBLE
|
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Retrieves the number of pixels that were not taken into account while computing statistics because they were missing data, either in the depth map or the reference level. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Data type info:
Data type: address of a
MIL_DOUBLE
|
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Retrieves the number of pixels that were not taken into account while computing statistics because the distance between the depth map and the reference level at those coordinates was beyond the outlier threshold. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Data type info:
Data type: address of a
MIL_DOUBLE
|
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Retrieves the number of pixels that were considered by M3dmapStat(). |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Data type info:
Data type: address of a
MIL_DOUBLE
|
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Retrieves the number of pixels that were taken into account while computing statistics. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Data type info:
Data type: address of a
MIL_DOUBLE
|
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Retrieves the volume between the depth map and the reference level. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Data type info:
Data type: address of a
MIL_DOUBLE
|
You can add one of the following values to the above-mentioned values to specify which pixels to take into account.
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description | ||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Takes into account all valid pixels, treating all vertical distances as positive. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Takes into account all valid pixels. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Takes into account only the pixels for which going from the reference level to the depth map is in the negative Z-direction, treating all vertical distances as positive. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Takes into account only the pixels for which going from the reference level to the depth map is in the positive Z-direction. |
You can add the following value to the above-mentioned values to determine whether a result is available.
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description | ||||||||||||||||||||||||||||||||||||||
ResultArrayPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Retrieves whether a result is available to be returned. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Data type info:
Data type: address of a
MIL_DOUBLE
|
||||||||||||||||||||||||||||||||||||||
![]() ![]() ![]() |
Specifies that the result is not available to be returned. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() ![]() |
Specifies that the result is available to be returned. |
You can add one of the following values to the above-mentioned values to cast the requested results to the required data type.
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description | ||||||||||||||||||||||||||||||||||||||
ResultArrayPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Casts the requested results to a char. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Data type info:
Data type: array of type
char | address of a char
(more
details...)
|
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Casts the requested results to a MIL_DOUBLE. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Data type info:
Data type: array of type
MIL_DOUBLE | address of a
MIL_DOUBLE (more
details...)
|
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Casts the requested results to a MIL_FLOAT. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Data type info:
Data type: array of type
MIL_FLOAT | address of a
MIL_FLOAT (more
details...)
|
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Casts the requested results to a MIL_ID. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Data type info:
Data type: array of type
MIL_ID | address of a MIL_ID
(more
details...)
|
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Casts the requested results to a MIL_INT. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Data type info:
Data type: array of type
MIL_INT | address of a
MIL_INT (more
details...)
|
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Casts the requested results to a MIL_INT16. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Data type info:
Data type: array of type
MIL_INT16 | address of a
MIL_INT16 (more
details...)
|
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Casts the requested results to a MIL_INT32. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Data type info:
Data type: array of type
MIL_INT32 | address of a
MIL_INT32 (more
details...)
|
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Casts the requested results to a MIL_INT64. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Data type info:
Data type: array of type
MIL_INT64 | address of a
MIL_INT64 (more
details...)
|
Header | Include mil.h. |
Library | Use mil.lib; mil3dmap.lib. |
DLL | Requires mil.dll; mil3dmap.dll. |