| Customize Help
| Save Settings

MimFindOrientation



Function Map
Synopsis
Find the dominant orientations of an image buffer.
Syntax
void MimFindOrientation(
MIL_ID OrientationContextImId, //in
MIL_ID SrcImageBufId, //in
MIL_ID OrientationResultImId, //in
MIL_INT64 ControlFlag //in
)
Description

This function finds the dominant orientations of the source image using the consistent spatial patterns in the image. MIL writes the list of dominant orientations (best viewing angles) and their associated score in the specified result buffer. The number of orientations found depends on the number of entries allocated in the find orientation result buffer using MimAllocResult() with M_FIND_ORIENTATION_LIST.

You can read the calculated orientations (angle values) and their associated scores using MimGetResult1d() with M_ANGLE and M_SCORE, respectively.

This function requires the source image buffer to have dimensions that are a power of 2. If the image buffer's dimensions do not meet this criteria, you can use MimControl() with M_MODE and MimControl() with M_INTERPOLATION_MODE to specify how MIL should clip or resize the image for calculations. This will not alter the original image.

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
OrientationContextImId

Specifies the find orientation image processing context.

function map For specifying the find orientation image processing context
Click to summarizeValue Description
Click to summarize M_DEFAULT

Specifies the default M_FIND_ORIENTATION_CONTEXT context with all the controls in the context set to their default value.

Click to summarize Find orientation image processing context ID

Specifies a valid find orientation image processing context identifier, previously allocated using MimAlloc() with M_FIND_ORIENTATION_CONTEXT.

SrcImageBufId

Specifies the identifier of the source image. The buffer used must be a 1-band image buffer.

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.

OrientationResultImId

Specifies the identifier of the find orientation result buffer. The buffer must have been allocated using MimAllocResult() with M_FIND_ORIENTATION_LIST.

ControlFlag

Reserved for future expansion and must be set to M_DEFAULT.

Compilation information
Header Include mil.h.
Library Use mil.lib; milim.lib.
DLL Requires mil.dll; milim.dll.
DEFAULT FIND ORIENTATION CONTEXT FIND ORIENTATION CONTEXT PROC NONE