| Customize Help
| Save Settings

MimRearrange



Function Map
Synopsis
Copies specified areas of a source buffer to the specified areas of a destination buffer.
Syntax
void MimRearrange(
MIL_ID RearrangeContextImId, //in
MIL_ID SrcImageBufId, //in
MIL_ID DstImageBufId, //in
MIL_INT64 ControlFlag //in
)
Description

This function copies specified areas of a source buffer to specified areas of a destination buffer. The rest of the source image buffer is ignored and not copied.

Before using this function, you must configure the specified image processing context with which operation to perform, using MimControl() with M_MODE. This specifies whether to copy rectangular areas or rows of the source buffer. In addition, you must specify the offsets and sizes of the source and destination areas, using MimPut() with M_XY_SOURCE, M_XY_DESTINATION, and M_XY_SIZE. Note that each array in the rearrangement image processing context must have the same number of elements. The source and destination image buffers need not be of the same size, but must be equal to or larger than the largest supplied source and destination coordinates.

Once the rearrangement image processing context is configured, preprocess the context by calling MimRearrange() with M_PREPROCESS. If the preprocess operation is not done explicitly (using M_PREPROCESS), it will be done when MimRearrange() is first called. When preprocessing explicitly, the source and destination image buffers can be set to M_NULL. If, however, the source or destination image buffer is provided, it will be used in the preprocess operation, to better optimize future calls.

Note that this function reference has not been updated for a MIL system added during a MIL update. Refer to the MIL system's release note to see which MIL system’s documentation you should use in its place and any possible differences.
Parameters
This function is not supported on the selected boards.
This function reference has not been updated for the selected MIL system. To show the content of this page, choose a second MIL system; refer to the MIL system's release note to see which MIL system’s documentation to choose and any possible differences.
Parameters
RearrangeContextImId

Specifies the identifier of the rearrangement image processing context that indicates how to perform the operation and the locations to copy. This context should be previously allocated using MimAlloc() with M_REARRANGE_CONTEXT.

SrcImageBufId

Specifies the identifier of the source image buffer.

If preprocessing the rearrangement image processing context (using M_PREPROCESS), set this parameter to the identifier of a typical source image buffer. Otherwise, to exclude this buffer from preprocessing, set this parameter to M_NULL.

This image buffer must not have a region of interest (ROI) associated with it. Using an image buffer with an ROI will cause an error.

DstImageBufId

Specifies the identifier of the destination image buffer.

If preprocessing the rearrangement image processing context (using M_PREPROCESS), set this parameter to the identifier of a typical destination image buffer. Otherwise, to exclude this buffer from preprocessing, set this parameter to M_NULL.

This image buffer must not have a region of interest (ROI) associated with it. Using an image buffer with an ROI will cause an error.

ControlFlag

Specifies the operation to perform. This parameter must be set to one of the following values.

function map For specifying the operation to perform
Click to summarizeValue Description
Click to summarize M_DEFAULT

Performs the rearrangement operation.

Click to summarize M_PREPROCESS

Preprocesses the specified image processing context. Note that, if not called explicitly, this operation will be performed automatically upon the first call to MimRearrange().

If the identifier of the source and/or destination image buffer is not set to M_NULL, information about the source and/or destination image buffer will be used in the preprocessing operation.

(summarize)
Compilation information
Header Include mil.h.
Library Use mil.lib; milim.lib.
DLL Requires mil.dll; milim.dll.
REARRANGE CONTEXT PROC NONE PROC NONE DEFAULT PREPROCESS