MIL_ID CalculateMapSizeContext3dimId, | //in |
MIL_ID SrcContainerBufId, | //in |
MIL_ID AABox3dgeoId, | //in |
MIL_INT64 ControlFlag, | //in |
MIL_INT *DepthMapSizeXPtr, | //out |
MIL_INT *DepthMapSizeYPtr | //out |
This function estimates a recommended depth map image buffer size in X and Y, using the dimensions of the source container's point cloud. You can optionally limit the calculation to consider only points inside a specified axis-aligned 3D box geometry.
The recommended size is useful for allocating a depth map image buffer (using MbufAlloc2d()) before calling M3dimProject().
Using M3dimControl(), you can set the depth map's required pixel aspect ratio. You can also set a fixed size along 1 dimension, and the function will calculate the necessary size of the other dimension (for either pixel size or image buffer size). Default settings let M3dimCalculateMapSize() do all calculations.
Specifies a calculate map size 3D image processing context.
For specifying the calculate map size 3D image
processing context identifier
|
|||||||||||||||||||||||||||||||||||||||
Value | Description | ||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default calculate map size 3D image processing context of the current MIL application. The operation will use default values for all calculate map size context control types (M3dimControl()). (summarize)Specifies the default calculate map size 3D image processing context of the current MIL application. (more details...) |
||||||||||||||||||||||||||||||||||||||
MIL calculate map size 3D image
processing context identifier |
Specifies the identifier of a calculate map size 3D image processing context, previously allocated using M3dimAlloc() with M_CALCULATE_MAP_SIZE_CONTEXT. If a calculate map size context is specified, the function applies the calculate map size control settings specified using M3dimControl(). (summarize)Specifies the identifier of a calculate map size 3D image processing context, previously allocated using M3dimAlloc() with M_CALCULATE_MAP_SIZE_CONTEXT. (more details...) |
Specifies the identifier of the source container containing a 3D-processable point cloud. The container must be 3D-processable (that is, if you call MbufInquireContainer() with M_3D_PROCESSABLE, the function returns M_PROCESSABLE).
The container must have been previously allocated using MbufAllocContainer() with M_PROC. The container must have the components M_COMPONENT_RANGE and M_COMPONENT_CONFIDENCE.
Specifies the identifier of the axis-aligned 3D box geometry object to use to limit the calculation to points within the box. The 3D box geometry object must have been previously allocated using M3dgeoAlloc() with M_GEOMETRY, and defined as a box.
If a 3D box geometry object is not required, set this parameter to M_NULL.
Header | Include mil.h. |
Library | Use mil.lib; mil3dim.lib. |
DLL | Requires mil.dll; mil3dim.dll. |