Doxygen Source Code Documentation
        
Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals   Search   
overfim.h
Go to the documentation of this file.00001 
00002 
00003 
00004 
00005 
00006    
00007 #ifndef FD2_OVER_FIM
00008 #define FD2_OVER_FIM
00009 
00010 #ifdef EXT
00011 #  undef EXT
00012 #endif
00013 
00014 #ifdef INIT
00015 #  undef INIT
00016 #endif
00017 
00018 #ifdef MAIN
00019 #   define EXT
00020 #   define INIT(x) x
00021 #else
00022 #   define EXT extern
00023 #   define INIT(x) 
00024 #endif
00025 
00026 EXT int RWC_do_overfim INIT(= 0) ;    
00027 
00028 
00029 
00030 #define RWC_OVFLAG -12345    
00031 
00032 EXT int RWC_nxim , RWC_nyim ;             
00033 
00034 EXT short * RWC_imover INIT(= NULL) ;    
00035 
00036 extern int     RWC_short_overlay() ;
00037 extern short * RWC_create_overlay() ;
00038 
00039 
00040 
00041 #define MAX_FIM_COLORS 9
00042 
00043 #ifdef RWCOX_LINUX
00044 #  define DEFAULT_FIM_COLORS 1
00045 #else
00046 #  define DEFAULT_FIM_COLORS 3
00047 #endif
00048 
00049 #ifdef MAIN
00050    char * FIM_poscol[MAX_FIM_COLORS] = { "yellow" ,   
00051                                          "orange" ,
00052                                          "red"    ,
00053                                          "red"    ,
00054                                          "red2"   ,
00055                                          "red2"   ,
00056                                          "red2"   ,
00057                                          "red3"   ,
00058                                          "red3"     } ;
00059 
00060    char * FIM_negcol[MAX_FIM_COLORS] = { "cyan"       ,
00061                                          "dodgerblue" ,
00062                                          "blue"       ,
00063                                          "blue"       ,
00064                                          "blue2"      ,
00065                                          "blue2"      ,
00066                                          "blue2"      ,
00067                                          "blue3"      ,
00068                                          "blue3"       } ;
00069 #endif
00070 
00071 EXT int RWC_fim_colors INIT(= 0) ;
00072 
00073 EXT float RWC_fim_thresh[MAX_FIM_COLORS] ;
00074 EXT short RWC_fim_colors_pos[MAX_FIM_COLORS] ;
00075 EXT short RWC_fim_colors_neg[MAX_FIM_COLORS] ;
00076 
00077 #define MAX_EXTRA_COLORS 32  
00078 
00079 EXT short extra_color_x11[MAX_EXTRA_COLORS] ;
00080 
00081 EXT int EXTRA_STD_colors() ;
00082 EXT void add_extra_color() ;
00083 EXT void RWC_init_fim_colors() ;
00084 
00085 
00086 
00087 #define REF_FLOAT_SINGLE   
00088 #define VOX_SHORT          
00089 #include "pcor.h"
00090 #include "ts.h"
00091 
00092 #define MAX_NUMORT 9
00093 #define MAX_POLORT 3
00094 
00095 EXT int RWC_numort INIT(= 0) , RWC_polort INIT(= 0) ;
00096 EXT float RWC_pcthresh INIT(= 0.5) ;
00097 
00098 EXT references * RWC_refs   INIT(= NULL) ;
00099 EXT voxel_corr * RWC_voxcor INIT(= NULL) ;
00100 
00101 EXT time_series * RWC_ideal INIT(= NULL) ;
00102 EXT time_series * RWC_ort[MAX_NUMORT] ;
00103 
00104 #ifndef MIN
00105 #define MIN(x,y) (((x)<(y)) ? (x) : (y))
00106 #endif
00107 
00108 #ifndef MAX
00109 #define MAX(x,y) (((x)>(y)) ? (x) : (y))
00110 #endif
00111 
00112 #endif