MIL_ID SystemId, | //in |
MIL_ID ReferenceDigId, | //in |
MIL_INT64 Attribute, | //in |
MIL_INT64 ControlFlag, | //in |
MIL_INT64 ControlValue, | //in |
MIL_ID *VarContainerOrBufIdPtr | //out |
This function allocates an image buffer or a container (automatically determined by MIL) on the specified system with settings appropriate for grabbing using the specified digitizer. For example, when the digitizer is associated with a 2D camera, typically an image buffer is allocated. If the digitizer is associated with a 3D sensor, typically a container is allocated. When an image buffer is allocated, any required attributes (such as buffer size) are set automatically.
When the image buffer or container is no longer required, free it using MbufFree().
Specifies the MIL system on which to allocate the image buffer or the container. This parameter should be set to one of the following values:
For specifying the MIL 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 the digitizer to use as a reference for determining the settings of the image buffer or container to allocate.
Specifies the usage of the image buffer or container.
This attribute determines whether the buffer or container can be used for a specific purpose.
The values in the table below can be added together to specify multiple attributes. For example, to allocate an image buffer or container for both grabbing and display, specify M_GRAB + M_DISP.
For specifying the buffer or container
usage
|
|||||||||||||||||||||||||||||||||||||||
Value | Description | ||||||||||||||||||||||||||||||||||||||
M_DISP |
Specifies that the object is allocated with the display attribute. If an image buffer is allocated, this attribute specifies that the image buffer can be displayed. If a container is allocated, this attribute specifies that the container can become 3D-displayable. To learn how to make a container 3D-displayable, see the Preparing a container for display or processing section of Chapter 35: 3D Containers. (summarize)Specifies that the object is allocated with the display attribute. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_GRAB |
Specifies that the object is allocated with the grab attribute. This attribute specifies that the image buffer or container can be used to grab data (for example, using MdigGrab(). (summarize)Specifies that the object is allocated with the grab attribute. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PROC |
Specifies that the object is allocated with the processable attribute. If an image buffer is allocated, this attribute specifies that the image buffer can be processed. If you intend to use the image buffer as the source or destination buffer of a processing or analysis operation, you must allocate the image buffer with an M_PROC attribute. If a container is allocated, this attribute specifies that the container can become 3D-processable. To learn how to make a container 3D-processable, see the Preparing a container for display or processing section of Chapter 35: 3D Containers. (summarize)Specifies that the object is allocated with the processable attribute. (more details...) |
Header | Include mil.h. |
Library | Use mil.lib. |
DLL | Requires mil.dll. |