MIL_ID SrcBufId, | //in |
void *UserArrayPtr | //out |
This function copies data from a specified MIL source buffer to a user-supplied array. If the source buffer has multiple bands, MIL copies all bands, one after the other. The internal data format of the source buffer need not match the data format of the user-supplied array (planar); an internal conversion will be performed if necessary. Note, however, if the formats do match, the operation will be much faster. For more information, refer to MbufGetColor() with M_PLANAR.
If the specified buffer is a binary image buffer, any extra bits to complete a byte in the array are undefined.
If the source buffer is compressed, MIL decompresses the data before copying it to the user-supplied array.
Specifies the identifier of the source buffer.
If the specified buffer is an image buffer with an associated region of interest (ROI), an error will occur.
Data type: array of the same
type as the buffer (SrcBufId) [optionally, in C++: a reference to a
std::vector of the same type
as the buffer]
Required array size: MbufInquire ( M_SIZE_X ) * MbufInquire ( M_SIZE_Y ) * MbufInquire ( M_SIZE_BAND )
Specifies the address of the user array in which to copy the data from the source buffer. Ensure that the user array is large enough to receive the data to be copied from the source buffer.
Header | Include mil.h. |
Library | Use mil.lib. |
DLL | Requires mil.dll. |