| MIL 10 Reference
| Customize Help
| Save Settings

MimFindOrientation



See also
Availability
Not available in MIL-Lite
Available in MIL

Available on Windows
Available on Linux

Available on Non-Matrox computer
Available on Matrox 4Sight-X
Available on Matrox 4Sight GP
Available on Matrox Supersight
function map Function map
Examples
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 if there is complementary information.
Parameters
This function is not supported on the selected boards.
Parameters
OrientationContextImId

Specifies the find orientation image processing context.

function map For specifying the find orientation image processing context
CollapseValue Description
Collapse M_DEFAULT

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

Collapse 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