PreviousNext
Help > Programming PhotoModeler - Scripting/DDE Interface > Commands > GetMarkedPointByIndex
GetMarkedPointByIndex

Description:

Return a Marked Point’s statistics by index.

Syntax:

"GetMarkedPointByIndex PhotoID Index "

where:

PhotoID is the id number of the photograph (>=1) and index ranges betweem 1 to N (N is number of marked points on photo). You use by looping, calling this command, and incrementing the index until a failure code is returned.

Return:

"1 X Y ResidualX, ResidualY, ResidualLength OpNum" where:

X and Y are the image coordinates (in pixels) of the mark location, ResidualX and ResidualY are the X and Y values of the mark’s residual, ResidualLength is the length of the mark’s residual vector and OpNum is the id number of the mark’s associated Object Point or "0" if this command failed.  Note if the point is not 3D the residual values will be returned as 0.

Failure returns

- incorrect number of parameters

- no project is open

- the photo number is invalid

- the index number is invalid

Example:

"GetMarkedPointByIndex 1 4"

return "1 939.565 1115.64 -0.0688 0.0572 0.0895 9"