Structure definitions

<< Click to Display Table of Contents >>

Navigation:  TerraPhoto User Guide > Programming Interface > MDL Public Functions >

Structure definitions

Structure definitions

 

// FnPhotoRefGet() info about raster reference

typedef struct {

char    Name[400] ; // Full path to file

double  OrgX ;      // Lower left corner X

double  OrgY ;      // Lower left corner Y

double  SizeX ;     // X size of covered area

double  SizeY ;     // Y size of covered area

int     CntX ;      // X number of pixels

int     CntY ;      // Y number of pixels

int     Fmt ;       // 1051=geotiff, 1052=ecw, 1053=tiff or IMAGEFILE_xxx

int     Views ;     // visibility view bits

BYTE    Bck[4] ;    // Background transparency color RGBT

                    // where T: 0=exact RGB, 1-254=tolerance, 255=not transparent

BYTE    Clr[4] ;    // Foreground color for monochrome images RGB + unused

} PhoRef ;

 

// FnPhotoCamImages() info about possible camera images

typedef struct {

int     CamInd ;   // Camera index

int     Nbr ;      // Image number

int     Outside ;  // Number of vertices outside image

int     HasGrd ;   // Ground exists

double  Dst ;      // Squared distance from camera to furthest vertex

Dp3d    Xyz ;      // Camera position

Dp3d    Vrt[4] ;   // Projection vertices on ground

double  Par1 ;     // Free for caller to use

int     Par2 ;     // Free for caller to use

int     Par3 ;     // Free for caller to use

} PhoCim ;

 

// FnPhotoCameraList() info about mission cameras

typedef struct {

char    Name[40] ;        // Descriptive name

char    RawDir[400] ;     // Directory for input images

char    CameraFile[400] ; // Camera calibration file

int     RawFormat ;       // Raw image file format

int     Accuracy ;        // Positional accuracy 0=low, 1=normal, 2=good

} PhoCam ;