MIL_ID CalibrationOrImageId, | //in |
MIL_INT64 TransformType, | //in |
MIL_INT64 ResultType, | //in |
MIL_DOUBLE Result, | //in |
MIL_DOUBLE *TransformedResultPtr | //out |
This function converts a specific result (a length, area, or angle) from its pixel value to its world value or vice-versa. The conversion can be performed according to a calibration context, calibrated image, or corrected image. However, since this function uses the average pixel size to perform the conversion, results will be more accurate if you use a corrected image.
Specifies the identifier of the calibration context, calibrated image, or corrected image.
When specifying a calibrated image or corrected image, the image cannot be associated with a region of interest (ROI), otherwise an error will occur.
Specifies whether to perform a pixel-to-world or world-to-pixel conversion. This parameter must be set to one of the following values:
For specifying pixel-to-world or
world-to-pixel
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_PIXEL_TO_WORLD |
Converts from pixel to world. |
||||||||||||||||||||||||||||||||||||||
M_WORLD_TO_PIXEL |
Converts from world to pixel. |
Specifies the type of result the given input value represents. This parameter must be set to one of the following values:
For specifying the type of
result
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_ANGLE |
Represents an angle. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_AREA |
Represents an area. |
||||||||||||||||||||||||||||||||||||||
M_LENGTH |
Represents a length (for example, the perimeter of an object). |
||||||||||||||||||||||||||||||||||||||
M_LENGTH_X |
Represents a length in the X-direction only. |
||||||||||||||||||||||||||||||||||||||
M_LENGTH_Y |
Represents a length in the Y-direction only. |
Header | Include mil.h. |
Library | Use mil.lib; milcal.lib. |
DLL | Requires mil.dll; milcal.dll. |