MIL_ID SystemId, | //in |
MIL_ID SrcModelId, | //in |
MIL_DOUBLE Angle, | //in |
MIL_INT64 InterpolationMode, | //in |
MIL_INT64 ModelType, | //in |
MIL_ID *NewModelIdPtr | //out |
This function allocates a new model and initializes it with the rotated version of the specified source model.
This function has the same effect as creating an M_NORMALIZED model (without M_CIRCULAR_OVERSCAN) for which a single angle is specified (that is, delta minimum and maximum are set to 0).
Note that the allocated model size is usually greater than the size of its source, due to the rectangular shape of the model and the nature of the rotation operation. The additional pixel locations produced by the rotation, which have no corresponding pixels in the source model, are set to "don't care" values. The size (X and Y) of the new model can be inquired, using MpatInquire().
Note that the settings of the source model are copied to the new model. You can change any of the model's search parameters (using any appropriate MpatSet...() function), except its angle (MpatSetAngle() function).
Once you have a rotated version of a model, if you no longer require the original source model, it can be deleted with MpatFree().
Specifies the system on which to allocate the rotated model.
This parameter should be set to one of the values in the following table.
For specifying the system
identifier
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_DEFAULT_HOST |
Specifies the default Host system of the current MIL application. |
||||||||||||||||||||||||||||||||||||||
MIL system identifier |
Specifies a valid system identifier, previously allocated using MsysAlloc(). |
Specifies the identifier of the source model. It must be an M_NORMALIZED model without overscan data. A new rotated model is generated from this model.
Specifies the angle at which to rotate the model in a counter-clockwise direction. This parameter can be set to any value from 0° to 360°.
Specifies the mode of interpolation. This parameter must be set to one of the values below.
For specifying interpolation
mode
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_NEAREST_NEIGHBOR. |
||||||||||||||||||||||||||||||||||||||
M_BICUBIC |
Specifies bicubic interpolation. |
||||||||||||||||||||||||||||||||||||||
M_BILINEAR |
Specifies bilinear interpolation. |
||||||||||||||||||||||||||||||||||||||
M_NEAREST_NEIGHBOR |
Specifies nearest neighbor interpolation. |
Specifies the type of the new model. This parameter must be set to the value below.
For specifying the type of
model
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_NORMALIZED |
Searches for the position and match score of a model occurrence in a target image, using MpatFindModel() and MpatFindMultipleModel(). |
Header | Include mil.h. |
Library | Use mil.lib; milpat.lib. |
DLL | Requires mil.dll; milpat.dll. |