| Customize Help
| Save Settings

MregTransformCoordinate



Function Map
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 which MIL system’s documentation you should use in its place and any possible differences.
Parameters
This function is not supported on the selected boards.
This function reference has not been updated for the selected MIL system. To show the content of this page, choose a second MIL system; refer to the MIL system's release note to see which MIL system’s documentation to choose and any possible differences.
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
Click to summarizeValue Description
Click to summarize 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)
Click to summarize M_REGISTRATION_GLOBAL

Specifies the global pixel coordinate system.

Click to summarize 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
Click to summarizeValue Description
Click to summarize 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)
Click to summarize M_REGISTRATION_GLOBAL

Specifies the global pixel coordinate system.

Click to summarize 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