Skip to content

AFNI/NIfTI Server

Sections
Personal tools
You are here: Home » AFNI » Documentation

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 /* user options */
00018 typedef struct
00019 {
00020     char      * gpar_file;              /* AFNI grid parent filename    */
00021     char      * outfile_1D;             /* filename for ascii output    */
00022     char      * outfile_niml;           /* filename for NIML output     */
00023     char      * spec_file;              /* surface specification file   */
00024     char      * sv_file;                /* AFNI surface volume dataset  */
00025     char      * cmask_cmd;              /* 3dcalc style mask command    */
00026     char      * map_str;                /* how to map surf(s) to dset   */
00027     char      * snames[V2S_MAX_SURFS];  /* list of surfaces to use      */
00028     int         gp_index;               /* grid parent sub-brick        */
00029     int         no_head;                /* do not write output headers  */
00030     int         skip_cols;              /* which output columns to skip */
00031     int         first_node;             /* skip nodes before this index */
00032     int         last_node;              /* skip nodes after this index  */
00033     int         use_norms;              /* use normals for segments     */
00034     float       norm_len;               /* signed length of normal      */
00035     int         norm_dir;               /* default, keep or reverse     */
00036     int         debug;                  /* level of debug output        */
00037     int         dnode;                  /* node watched for debug       */
00038     char      * f_index_str;            /* node or voxel index type     */
00039     int         f_steps;                /* # int steps for mask2 map    */
00040     float       f_p1_fr;                /* fractional dist: add to p1   */
00041     float       f_pn_fr;                /* fractional dist: add to pn   */
00042     float       f_p1_mm;                /* mm distance to add to p1     */
00043     float       f_pn_mm;                /* mm distance to add to pn     */
00044     v2s_oob_t   oob;                    /* display info for oob nodes   */
00045     v2s_oob_t   oom;                    /* display info for oom nodes   */
00046 } opts_t;
00047 
00048 /* ---- function prototypes ---- */
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   /* _3dVOL2SURF_H_ */
 

Powered by Plone

This site conforms to the following standards: