1 #ifndef SUMA_SURFCLUST_INCLUDED
2 #define SUMA_SURFCLUST_INCLUDED
3 
4 /* structures to be used by surface clusters functions */
5 
6 typedef struct {
7    int N_Node; /*!< number of nodes in this cluster */
8    int *NodeList; /*!< list of node (indices) in this cluster. Allocated space
9                         is always for more than N_Node elements. But
10                         values beyond NodeList[N_Node-1] are of no meaning. */
11    float *ValueList; /*!< list of corresponding node values. */
12    float totalarea;
13    float totalvalue;
14    float totalabsvalue;
15    float minvalue;
16    float maxvalue;
17    float minabsvalue;
18    float maxabsvalue;
19    float varvalue;
20    int minnode;
21    int maxnode;
22    int minabsnode;
23    int maxabsnode;
24    int centralnode;
25    int weightedcentralnode;
26    float com[3]; /*center of mass * N_Node*/
27    float cen[3]; /*centroid * N_Node */
28    /*int rank;*//* completely useless ... rank is inferred from order in list! */
29 } SUMA_CLUST_DATUM;
30 
31 
32 #endif
33