|
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_ST "bi_stats"
|
|
#define CORR_ST "correlate"
|
|
#define MAX_SUB_BRICKS 2000
|
|
#define POINTS_ST "points"
|
|
#define R_MAX_AFNI_DSETS 3
|
|
#define SLICE_VALS_ST "slice_vals"
|
|
#define UTEST1_ST "u_test_1m"
|
|
#define UTEST_ST "u_test"
|
|
Typedef Documentation
Enumeration Type Documentation
|
- 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] |
|
void assign_min_max |
( |
float * |
, |
|
|
long |
, |
|
|
float * |
, |
|
|
float * |
|
|
) |
[static] |
|
int check_usage |
( |
int |
, |
|
|
char ** |
, |
|
|
mask_opt_s * |
|
|
) |
[static] |
|
void do_stats |
( |
r_afni_s * |
, |
|
|
float * |
, |
|
|
long |
, |
|
|
float |
, |
|
|
float |
, |
|
|
int |
, |
|
|
FILE * |
, |
|
|
long * |
, |
|
|
float * |
, |
|
|
float * |
|
|
) |
[static] |
|
int file_exists |
( |
char * |
, |
|
|
char * |
|
|
) |
[static] |
|
char* fill_afni_struct |
( |
r_afni_s * |
|
) |
[static] |
|
long get_mask_size |
( |
r_afni_s * |
, |
|
|
int |
, |
|
|
int |
|
|
) |
[static] |
|
long mask_all_shorts_to_float |
( |
r_afni_s * |
, |
|
|
int |
, |
|
|
int |
, |
|
|
float * |
|
|
) |
[static] |
|
long mask_shorts_to_float |
( |
r_afni_s * |
, |
|
|
float * |
, |
|
|
int |
, |
|
|
int |
, |
|
|
int |
|
|
) |
[static] |
|
long mask_shorts_to_short |
( |
r_afni_s * |
, |
|
|
short * |
, |
|
|
int |
, |
|
|
int |
, |
|
|
int |
|
|
) |
[static] |
|
int num_places |
( |
float |
, |
|
|
int |
|
|
) |
[static] |
|
int op_type |
( |
char * |
|
) |
[static] |
|
FILE* open_file |
( |
char * |
, |
|
|
char * |
|
|
) |
[static] |
|
void print_empty_stats |
( |
FILE * |
|
) |
[static] |
|
void print_stats_header |
( |
FILE * |
|
) |
[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] |
|
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 );
00403 }
|
void usage |
( |
char * |
, |
|
|
char * |
, |
|
|
int |
, |
|
|
mask_opt_s * |
|
|
) |
[static] |
|
Variable Documentation
int gr_num_ops = 2 [static]
|
|
int gr_num_yn_strings = 2 [static]
|
|
char* gr_op_strings[] [static]
|
|
char* gr_yn_strings[] = { "y", "n" } [static]
|
|
|