MimFindOrientation
| Board | Supported |
|---|---|
| Host System | Yes |
| V4L2 | Yes |
| Clarity UHD | Yes |
| Concord PoE | No |
| GenTL | Yes |
| GevIQ | Yes |
| GigE Vision | Yes |
| Indio | No |
| Iris GTX | Yes |
| Radient eV-CL | Yes |
| Rapixo CL | Yes |
| Rapixo CoF | Yes |
| Rapixo CXP | Yes |
| USB3 Vision | Yes |
Find the dominant orientations of an image buffer.
Syntax
void MimFindOrientation(
AIL_ID OrientationContextImId, //in
AIL_ID SrcImageBufId, //in
AIL_ID OrientationResultImId, //out
AIL_INT64 ControlFlag //in
)
Description
This function finds the dominant orientations of the source image using the consistent spatial patterns in the image. Aurora Imaging Library 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 Aurora Imaging Library should clip or resize the image for calculations. This will not alter the original image.
Parameters
OrientationContextImId (in, AIL_ID)
Specifies the find orientation image processing context.
For specifying the find orientation image processing context
| Value | Description |
|---|---|
M_DEFAULT | Specifies the default M_FIND_ORIENTATION_CONTEXT context with all the controls in the context set to their default value. |
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 (in, AIL_ID)
Specifies the identifier of the source image. The buffer used must be a 1-band image buffer.
OrientationResultImId (out, AIL_ID)
Specifies the identifier of the find orientation result buffer. The buffer must have been allocated using MimAllocResult with M_FIND_ORIENTATION_LIST.
ControlFlag (in, AIL_INT64)
Reserved for future expansion and must be set to M_DEFAULT.