Doxygen Source Code Documentation
Main Page Alphabetical List Data Structures File List Data Fields Globals Search
SUMA_3dVol2Surf.h
Go to the documentation of this file.00001 #ifndef _3dVOL2SURF_H_
00002 #define _3dVOL2SURF_H_
00003
00004 #define PROG_NAME "3dVol2Surf"
00005
00006 #define V2S_USE_LONG 1
00007 #define V2S_USE_SHORT 2
00008 #define V2S_USE_HIST 3
00009 #define V2S_USE_LIB_HIST 4
00010 #define V2S_USE_VERSION 5
00011
00012 #define V2S_DEBUG_MAX_LEV 5
00013 #define V2S_DEBUG_TEST_NODE 7
00014
00015 #define V2S_M2_STEPS_DEFAULT 2
00016
00017
00018 typedef struct
00019 {
00020 char * gpar_file;
00021 char * outfile_1D;
00022 char * outfile_niml;
00023 char * spec_file;
00024 char * sv_file;
00025 char * cmask_cmd;
00026 char * map_str;
00027 char * snames[V2S_MAX_SURFS];
00028 int gp_index;
00029 int no_head;
00030 int skip_cols;
00031 int first_node;
00032 int last_node;
00033 int use_norms;
00034 float norm_len;
00035 int norm_dir;
00036 int debug;
00037 int dnode;
00038 char * f_index_str;
00039 int f_steps;
00040 float f_p1_fr;
00041 float f_pn_fr;
00042 float f_p1_mm;
00043 float f_pn_mm;
00044 v2s_oob_t oob;
00045 v2s_oob_t oom;
00046 } opts_t;
00047
00048
00049
00050 int check_datum_type ( char * datum_str, int default_type );
00051 int check_map_func ( char * map_str );
00052 int check_norm_dirs ( v2s_opts_t * sopt, v2s_param_t * p, int surf );
00053 int check_outfile ( opts_t * O, v2s_param_t * P );
00054 int copy_surfaces ( v2s_opts_t * sopt, v2s_param_t * p, int nsurf);
00055 int disp_fvec ( char * info, float * f, int len );
00056 int disp_opts_t ( char * info, opts_t * opts );
00057 int final_clean_up ( opts_t *opts, v2s_param_t *p, SUMA_SurfSpecFile *spec );int get_mappable_surfs( SUMA_SurfaceObject ** slist, int how_many, int debug );
00058 int get_surf_data ( v2s_opts_t * sopt, v2s_param_t * p );
00059 int init_options ( opts_t * opts, int argc, char * argv [] );
00060 int print_default_line( FILE * fp, int max_ind, int node_ind,
00061 int vind, int i, int j, int k, float fval );
00062 int read_surf_files ( opts_t * opts, SUMA_SurfSpecFile * spec );
00063 int set_smap_opts ( opts_t * opts, v2s_param_t * p, v2s_opts_t * sopt );
00064 int suma2afni_surf ( v2s_opts_t * sopt, v2s_param_t * p,
00065 SUMA_SurfaceObject * so, int sindex );
00066 int surf_ave_radius ( float * rad, SUMA_SurfaceObject * so, int disp );
00067 int usage ( char * prog, int level );
00068 int validate_datasets ( opts_t * opts, v2s_param_t * p );
00069 int validate_options ( opts_t * opts, v2s_param_t * p );
00070 int validate_surface ( opts_t * opts, v2s_param_t * p );
00071 int write_output ( v2s_opts_t * sopt, v2s_param_t * p );
00072
00073 #endif