Model

| HOME | BACK |

Overview

A model object consists of two photo objects, name left photo and right photo.  Other information stored in a model object is base length, RO parameters, and AO parameters.

Each photo, left and right, of the model has a full access to all class functions of photo object.  A model is set when Relative Orientation (RO) is done, and two points from left and right photo of the same feature will have the same y-coordinate.  In other words, there is no y-parallax.  A model coordinate system is introduced when RO is finish.  If Absolute Orientation (AO) is done, the relationship between model coordinate and ground coordinate is established.

It should be noticed that each time a model is oriented, values of  EOP (Exterior Orientation Parameter) of the left and right photo are automatically updated.

 

Member data

Name Data type Meaning
id int ID of model
name String name of model
bx double length of base line in x component of a model
Lphoto Photo left photo object
Rphoto Photo right photo object
RO_para Vector a vector contains relative orientation parameters
AO_para Vector a vector contains absolute orientation parameters

 

Operator

no operator provided

 

Construction function

{Model} ret  =  MODEL([{Photo} argm1, {Photo} argm2])

argm1 = left photo      (default = default of Photo())

argm2 = right photo     (default = default of Photo())

Example:

->Model_1 = Model() an empty model

->Model_1 = Model(ph1, ph2)

a model with "ph1" as the left photo, and "ph2" as the right photo

 

Lfunction

object.ID()        =  {int} left-value

object.NAME()      =  {String} left-value

object.BX()        =  {double} left-value

object.LPHOTO()    =  {Photo} left-value

object.RPHOTO()    =  {Photo} left-value

object.RO_PARA()   =  {Vector} left-value

object.AO_PARA()   =  {Vector} left-value

Example:

->Model_1.bx() = 90.0 set value of bx
->Model_1.ro_para() = vec_ro set vector RO parameters to vec_ro

 

Class function

 A-D  E-H  I-L M-P Q-S T-Z
ANAGLYPH GCP2XMYMZM ID NAME RC2GCP UPDATEROAO
ANGPHTIF   INIT NORMALIZE RC2XMYMZM VECGCP2XMYMZM
AO   LOAD NORM_LEFT RO VECRC2GCP
AO_PARA   LPHOTO NORM_RIGHT RO_PARA VECRC2XMYMZM
BX       RO_PY VECXMYMZM2GCP
DEM       RPHOTO VECXNYN2XPYP
EO       SAVE VECXPYP2GCP
        SAVEDOC VECXPYP2XMYMZM
          VECXPYP2XNYN
          VIDGCP2XMYMZM
          VIDRC2GCP
          VIDRC2XMYMZM
          VIDXMYMZM2GCP
          VIDXNYN2XPYP
          VIDXPYP2GCP
          VIDXPYP2XMYMZM
          VIDXPYP2XNYN
          VLOAD
          XMYMZM2GCP
          XNYN2XPYP
          XPYP2GCP
          XPYP2XMYMZM
          XPYP2XNYN

 


| HOME | BACK |