| MIL 10 Reference
| Customize Help
| Save Settings

MregTransformCoordinate



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
Convert a pair of coordinates between two of the following coordinate systems: the global pixel coordinate system, any registered image's pixel coordinate system, and the mosaic's coordinate system.
Syntax
void MregTransformCoordinate(
MIL_ID RegResultId, //in
MIL_INT Source, //in
MIL_INT Destination, //in
MIL_DOUBLE X, //in
MIL_DOUBLE Y, //in
MIL_DOUBLE *ResXPtr, //out
MIL_DOUBLE *ResYPtr, //out
MIL_INT64 ControlFlag //in
)
Description

This function converts a pair of coordinates between two of the following coordinate systems: the global pixel coordinate system, any registered image's pixel coordinate system, and the mosaic's coordinate system.

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
RegResultId

Specifies the registration result buffer that contains the information that will be used to transform the coordinates. The registration result buffer must have been previously allocated on the required system using MregAllocResult() or restored from a file using MregRestore().

Source

Specifies the source coordinate system. This parameter must be set to one of the following values:

function map For the source coordinate system
CollapseValue Description
Collapse M_MOSAIC

Specifies to use the coordinate system relative to which the mosaic will be composed. This coordinate system was specified using MregControl() with M_MOSAIC_STATIC_INDEX.

(summarize)
Collapse M_REGISTRATION_GLOBAL

Specifies the global pixel coordinate system.

Collapse Value

Specifies the index of the registration result element associated with the image whose coordinate system to use.

Destination

Specifies the destination coordinate system. This parameter must be set to one of the following values:

function map For the destination coordinate system
CollapseValue Description
Collapse M_MOSAIC

Specifies to use the coordinate system relative to which the mosaic will be composed. This coordinate system was specified using MregControl() with M_MOSAIC_STATIC_INDEX.

(summarize)
Collapse M_REGISTRATION_GLOBAL

Specifies the global pixel coordinate system.

Collapse Value

Specifies the index of the registration result element associated with the image whose coordinate system to use.

X

Specifies the X-coordinate in the source coordinate system.

Y

Specifies the Y-coordinate in the source coordinate system.

ResXPtr

Specifies the address in which to write the resulting X-coordinate. This coordinate is given in the coordinate system that is specified in the Destination parameter.

ResYPtr

Specifies the address in which to write the resulting Y-coordinate. This coordinate is given in the coordinate system that is specified in the Destination parameter.

ControlFlag

Reserved for future expansion and must be set to M_DEFAULT.

Compilation information
Header Include mil.h.
Library Use mil.lib; milreg.lib.
DLL Requires mil.dll; milreg.dll.
MOSAIC REGISTRATION GLOBAL MOSAIC REGISTRATION GLOBAL