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  

plug_maskcalc.h File Reference

Go to the source code of this file.


Data Structures

struct  mask_opt_s
struct  r_afni_s

Defines

#define USENOOP   0
#define USEFULL   1
#define USEOTHER   2
#define NO_OP   0
#define STAT_OP   1
#define BI_STAT_OP   2
#define HIST_OP   10
#define CORR_OP   20
#define POINTS_OP   25
#define SLICE_VALS_OP   27
#define UTEST_OP   30
#define UTEST1_OP   40
#define STAT_ST   "stats"
#define BI_STAT_ST   "bi_stats"
#define HIST_ST   "hist"
#define CORR_ST   "correlate"
#define POINTS_ST   "points"
#define SLICE_VALS_ST   "slice_vals"
#define UTEST_ST   "u_test"
#define UTEST1_ST   "u_test_1m"
#define MAX_INPUTS   3
#define MAX_SUB_BRICKS   2000
#define R_MAX_AFNI_DSETS   3
#define R_FILE_L   128
#define R_MESSAGE_L   1024
#define R_MAX_BINS   10000

Typedefs

typedef enum operation_enum op_enum

Enumerations

enum  operation_enum { no_op, hist_op, stats_op, last_op }

Functions

int check_usage (int, char **, mask_opt_s *)
int file_exists (char *, char *)
char * fill_afni_struct (r_afni_s *)
FILE * open_file (char *, char *)
void print_stats_header (FILE *)
void print_empty_stats (FILE *)
char * process (r_afni_s *, mask_opt_s *)
char * process_args (r_afni_s *, mask_opt_s *, PLUGIN_interface *)
u_short r_get_max_u_short (u_short *, int)
int read_dataset (char *, int)
void usage (char *, char *, int, mask_opt_s *)
int op_type (char *)
int assign_afni_floats (r_afni_s *)
void assign_min_max (float *, long, float *, float *)
char * calc_hist (r_afni_s *, mask_opt_s *)
char * calc_stats (r_afni_s *, mask_opt_s *)
void do_stats (r_afni_s *, float *, long, float, float, int, FILE *, long *, float *, float *)
void do_bi_stats (r_afni_s *, mask_opt_s *)
long get_mask_size (r_afni_s *, int, int)
long mask_all_shorts_to_float (r_afni_s *, int, int, float *)
long mask_shorts_to_float (r_afni_s *, float *, int, int, int)
long mask_shorts_to_short (r_afni_s *, short *, int, int, int)
int num_places (float, int)
int short_test (const void *, const void *)

Variables

char * gr_op_strings []
int gr_num_ops = 2
char * gr_yn_strings [] = { "y", "n" }
int gr_num_yn_strings = 2

Define Documentation

#define BI_STAT_OP   2
 

Definition at line 17 of file plug_maskcalc.h.

#define BI_STAT_ST   "bi_stats"
 

Definition at line 28 of file plug_maskcalc.h.

#define CORR_OP   20
 

Definition at line 19 of file plug_maskcalc.h.

#define CORR_ST   "correlate"
 

Definition at line 30 of file plug_maskcalc.h.

#define HIST_OP   10
 

Definition at line 18 of file plug_maskcalc.h.

#define HIST_ST   "hist"
 

Definition at line 29 of file plug_maskcalc.h.

#define MAX_INPUTS   3
 

Definition at line 39 of file plug_maskcalc.h.

#define MAX_SUB_BRICKS   2000
 

Definition at line 40 of file plug_maskcalc.h.

#define NO_OP   0
 

Definition at line 15 of file plug_maskcalc.h.

#define POINTS_OP   25
 

Definition at line 20 of file plug_maskcalc.h.

#define POINTS_ST   "points"
 

Definition at line 31 of file plug_maskcalc.h.

#define R_FILE_L   128
 

Definition at line 43 of file plug_maskcalc.h.

#define R_MAX_AFNI_DSETS   3
 

Definition at line 42 of file plug_maskcalc.h.

#define R_MAX_BINS   10000
 

Definition at line 45 of file plug_maskcalc.h.

Referenced by process_args().

#define R_MESSAGE_L   1024
 

Definition at line 44 of file plug_maskcalc.h.

#define SLICE_VALS_OP   27
 

Definition at line 21 of file plug_maskcalc.h.

#define SLICE_VALS_ST   "slice_vals"
 

Definition at line 32 of file plug_maskcalc.h.

#define STAT_OP   1
 

Definition at line 16 of file plug_maskcalc.h.

#define STAT_ST   "stats"
 

