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

Description:

Performs automatic point referencing on two photographs. See Autoreferencing for conditions.

Syntax:

"TwoPhotoAutoReference SearchDistance  SearchDistanceDoubling(1=Yes,0=No) MinNumPhotos SetToDoNoProcess(1=Yes,0=No) [Name of automatically referenced points]"

where:

SearchDistance defines how far apart the intersection of the light ray from one marked point and the light ray from another marked point can be before the points are determined to be unmatching (in project units), SearchDistanceDoubling is 1 to double the search distance and reiterate, MinNumPhotos is the minimum number of photos the referenced object point must appear on, SetToDoNoProcess is 1 for Yes and 0 for No and at the end of the command an option name for each point referenced. See the Automatic Referencing Dialog for more background.

Return:

"1 NumMarksReferenced"

where:

NumMarksReferenced is the number of  marks automatically referenced or "0" if this command failed. 

Failure returns

- incorrect number of parameters

- no project is open

- autoreferencing fails

Example:

"TwoPhotoAutoReference 1.983 1 3 1 ar"

or

"TwoPhotoAutoReference 1.983 1 3 1"

or

"TwoPhotoAutoReference 1.983 1 3 1 Names can have spaces"

return "1 14"