| Customize Help
| Save Settings

MregTransformCoordinateList



Function Map
Synopsis
Convert a list 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 MregTransformCoordinateList(
MIL_ID RegResultId, //in
MIL_INT Source, //in
MIL_INT Destination, //in
MIL_INT NumPoints, //in
const MIL_DOUBLE *SrcCoordXArrayPtr, //in
const MIL_DOUBLE *SrcCoordYArrayPtr, //in
MIL_DOUBLE *DstCoordXArrayPtr, //out
MIL_DOUBLE *DstCoordYArrayPtr, //out
MIL_INT64 ControlFlag //in
)
Description

Convert a list 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.

NumPoints

Specifies the number of points in the coordinate list.

When using a standard vector (std::vector) overload function in C++, you can pass M_DEFAULT to this parameter and MIL will automatically determine the size based on the number of items in the vector passed to the SrcCoordXArrayPtr or SrcCoordYArrayPtr parameter.

SrcCoordXArrayPtr
Accepts the address of one of the following:
  • array of type MIL_DOUBLE [optionally, in C++: a reference to a constant std::vector<MIL_DOUBLE> ] (and a maximum array rank for C# of 1)
    Required array size:(NumPoints)

Specifies the address of the array of the X-coordinates in the source coordinate system.

SrcCoordYArrayPtr
Accepts the address of one of the following:
  • array of type MIL_DOUBLE [optionally, in C++: a reference to a constant std::vector<MIL_DOUBLE> ] (and a maximum array rank for C# of 1)
    Required array size:(NumPoints)

Specifies the address of the array of the Y-coordinates in the source coordinate system.

DstCoordXArrayPtr
Accepts the address of one of the following:
  • array of type MIL_DOUBLE [optionally, in C++: a reference to a std::vector<MIL_DOUBLE> ] (and a maximum array rank for C# of 1)
    Required array size:(NumPoints)

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.

DstCoordYArrayPtr
Accepts the address of one of the following:
  • array of type MIL_DOUBLE [optionally, in C++: a reference to a std::vector<MIL_DOUBLE> ] (and a maximum array rank for C# of 1)
    Required array size:(NumPoints)

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