This file is indexed.

/usr/include/ITK-4.9/itkSpatialOrientation.h is in libinsighttoolkit4-dev 4.9.0-4ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
/*=========================================================================
 *
 *  Copyright Insight Software Consortium
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0.txt
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 *
 *=========================================================================*/
/*=========================================================================
 *
 *  Portions of this file are subject to the VTK Toolkit Version 3 copyright.
 *
 *  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
 *
 *  For complete copyright, license and disclaimer of warranty information
 *  please refer to the NOTICE file at the top of the ITK source tree.
 *
 *=========================================================================*/
#ifndef itkSpatialOrientation_h
#define itkSpatialOrientation_h

namespace itk
{
namespace SpatialOrientation
{
//  Coordinate orientation codes have a place-value organization such that
//  an ImageDimension-al sequence of subcodes says both which varies fastest
//  through which varies slowest, but also which end of the frame of
//  reference
//  is considered zero for each of the coordinates.  For example, 'RIP'
//  means
//  Right to Left varies fastest, then Inferior to Superior, and Posterior
//  to
//  Anterior varies the slowest.
typedef enum {
  ITK_COORDINATE_UNKNOWN = 0,
  ITK_COORDINATE_Right = 2,
  ITK_COORDINATE_Left = 3,
  ITK_COORDINATE_Posterior = 4, //back
  ITK_COORDINATE_Anterior = 5,  //front
  ITK_COORDINATE_Inferior = 8,  //below
  ITK_COORDINATE_Superior = 9   //above
                                // ITK_COORDINATE_Historical=16,
                                // ITK_COORDINATE_Future=17
  } CoordinateTerms;

typedef enum {
  // These code place values have to be far enough apart to
  // separate the CoordinateTerms above.
  // However, if we added History/Future direction in time,
  // we would need at least 5 bits per.
  ITK_COORDINATE_PrimaryMinor = 0,
  ITK_COORDINATE_SecondaryMinor = 8,
  ITK_COORDINATE_TertiaryMinor = 16
                                 // Majorness is in terms of rank-minor because
                                 // a
                                 // fourth dimension, time, would be even More
                                 // major than the
                                 // PrimaryMajor==TertiaryMinor.
                                 // ITK_COORDINATE_QuaternaryMinor=24
  } CoordinateMajornessTerms;
// Adding time IN GENERAL would make these 8 x 6 = 48 triples into 16
// x 24 = 384 4-tuples.
// A general fourth dimension would need a unique pair of letters to
// add to the code;
// Maybe use H and F, from History to Future? Maybe use 48 x 2 with
// time ALWAYS highest
// order, or 48 x 2 x 2, with 3-space always highest or lowest order?
// Multispectra might be
// co-registered and pieced together.... PD-T2 interleaving of
// slices is handled with choosing
// which spectrum to load via the prototypical file name.
typedef enum {
  ITK_COORDINATE_ORIENTATION_INVALID = ITK_COORDINATE_UNKNOWN,
  ITK_COORDINATE_ORIENTATION_RIP = ( ITK_COORDINATE_Right
                                     << ITK_COORDINATE_PrimaryMinor )
                                   + ( ITK_COORDINATE_Inferior << ITK_COORDINATE_SecondaryMinor )
                                   + ( ITK_COORDINATE_Posterior << ITK_COORDINATE_TertiaryMinor ),
  ITK_COORDINATE_ORIENTATION_LIP = ( ITK_COORDINATE_Left
                                     << ITK_COORDINATE_PrimaryMinor )
                                   + ( ITK_COORDINATE_Inferior << ITK_COORDINATE_SecondaryMinor )
                                   + ( ITK_COORDINATE_Posterior << ITK_COORDINATE_TertiaryMinor ),
  ITK_COORDINATE_ORIENTATION_RSP = ( ITK_COORDINATE_Right
                                     << ITK_COORDINATE_PrimaryMinor )
                                   + ( ITK_COORDINATE_Superior << ITK_COORDINATE_SecondaryMinor )
                                   + ( ITK_COORDINATE_Posterior << ITK_COORDINATE_TertiaryMinor ),
  ITK_COORDINATE_ORIENTATION_LSP = ( ITK_COORDINATE_Left
                                     << ITK_COORDINATE_PrimaryMinor )
                                   + ( ITK_COORDINATE_Superior << ITK_COORDINATE_SecondaryMinor )
                                   + ( ITK_COORDINATE_Posterior << ITK_COORDINATE_TertiaryMinor ),
  ITK_COORDINATE_ORIENTATION_RIA = ( ITK_COORDINATE_Right
                                     << ITK_COORDINATE_PrimaryMinor )
                                   + ( ITK_COORDINATE_Inferior << ITK_COORDINATE_SecondaryMinor )
                                   + ( ITK_COORDINATE_Anterior << ITK_COORDINATE_TertiaryMinor ),
  ITK_COORDINATE_ORIENTATION_LIA = ( ITK_COORDINATE_Left
                                     << ITK_COORDINATE_PrimaryMinor )
                                   + ( ITK_COORDINATE_Inferior << ITK_COORDINATE_SecondaryMinor )
                                   + ( ITK_COORDINATE_Anterior << ITK_COORDINATE_TertiaryMinor ),
  ITK_COORDINATE_ORIENTATION_RSA = ( ITK_COORDINATE_Right
                                     << ITK_COORDINATE_PrimaryMinor )
                                   + ( ITK_COORDINATE_Superior << ITK_COORDINATE_SecondaryMinor )
                                   + ( ITK_COORDINATE_Anterior << ITK_COORDINATE_TertiaryMinor ),
  ITK_COORDINATE_ORIENTATION_LSA = ( ITK_COORDINATE_Left
                                     << ITK_COORDINATE_PrimaryMinor )
                                   + ( ITK_COORDINATE_Superior << ITK_COORDINATE_SecondaryMinor )
                                   + ( ITK_COORDINATE_Anterior << ITK_COORDINATE_TertiaryMinor ),

  ITK_COORDINATE_ORIENTATION_IRP = ( ITK_COORDINATE_Inferior
                                     << ITK_COORDINATE_PrimaryMinor )
                                   + ( ITK_COORDINATE_Right << ITK_COORDINATE_SecondaryMinor )
                                   + ( ITK_COORDINATE_Posterior << ITK_COORDINATE_TertiaryMinor ),
  ITK_COORDINATE_ORIENTATION_ILP = ( ITK_COORDINATE_Inferior
                                     << ITK_COORDINATE_PrimaryMinor )
                                   + ( ITK_COORDINATE_Left << ITK_COORDINATE_SecondaryMinor )
                                   + ( ITK_COORDINATE_Posterior << ITK_COORDINATE_TertiaryMinor ),
  ITK_COORDINATE_ORIENTATION_SRP = ( ITK_COORDINATE_Superior
                                     << ITK_COORDINATE_PrimaryMinor )
                                   + ( ITK_COORDINATE_Right << ITK_COORDINATE_SecondaryMinor )
                                   + ( ITK_COORDINATE_Posterior << ITK_COORDINATE_TertiaryMinor ),
  ITK_COORDINATE_ORIENTATION_SLP = ( ITK_COORDINATE_Superior
                                     << ITK_COORDINATE_PrimaryMinor )
                                   + ( ITK_COORDINATE_Left << ITK_COORDINATE_SecondaryMinor )
                                   + ( ITK_COORDINATE_Posterior << ITK_COORDINATE_TertiaryMinor ),
  ITK_COORDINATE_ORIENTATION_IRA = ( ITK_COORDINATE_Inferior
                                     << ITK_COORDINATE_PrimaryMinor )
                                   + ( ITK_COORDINATE_Right << ITK_COORDINATE_SecondaryMinor )
                                   + ( ITK_COORDINATE_Anterior << ITK_COORDINATE_TertiaryMinor ),
  ITK_COORDINATE_ORIENTATION_ILA = ( ITK_COORDINATE_Inferior
                                     << ITK_COORDINATE_PrimaryMinor )
                                   + ( ITK_COORDINATE_Left << ITK_COORDINATE_SecondaryMinor )
                                   + ( ITK_COORDINATE_Anterior << ITK_COORDINATE_TertiaryMinor ),
  ITK_COORDINATE_ORIENTATION_SRA = ( ITK_COORDINATE_Superior
                                     << ITK_COORDINATE_PrimaryMinor )
                                   + ( ITK_COORDINATE_Right << ITK_COORDINATE_SecondaryMinor )
                                   + ( ITK_COORDINATE_Anterior << ITK_COORDINATE_TertiaryMinor ),
  ITK_COORDINATE_ORIENTATION_SLA = ( ITK_COORDINATE_Superior
                                     << ITK_COORDINATE_PrimaryMinor )
                                   + ( ITK_COORDINATE_Left << ITK_COORDINATE_SecondaryMinor )
                                   + ( ITK_COORDINATE_Anterior << ITK_COORDINATE_TertiaryMinor ),

  ITK_COORDINATE_ORIENTATION_RPI = ( ITK_COORDINATE_Right
                                     << ITK_COORDINATE_PrimaryMinor )
                                   + ( ITK_COORDINATE_Posterior << ITK_COORDINATE_SecondaryMinor )
                                   + ( ITK_COORDINATE_Inferior << ITK_COORDINATE_TertiaryMinor ),
  ITK_COORDINATE_ORIENTATION_LPI = ( ITK_COORDINATE_Left
                                     << ITK_COORDINATE_PrimaryMinor )
                                   + ( ITK_COORDINATE_Posterior << ITK_COORDINATE_SecondaryMinor )
                                   + ( ITK_COORDINATE_Inferior << ITK_COORDINATE_TertiaryMinor ),
  ITK_COORDINATE_ORIENTATION_RAI = ( ITK_COORDINATE_Right
                                     << ITK_COORDINATE_PrimaryMinor )
                                   + ( ITK_COORDINATE_Anterior << ITK_COORDINATE_SecondaryMinor )
                                   + ( ITK_COORDINATE_Inferior << ITK_COORDINATE_TertiaryMinor ),
  ITK_COORDINATE_ORIENTATION_LAI = ( ITK_COORDINATE_Left
                                     << ITK_COORDINATE_PrimaryMinor )
                                   + ( ITK_COORDINATE_Anterior << ITK_COORDINATE_SecondaryMinor )
                                   + ( ITK_COORDINATE_Inferior << ITK_COORDINATE_TertiaryMinor ),
  ITK_COORDINATE_ORIENTATION_RPS = ( ITK_COORDINATE_Right
                                     << ITK_COORDINATE_PrimaryMinor )
                                   + ( ITK_COORDINATE_Posterior << ITK_COORDINATE_SecondaryMinor )
                                   + ( ITK_COORDINATE_Superior << ITK_COORDINATE_TertiaryMinor ),
  ITK_COORDINATE_ORIENTATION_LPS = ( ITK_COORDINATE_Left
                                     << ITK_COORDINATE_PrimaryMinor )
                                   + ( ITK_COORDINATE_Posterior << ITK_COORDINATE_SecondaryMinor )
                                   + ( ITK_COORDINATE_Superior << ITK_COORDINATE_TertiaryMinor ),
  ITK_COORDINATE_ORIENTATION_RAS = ( ITK_COORDINATE_Right
                                     << ITK_COORDINATE_PrimaryMinor )
                                   + ( ITK_COORDINATE_Anterior << ITK_COORDINATE_SecondaryMinor )
                                   + ( ITK_COORDINATE_Superior << ITK_COORDINATE_TertiaryMinor ),
  ITK_COORDINATE_ORIENTATION_LAS = ( ITK_COORDINATE_Left
                                     << ITK_COORDINATE_PrimaryMinor )
                                   + ( ITK_COORDINATE_Anterior << ITK_COORDINATE_SecondaryMinor )
                                   + ( ITK_COORDINATE_Superior << ITK_COORDINATE_TertiaryMinor ),

  ITK_COORDINATE_ORIENTATION_PRI = ( ITK_COORDINATE_Posterior
                                     << ITK_COORDINATE_PrimaryMinor )
                                   + ( ITK_COORDINATE_Right << ITK_COORDINATE_SecondaryMinor )
                                   + ( ITK_COORDINATE_Inferior << ITK_COORDINATE_TertiaryMinor ),
  ITK_COORDINATE_ORIENTATION_PLI = ( ITK_COORDINATE_Posterior
                                     << ITK_COORDINATE_PrimaryMinor )
                                   + ( ITK_COORDINATE_Left << ITK_COORDINATE_SecondaryMinor )
                                   + ( ITK_COORDINATE_Inferior << ITK_COORDINATE_TertiaryMinor ),
  ITK_COORDINATE_ORIENTATION_ARI = ( ITK_COORDINATE_Anterior
                                     << ITK_COORDINATE_PrimaryMinor )
                                   + ( ITK_COORDINATE_Right << ITK_COORDINATE_SecondaryMinor )
                                   + ( ITK_COORDINATE_Inferior << ITK_COORDINATE_TertiaryMinor ),
  ITK_COORDINATE_ORIENTATION_ALI = ( ITK_COORDINATE_Anterior
                                     << ITK_COORDINATE_PrimaryMinor )
                                   + ( ITK_COORDINATE_Left << ITK_COORDINATE_SecondaryMinor )
                                   + ( ITK_COORDINATE_Inferior << ITK_COORDINATE_TertiaryMinor ),
  ITK_COORDINATE_ORIENTATION_PRS = ( ITK_COORDINATE_Posterior
                                     << ITK_COORDINATE_PrimaryMinor )
                                   + ( ITK_COORDINATE_Right << ITK_COORDINATE_SecondaryMinor )
                                   + ( ITK_COORDINATE_Superior << ITK_COORDINATE_TertiaryMinor ),
  ITK_COORDINATE_ORIENTATION_PLS = ( ITK_COORDINATE_Posterior
                                     << ITK_COORDINATE_PrimaryMinor )
                                   + ( ITK_COORDINATE_Left << ITK_COORDINATE_SecondaryMinor )
                                   + ( ITK_COORDINATE_Superior << ITK_COORDINATE_TertiaryMinor ),
  ITK_COORDINATE_ORIENTATION_ARS = ( ITK_COORDINATE_Anterior
                                     << ITK_COORDINATE_PrimaryMinor )
                                   + ( ITK_COORDINATE_Right << ITK_COORDINATE_SecondaryMinor )
                                   + ( ITK_COORDINATE_Superior << ITK_COORDINATE_TertiaryMinor ),
  ITK_COORDINATE_ORIENTATION_ALS = ( ITK_COORDINATE_Anterior
                                     << ITK_COORDINATE_PrimaryMinor )
                                   + ( ITK_COORDINATE_Left << ITK_COORDINATE_SecondaryMinor )
                                   + ( ITK_COORDINATE_Superior << ITK_COORDINATE_TertiaryMinor ),

  ITK_COORDINATE_ORIENTATION_IPR = ( ITK_COORDINATE_Inferior
                                     << ITK_COORDINATE_PrimaryMinor )
                                   + ( ITK_COORDINATE_Posterior << ITK_COORDINATE_SecondaryMinor )
                                   + ( ITK_COORDINATE_Right << ITK_COORDINATE_TertiaryMinor ),
  ITK_COORDINATE_ORIENTATION_SPR = ( ITK_COORDINATE_Superior
                                     << ITK_COORDINATE_PrimaryMinor )
                                   + ( ITK_COORDINATE_Posterior << ITK_COORDINATE_SecondaryMinor )
                                   + ( ITK_COORDINATE_Right << ITK_COORDINATE_TertiaryMinor ),
  ITK_COORDINATE_ORIENTATION_IAR = ( ITK_COORDINATE_Inferior
                                     << ITK_COORDINATE_PrimaryMinor )
                                   + ( ITK_COORDINATE_Anterior << ITK_COORDINATE_SecondaryMinor )
                                   + ( ITK_COORDINATE_Right << ITK_COORDINATE_TertiaryMinor ),
  ITK_COORDINATE_ORIENTATION_SAR = ( ITK_COORDINATE_Superior
                                     << ITK_COORDINATE_PrimaryMinor )
                                   + ( ITK_COORDINATE_Anterior << ITK_COORDINATE_SecondaryMinor )
                                   + ( ITK_COORDINATE_Right << ITK_COORDINATE_TertiaryMinor ),
  ITK_COORDINATE_ORIENTATION_IPL = ( ITK_COORDINATE_Inferior
                                     << ITK_COORDINATE_PrimaryMinor )
                                   + ( ITK_COORDINATE_Posterior << ITK_COORDINATE_SecondaryMinor )
                                   + ( ITK_COORDINATE_Left << ITK_COORDINATE_TertiaryMinor ),
  ITK_COORDINATE_ORIENTATION_SPL = ( ITK_COORDINATE_Superior
                                     << ITK_COORDINATE_PrimaryMinor )
                                   + ( ITK_COORDINATE_Posterior << ITK_COORDINATE_SecondaryMinor )
                                   + ( ITK_COORDINATE_Left << ITK_COORDINATE_TertiaryMinor ),
  ITK_COORDINATE_ORIENTATION_IAL = ( ITK_COORDINATE_Inferior
                                     << ITK_COORDINATE_PrimaryMinor )
                                   + ( ITK_COORDINATE_Anterior << ITK_COORDINATE_SecondaryMinor )
                                   + ( ITK_COORDINATE_Left << ITK_COORDINATE_TertiaryMinor ),
  ITK_COORDINATE_ORIENTATION_SAL = ( ITK_COORDINATE_Superior
                                     << ITK_COORDINATE_PrimaryMinor )
                                   + ( ITK_COORDINATE_Anterior << ITK_COORDINATE_SecondaryMinor )
                                   + ( ITK_COORDINATE_Left << ITK_COORDINATE_TertiaryMinor ),

  ITK_COORDINATE_ORIENTATION_PIR = ( ITK_COORDINATE_Posterior
                                     << ITK_COORDINATE_PrimaryMinor )
                                   + ( ITK_COORDINATE_Inferior << ITK_COORDINATE_SecondaryMinor )
                                   + ( ITK_COORDINATE_Right << ITK_COORDINATE_TertiaryMinor ),
  ITK_COORDINATE_ORIENTATION_PSR = ( ITK_COORDINATE_Posterior
                                     << ITK_COORDINATE_PrimaryMinor )
                                   + ( ITK_COORDINATE_Superior << ITK_COORDINATE_SecondaryMinor )
                                   + ( ITK_COORDINATE_Right << ITK_COORDINATE_TertiaryMinor ),
  ITK_COORDINATE_ORIENTATION_AIR = ( ITK_COORDINATE_Anterior
                                     << ITK_COORDINATE_PrimaryMinor )
                                   + ( ITK_COORDINATE_Inferior << ITK_COORDINATE_SecondaryMinor )
                                   + ( ITK_COORDINATE_Right << ITK_COORDINATE_TertiaryMinor ),
  ITK_COORDINATE_ORIENTATION_ASR = ( ITK_COORDINATE_Anterior
                                     << ITK_COORDINATE_PrimaryMinor )
                                   + ( ITK_COORDINATE_Superior << ITK_COORDINATE_SecondaryMinor )
                                   + ( ITK_COORDINATE_Right << ITK_COORDINATE_TertiaryMinor ),
  ITK_COORDINATE_ORIENTATION_PIL = ( ITK_COORDINATE_Posterior
                                     << ITK_COORDINATE_PrimaryMinor )
                                   + ( ITK_COORDINATE_Inferior << ITK_COORDINATE_SecondaryMinor )
                                   + ( ITK_COORDINATE_Left << ITK_COORDINATE_TertiaryMinor ),
  ITK_COORDINATE_ORIENTATION_PSL = ( ITK_COORDINATE_Posterior
                                     << ITK_COORDINATE_PrimaryMinor )
                                   + ( ITK_COORDINATE_Superior << ITK_COORDINATE_SecondaryMinor )
                                   + ( ITK_COORDINATE_Left << ITK_COORDINATE_TertiaryMinor ),
  ITK_COORDINATE_ORIENTATION_AIL = ( ITK_COORDINATE_Anterior
                                     << ITK_COORDINATE_PrimaryMinor )
                                   + ( ITK_COORDINATE_Inferior << ITK_COORDINATE_SecondaryMinor )
                                   + ( ITK_COORDINATE_Left << ITK_COORDINATE_TertiaryMinor ),
  ITK_COORDINATE_ORIENTATION_ASL = ( ITK_COORDINATE_Anterior
                                     << ITK_COORDINATE_PrimaryMinor )
                                   + ( ITK_COORDINATE_Superior << ITK_COORDINATE_SecondaryMinor )
                                   + ( ITK_COORDINATE_Left << ITK_COORDINATE_TertiaryMinor )
  } ValidCoordinateOrientationFlags;
// ^^^
// |||
// ||\Sequential indexes are separated by (planes=rows*columns) memory
// locations
// |\Sequential indexes are separated by rows memory locations (sweep out
// a plane)
// \Sequential indexes are adjacent memory locations (sweep out a row)

#ifndef __TEMPORARILY_INCLUDED_IN_COMPILATIONS__
typedef enum {
  ITK_ORIGIN_IRP  = 0,        /**< Denotes a zeroCorner (image origin) */
  /* is Inferior Right Posterior */
  ITK_ORIGIN_IRA  = 1,        /**< Denotes a zeroCorner (image origin) */
  /* is Inferior Right Anterior */
  ITK_ORIGIN_ILP  = 2,        /**< Denotes a zeroCorner (image origin) */
  /* is Inferior Left Posterior */
  ITK_ORIGIN_ILA  = 3,        /**< Denotes a zeroCorner (image origin) */
  /* is Inferior Left Anterior */
  ITK_ORIGIN_SRP  = 4,        /**< Denotes a zeroCorner (image origin) */
  /* is Superior Right Posterior */
  ITK_ORIGIN_SRA  = 5,        /**< Denotes a zeroCorner (image origin) */
  /* is Superior Right Anterior */
  ITK_ORIGIN_SLP  = 6,        /**< Denotes a zeroCorner (image origin) */
  /* is Superior Left Posterior */
  ITK_ORIGIN_SLA  = 7 /**< Denotes a zeroCorner (image origin) */
                      /* is Superior Left Anterior */
  } ValidOriginFlags;
#endif
} // end of namespace SpatialOrientation
} // end namespace itk

#endif