MIL_ID SysId, | //in |
MIL_INT64 ContextType, | //in |
MIL_INT64 ControlFlag, | //in |
MIL_ID *ContextOrGeometry3dmapIdPtr | //out |
This function allocates a 3D reconstruction context, a pairwise 3D alignment context, or a geometry object on the specified system. When the context or geometry object is no longer required, you should release its memory, using M3dmapFree().
Specifies the identifier of the system on which to allocate the 3D reconstruction context or geometry object.
For specifying the system
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_DEFAULT_HOST |
Specifies the default Host system of the current MIL application. |
||||||||||||||||||||||||||||||||||||||
MIL system identifier |
Specifies a valid system identifier, previously allocated using MsysAlloc(). |
Specifies to allocate a 3D reconstruction context or geometry object. This parameter must be set to one of the following:
For specifying the type
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_GEOMETRY |
Specifies a geometry object. |
||||||||||||||||||||||||||||||||||||||
M_LASER |
Specifies a 3D reconstruction context that will be used to perform laser line profiling. |
||||||||||||||||||||||||||||||||||||||
M_PAIRWISE_ALIGNMENT_CONTEXT |
Specifies a pairwise 3D alignment context that will be used to find the transformation that aligns two 3D point clouds together (3D registration). |
Specifies the 3D reconstruction mode of the context, which determines how data is represented. The data representation determines whether depth maps can be fully corrected and whether 3D point clouds can be returned.
If allocating a geometry object or a pairwise alignment context, this parameter must be set to M_DEFAULT.
If allocating a 3D reconstruction context, this parameter must be set to one of the following values:
For specifying the 3D reconstruction
mode
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_CALIBRATED_CAMERA_LINEAR_MOTION + |
Specifies that the 3D reconstruction context will include camera calibration information and depth correction information. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEPTH_CORRECTION |
Specifies that the 3D reconstruction context will include depth correction information, but will not include camera calibration information. (more details...) |
You can add one or more of the following values to the above-mentioned value to set the label of the camera or laser. This is necessary when creating a multiple camera-laser pair setup.
For specifying the camera label or laser
label for a given context
|
|||||||||||||||||||||||||||||||||||||||
Combination value |
Description
|
||||||||||||||||||||||||||||||||||||||
Specifies the label for the camera used by this 3D reconstruction context. (more details...) |
|||||||||||||||||||||||||||||||||||||||
Parameters | |||||||||||||||||||||||||||||||||||||||
Specifies the label value. The default value is 1. |
|||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||
Specifies the label for the laser used by this 3D reconstruction context. (more details...) |
|||||||||||||||||||||||||||||||||||||||
Parameters | |||||||||||||||||||||||||||||||||||||||
Specifies the label value. The default value is 1. |
|||||||||||||||||||||||||||||||||||||||
|
Header | Include mil.h. |
Library | Use mil.lib; mil3dmap.lib. |
DLL | Requires mil.dll; mil3dmap.dll. |