Definition at line 27 of file plug_maskcalc.h.

#define USEFULL   1
 

Definition at line 10 of file plug_maskcalc.h.

#define USENOOP   0
 

Definition at line 9 of file plug_maskcalc.h.

#define USEOTHER   2
 

Definition at line 11 of file plug_maskcalc.h.

#define UTEST1_OP   40
 

Definition at line 23 of file plug_maskcalc.h.

#define UTEST1_ST   "u_test_1m"
 

Definition at line 34 of file plug_maskcalc.h.

#define UTEST_OP   30
 

Definition at line 22 of file plug_maskcalc.h.

#define UTEST_ST   "u_test"
 

Definition at line 33 of file plug_maskcalc.h.


Typedef Documentation

typedef enum operation_enum op_enum
 


Enumeration Type Documentation

enum operation_enum
 

Enumeration values:
no_op 
hist_op 
stats_op 
last_op 

Definition at line 71 of file plug_maskcalc.h.


Function Documentation

int assign_afni_floats r_afni_s   [static]
 

Referenced by fill_afni_struct().

void assign_min_max float *   ,
long   ,
float *   ,
float *   
[static]
 

Referenced by calc_hist(), and calc_stats().

char* calc_hist r_afni_s  ,
mask_opt_s  
[static]
 

Referenced by process().

char* calc_stats r_afni_s  ,
mask_opt_s  
[static]
 

Referenced by process().

int check_usage int   ,
char **   ,
mask_opt_s  
[static]
 

void do_bi_stats r_afni_s  ,
mask_opt_s  
[static]
 

void do_stats r_afni_s  ,
float *   ,
long   ,
float   ,
float   ,
int   ,
FILE *   ,
long *   ,
float *   ,
float *   
[static]
 

Referenced by calc_stats().

int file_exists char *   ,
char *   
[static]
 

Referenced by process_args().

char* fill_afni_struct r_afni_s   [static]
 

Referenced by process_args().

long get_mask_size r_afni_s  ,
int   ,
int   
[static]
 

long mask_all_shorts_to_float r_afni_s  ,
int   ,
int   ,
float *   
[static]
 

Referenced by calc_hist().

long mask_shorts_to_float r_afni_s  ,
float *   ,
int   ,
int   ,
int   
[static]
 

Referenced by calc_stats().

long mask_shorts_to_short r_afni_s  ,
short *   ,
int   ,
int   ,
int   
[static]
 

int num_places float   ,
int   
[static]
 

Referenced by do_stats().

int op_type char *    [static]
 

FILE* open_file char *   ,
char *   
[static]
 

Referenced by process_args().

void print_empty_stats FILE *    [static]
 

Referenced by calc_stats().

void print_stats_header FILE *    [static]
 

Referenced by calc_stats().

char* process r_afni_s  ,
mask_opt_s  
[static]
 

Referenced by main(), and MASKCALC_main().

char* process_args r_afni_s  ,
mask_opt_s  ,
PLUGIN_interface *   
[static]
 

u_short r_get_max_u_short u_short *   ,
int   
[static]
 

Definition at line 1473 of file plug_maxima.c.

01474 {
01475     u_short * usptr, max = *S;
01476     int       c = 0;
01477 
01478     for ( c = 0, usptr = S; c < size; c++, usptr++ )
01479     {
01480         if ( *usptr > max )
01481             max = *usptr;
01482     }
01483 
01484     return max;
01485 }

int read_dataset char *   ,
int   
[static]
 

Referenced by initialize_program(), output_results(), and terminate_program().

int short_test const void *   ,
const void *   
 

Definition at line 391 of file plug_maskcalc.c.

References s2.

00395 {
00396     short * s1 = ( short * )p1;
00397     short * s2 = ( short * )p2;
00398 
00399     if ( *s1 < *s2 )
00400         return -1;
00401 
00402     return ( *s1 > *s2 );       /* if >, return 1, else ==, so 0 */
00403 }

void usage char *   ,
char *   ,
int   ,
mask_opt_s  
[static]
 


Variable Documentation

int gr_num_ops = 2 [static]
 

Definition at line 76 of file plug_maskcalc.h.

int gr_num_yn_strings = 2 [static]
 

Definition at line 78 of file plug_maskcalc.h.

char* gr_op_strings[] [static]
 

Initial value:

        { "hist", "stats" }

Definition at line 74 of file plug_maskcalc.h.

char* gr_yn_strings[] = { "y", "n" } [static]
 

Definition at line 77 of file plug_maskcalc.h.

 

Powered by Plone

This site conforms to the following standards: