ITK  5.2.0
Insight Toolkit
itkSpatialOrientation.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright NumFOCUS
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 /*=========================================================================
19  *
20  * Portions of this file are subject to the VTK Toolkit Version 3 copyright.
21  *
22  * Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
23  *
24  * For complete copyright, license and disclaimer of warranty information
25  * please refer to the NOTICE file at the top of the ITK source tree.
26  *
27  *=========================================================================*/
28 #ifndef itkSpatialOrientation_h
29 #define itkSpatialOrientation_h
30 
31 namespace itk
32 {
33 namespace SpatialOrientation
34 {
35 // Coordinate orientation codes have a place-value organization such that
36 // an ImageDimension-al sequence of subcodes says both which varies fastest
37 // through which varies slowest, but also which end of the frame of
38 // reference
39 // is considered zero for each of the coordinates. For example, 'RIP'
40 // means
41 // Right to Left varies fastest, then Inferior to Superior, and Posterior
42 // to
43 // Anterior varies the slowest.
44 typedef enum
45 {
53  // ITK_COORDINATE_Historical=16,
54  // ITK_COORDINATE_Future=17
56 
57 typedef enum
58 {
59  // These code place values have to be far enough apart to
60  // separate the CoordinateTerms above.
61  // However, if we added History/Future direction in time,
62  // we would need at least 5 bits per.
66  // Majorness is in terms of rank-minor because
67  // a
68  // fourth dimension, time, would be even More
69  // major than the
70  // PrimaryMajor==TertiaryMinor.
71  // ITK_COORDINATE_QuaternaryMinor=24
73 // Adding time IN GENERAL would make these 8 x 6 = 48 triples into 16
74 // x 24 = 384 4-tuples.
75 // A general fourth dimension would need a unique pair of letters to
76 // add to the code;
77 // Maybe use H and F, from History to Future? Maybe use 48 x 2 with
78 // time ALWAYS highest
79 // order, or 48 x 2 x 2, with 3-space always highest or lowest order?
80 // Multispectra might be
81 // co-registered and pieced together.... PD-T2 interleaving of
82 // slices is handled with choosing
83 // which spectrum to load via the prototypical file name.
84 typedef enum
85 {
111 
136 
161 
186 
211 
237 // ^^^
238 // |||
239 // ||\Sequential indexes are separated by (planes=rows*columns) memory
240 // locations
241 // |\Sequential indexes are separated by rows memory locations (sweep out
242 // a plane)
243 // \Sequential indexes are adjacent memory locations (sweep out a row)
244 
245 #ifndef __TEMPORARILY_INCLUDED_IN_COMPILATIONS__
246 typedef enum
247 {
249  /* is Inferior Right Posterior */
250 
252  /* is Inferior Right Anterior */
253 
255  /* is Inferior Left Posterior */
256 
258  /* is Inferior Left Anterior */
259 
261  /* is Superior Right Posterior */
262 
264  /* is Superior Right Anterior */
265 
267  /* is Superior Left Posterior */
268 
270  /* is Superior Left Anterior */
272 #endif
273 } // end of namespace SpatialOrientation
274 } // end namespace itk
275 
276 #endif
itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_LAS
Definition: itkSpatialOrientation.h:158
itk::SpatialOrientation::ITK_COORDINATE_Inferior
Definition: itkSpatialOrientation.h:51
itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_SRA
Definition: itkSpatialOrientation.h:130
itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_IPR
Definition: itkSpatialOrientation.h:187
itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_SPR
Definition: itkSpatialOrientation.h:190
itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_ALI
Definition: itkSpatialOrientation.h:171
itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_LIP
Definition: itkSpatialOrientation.h:90
itk::SpatialOrientation::ITK_COORDINATE_Right
Definition: itkSpatialOrientation.h:47
itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_PIR
Definition: itkSpatialOrientation.h:212
itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_SLP
Definition: itkSpatialOrientation.h:121
itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_IPL
Definition: itkSpatialOrientation.h:199
itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_IRP
Definition: itkSpatialOrientation.h:112
itk::SpatialOrientation::ITK_COORDINATE_PrimaryMinor
Definition: itkSpatialOrientation.h:63
itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_SAL
Definition: itkSpatialOrientation.h:208
itk::SpatialOrientation::ITK_COORDINATE_Superior
Definition: itkSpatialOrientation.h:52
itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_RSP
Definition: itkSpatialOrientation.h:93
itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_PSR
Definition: itkSpatialOrientation.h:215
itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_LPI
Definition: itkSpatialOrientation.h:140
itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_SRP
Definition: itkSpatialOrientation.h:118
itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_RPS
Definition: itkSpatialOrientation.h:149
itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_LSP
Definition: itkSpatialOrientation.h:96
itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_ALS
Definition: itkSpatialOrientation.h:183
itk::SpatialOrientation::ITK_COORDINATE_Posterior
Definition: itkSpatialOrientation.h:49
itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_SLA
Definition: itkSpatialOrientation.h:133
itk::SpatialOrientation::CoordinateMajornessTerms
CoordinateMajornessTerms
Definition: itkSpatialOrientation.h:57
itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_LIA
Definition: itkSpatialOrientation.h:102
itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_SPL
Definition: itkSpatialOrientation.h:202
itk::SpatialOrientation::ITK_COORDINATE_TertiaryMinor
Definition: itkSpatialOrientation.h:65
itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_IAR
Definition: itkSpatialOrientation.h:193
itk::SpatialOrientation::ITK_COORDINATE_Left
Definition: itkSpatialOrientation.h:48
itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_AIR
Definition: itkSpatialOrientation.h:218
itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_PRS
Definition: itkSpatialOrientation.h:174
itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_PIL
Definition: itkSpatialOrientation.h:224
itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_LSA
Definition: itkSpatialOrientation.h:108
itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_ASR
Definition: itkSpatialOrientation.h:221
itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_RSA
Definition: itkSpatialOrientation.h:105
itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_RIP
Definition: itkSpatialOrientation.h:87
itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_SAR
Definition: itkSpatialOrientation.h:196
itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_RAS
Definition: itkSpatialOrientation.h:155
itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_IRA
Definition: itkSpatialOrientation.h:124
itk::SpatialOrientation::ValidOriginFlags
ValidOriginFlags
Definition: itkSpatialOrientation.h:246
itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_INVALID
Definition: itkSpatialOrientation.h:86
itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_PRI
Definition: itkSpatialOrientation.h:162
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_ILA
Definition: itkSpatialOrientation.h:127
itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_ILP
Definition: itkSpatialOrientation.h:115
itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_PLI
Definition: itkSpatialOrientation.h:165
itk::SpatialOrientation::ValidCoordinateOrientationFlags
ValidCoordinateOrientationFlags
Definition: itkSpatialOrientation.h:84
itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_ASL
Definition: itkSpatialOrientation.h:233
itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_PLS
Definition: itkSpatialOrientation.h:177
itk::SpatialOrientation::ITK_COORDINATE_UNKNOWN
Definition: itkSpatialOrientation.h:46
itk::SpatialOrientation::ITK_COORDINATE_Anterior
Definition: itkSpatialOrientation.h:50
itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_RIA
Definition: itkSpatialOrientation.h:99
itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_ARS
Definition: itkSpatialOrientation.h:180
itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_RPI
Definition: itkSpatialOrientation.h:137
itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_RAI
Definition: itkSpatialOrientation.h:143
itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_LPS
Definition: itkSpatialOrientation.h:152
itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_LAI
Definition: itkSpatialOrientation.h:146
itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_ARI
Definition: itkSpatialOrientation.h:168
itk::SpatialOrientation::ITK_COORDINATE_SecondaryMinor
Definition: itkSpatialOrientation.h:64
itk::SpatialOrientation::CoordinateTerms
CoordinateTerms
Definition: itkSpatialOrientation.h:44
itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_IAL
Definition: itkSpatialOrientation.h:205
itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_AIL
Definition: itkSpatialOrientation.h:230
itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_PSL
Definition: itkSpatialOrientation.h:227