~ubuntu-branches/ubuntu/precise/insighttoolkit/precise

« back to all changes in this revision

Viewing changes to Utilities/nifti/utils/nifti_tool.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve M. Robbins
  • Date: 2008-12-19 20:16:49 UTC
  • mfrom: (1.2.1 upstream) (4.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20081219201649-drt97guwl2ryt0cn

* New upstream version.
  - patches/nifti-versioning.patch: Remove.  Applied upstream.
  - control:
  - rules: Update version numbers, package names.

* control: Build-depend on uuid-dev (gdcm uses it).

* copyright: Update download URL.

* rules: Adhere to parallel=N in DEB_BUILD_OPTIONS by setting MAKEFLAGS.

* compat: Set to 7.
* control: Update build-dep on debhelper to version >= 7.

* CMakeCache.txt.debian: Set CMAKE_BUILD_TYPE to "RELEASE" so that we
  build with -O3 (not -O2), necessary to optimize the templated code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
            /* action options (flags) */
18
18
   int      check_hdr,  check_nim;
19
19
   int      diff_hdr,   diff_nim;
20
 
   int      disp_hdr,   disp_nim;
 
20
   int      disp_hdr,   disp_nim, disp_ana;
21
21
   int      disp_exts,  add_exts, rm_exts;
22
22
   int      mod_hdr,    mod_nim;
 
23
   int      swap_hdr,   swap_ana, swap_old;
23
24
 
24
25
   int      strip;               /* strip extras from dataset(s)  */
25
26
   int      cbl, cci;            /* -copy_XXX option flags        */
44
45
#define USE_HIST       3
45
46
#define USE_FIELD_HDR  4
46
47
#define USE_FIELD_NIM  5
47
 
#define USE_DTYPES     6
48
 
#define USE_VERSION    7
 
48
#define USE_FIELD_ANA  6
 
49
#define USE_DTYPES     7
 
50
#define USE_VERSION    8
49
51
 
50
52
#define CHECK_NEXT_OPT(n,m,str)                                       \
51
53
   do { if ( (n) >= (m) ) {                                           \
68
70
 
69
71
#define NT_FIELD_NAME_LEN  20       /* more than length of longest name */
70
72
#define NT_HDR_NUM_FIELDS  43       /* in the nifti_1_header struct     */
 
73
#define NT_ANA_NUM_FIELDS  47       /* in the  nifti_analyze75 struct   */
71
74
#define NT_NIM_NUM_FIELDS  63       /* in the nifti_image struct        */
72
75
#define NT_DT_STRING      -0xfff    /* some strange number to abuse...  */
73
76
#define NT_DT_POINTER     -0xfef    /* some strange number to abuse...  */
106
109
int    act_disp_exts  ( nt_opts * opts );
107
110
int    act_disp_hdrs  ( nt_opts * opts );
108
111
int    act_disp_nims  ( nt_opts * opts );
 
112
int    act_disp_anas  ( nt_opts * opts );
109
113
int    act_disp_ts    ( nt_opts * opts );  /* display time series */
110
114
int    act_mod_hdrs   ( nt_opts * opts );
111
115
int    act_mod_nims   ( nt_opts * opts );
 
116
int    act_swap_hdrs  ( nt_opts * opts );
112
117
int    act_rm_ext     ( nt_opts * opts );
113
118
int    act_strip      ( nt_opts * opts );  /* strip extras from datasets */
114
119
 
137
142
int fill_field       (field_s *fp, int type, int offset, int num, char *name);
138
143
int fill_hdr_field_array(field_s * nh_fields);
139
144
int fill_nim_field_array(field_s * nim_fields);
 
145
int fill_ana_field_array(field_s * ah_fields);
140
146
int modify_all_fields(void *basep, nt_opts *opts, field_s *fields, int flen);
141
147
int modify_field     (void * basep, field_s * field, char * data);
142
148
int process_opts     (int argc, char * argv[], nt_opts * opts);