MIL_ID OrientationContextImId, | //in |
MIL_ID SrcImageBufId, | //in |
MIL_ID OrientationResultImId, | //in |
MIL_INT64 ControlFlag | //in |
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.
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. |
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.
Specifies the identifier of the find orientation result buffer. The buffer must have been allocated using MimAllocResult() with M_FIND_ORIENTATION_LIST.
Header | Include mil.h. |
Library | Use mil.lib; milim.lib. |
DLL | Requires mil.dll; milim.dll. |