Macros | Functions | Variables
ann2fig.cpp File Reference
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <string>
#include <ANN/ANNx.h>
Include dependency graph for ann2fig.cpp:

Go to the source code of this file.

Macros

#define TRANS_X(p)   (offset_x + scale*(p[dim_x]))
 
#define TRANS_Y(p)   (offset_y - scale*(p[dim_y]))
 

Functions

void Error (const char *msg, ANNerr level)
 
void getArgs (int argc, char **argv)
 
 main (int argc, char **argv)
 
ANNbool overlap (const ANNorthRect &box)
 
void readANN ()
 
void readTree (ANNorthRect &bnd_box)
 
void recReadTree (ANNorthRect &box)
 
void set_slice_val (double val)
 
void writeBox (const ANNorthRect &r)
 
void writeCaption (const ANNorthRect &bnd_box, char *caption)
 
void writeHeader ()
 
void writeLine (ANNpoint p0, ANNpoint p1)
 
void writePoint (ANNpoint p)
 

Variables

char caption [STRING_LEN]
 
const double DEF_SLICE_VAL = 0
 
int dim
 
int dim_x = 0
 
int dim_y = 1
 
const char DUMP_SUFFIX [] = {".dmp"}
 
const char FIG_HEAD [] = {"#FIG 3.1"}
 
const char FIG_SUFFIX [] = {".fig"}
 
char file_name [STRING_LEN]
 
ifstream ifile
 
double in_low_x = 1
 
double in_low_y = 1
 
double in_size = 5
 
char infile_name [STRING_LEN]
 
const int MAX_DIM = 1000
 
int n_pts
 
double offset_x
 
double offset_y
 
ofstream ofile
 
char outfile_name [STRING_LEN]
 
int pt_size = 10
 
ANNpointArray pts = NULL
 
double scale
 
double slice_val [MAX_DIM]
 
const int STRING_LEN = 500
 
double u_low_x = 1200
 
double u_low_y = 1200
 
double u_per_in = 1200
 
double u_size = 6000
 

Macro Definition Documentation

#define TRANS_X (   p)    (offset_x + scale*(p[dim_x]))

Definition at line 90 of file ann2fig.cpp.

#define TRANS_Y (   p)    (offset_y - scale*(p[dim_y]))

Definition at line 91 of file ann2fig.cpp.

Function Documentation

void Error ( const char *  msg,
ANNerr  level 
)

Definition at line 97 of file ann2fig.cpp.

void getArgs ( int  argc,
char **  argv 
)

Definition at line 146 of file ann2fig.cpp.

main ( int  argc,
char **  argv 
)

Definition at line 583 of file ann2fig.cpp.

ANNbool overlap ( const ANNorthRect box)

Definition at line 332 of file ann2fig.cpp.

void readANN ( )

Definition at line 514 of file ann2fig.cpp.

void readTree ( ANNorthRect bnd_box)

Definition at line 464 of file ann2fig.cpp.

void recReadTree ( ANNorthRect box)

Definition at line 377 of file ann2fig.cpp.

void set_slice_val ( double  val)

Definition at line 112 of file ann2fig.cpp.

void writeBox ( const ANNorthRect r)

Definition at line 277 of file ann2fig.cpp.

void writeCaption ( const ANNorthRect bnd_box,
char *  caption 
)

Definition at line 308 of file ann2fig.cpp.

void writeHeader ( )

Definition at line 256 of file ann2fig.cpp.

void writeLine ( ANNpoint  p0,
ANNpoint  p1 
)

Definition at line 294 of file ann2fig.cpp.

void writePoint ( ANNpoint  p)

Definition at line 265 of file ann2fig.cpp.

Variable Documentation

char caption[STRING_LEN]

Definition at line 66 of file ann2fig.cpp.

const double DEF_SLICE_VAL = 0

Definition at line 58 of file ann2fig.cpp.

int dim

Definition at line 81 of file ann2fig.cpp.

int dim_x = 0

Definition at line 69 of file ann2fig.cpp.

int dim_y = 1

Definition at line 70 of file ann2fig.cpp.

const char DUMP_SUFFIX[] = {".dmp"}

Definition at line 60 of file ann2fig.cpp.

const char FIG_HEAD[] = {"#FIG 3.1"}

Definition at line 59 of file ann2fig.cpp.

const char FIG_SUFFIX[] = {".fig"}

Definition at line 61 of file ann2fig.cpp.

char file_name[STRING_LEN]

Definition at line 63 of file ann2fig.cpp.

ifstream ifile

Definition at line 68 of file ann2fig.cpp.

double in_low_x = 1

Definition at line 74 of file ann2fig.cpp.

double in_low_y = 1

Definition at line 75 of file ann2fig.cpp.

double in_size = 5

Definition at line 73 of file ann2fig.cpp.

char infile_name[STRING_LEN]

Definition at line 64 of file ann2fig.cpp.

const int MAX_DIM = 1000

Definition at line 57 of file ann2fig.cpp.

int n_pts

Definition at line 82 of file ann2fig.cpp.

double offset_x

Definition at line 86 of file ann2fig.cpp.

double offset_y

Definition at line 87 of file ann2fig.cpp.

ofstream ofile

Definition at line 67 of file ann2fig.cpp.

char outfile_name[STRING_LEN]

Definition at line 65 of file ann2fig.cpp.

int pt_size = 10

Definition at line 79 of file ann2fig.cpp.

ANNpointArray pts = NULL

Definition at line 83 of file ann2fig.cpp.

double scale

Definition at line 85 of file ann2fig.cpp.

double slice_val[MAX_DIM]

Definition at line 71 of file ann2fig.cpp.

const int STRING_LEN = 500

Definition at line 56 of file ann2fig.cpp.

double u_low_x = 1200

Definition at line 77 of file ann2fig.cpp.

double u_low_y = 1200

Definition at line 78 of file ann2fig.cpp.

double u_per_in = 1200

Definition at line 72 of file ann2fig.cpp.

double u_size = 6000

Definition at line 76 of file ann2fig.cpp.



xiaoqiang_depth_image_proc
Author(s): Xie fusheng
autogenerated on Mon Jun 10 2019 15:53:04