ITK  4.10.0
Insight Segmentation and Registration Toolkit
itkBruker2DSEQImageIO.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
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  *=========================================================================*/
36 #ifndef itkBruker2DSEQImageIO_h
37 #define itkBruker2DSEQImageIO_h
38 
39 
40 #include "itkImageIOBase.h"
41 #include "itkVectorContainer.h"
42 
43 namespace itk
44 {
114 {
115 public:
120 
122  itkNewMacro(Self);
123 
125  itkTypeMacro(Bruker2DSEQImageIO, Superclass);
126 
134 
135  /*-------- This part of the interfaces deals with reading data. ----- */
136 
142  virtual bool CanReadFile(const char *FileNameToRead) ITK_OVERRIDE;
143 
145  virtual void ReadImageInformation() ITK_OVERRIDE;
146 
148  virtual void Read(void *buffer) ITK_OVERRIDE;
149 
150  /*-------- This part of the interfaces deals with writing data. ----- */
151 
158  virtual bool CanWriteFile( const char *itkNotUsed(FileNameToWrite) ) ITK_OVERRIDE
159  {
160  return false;
161  }
162 
164  virtual void WriteImageInformation() ITK_OVERRIDE
165  {
166  return;
167  }
168 
171  virtual void Write( const void *itkNotUsed(buffer) ) ITK_OVERRIDE
172  {
173  return;
174  }
175 
176 protected:
179  virtual void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
180 
181 private:
182 
183  Bruker2DSEQImageIO(const Self &) ITK_DELETE_FUNCTION;
184  void operator=(const Self &) ITK_DELETE_FUNCTION;
185 
186  void SwapBytesIfNecessary(void *buffer, SizeValueType numberOfPixels);
187 
189 };
190 
191 extern const char *const RECO_BYTE_ORDER;
192 extern const char *const RECO_FOV;
193 extern const char *const RECO_SIZE;
194 extern const char *const RECO_WORDTYPE;
195 extern const char *const RECO_IMAGE_TYPE;
196 extern const char *const RECO_TRANSPOSITION;
197 extern const char *const ACQ_DIM;
198 extern const char *const NI; /*IMND_N_SLICES*/
199 extern const char *const NR;
200 extern const char *const ACQ_SLICE_THICK; /*IMND_SLICE_THICK*/
201 extern const char *const NECHOES; /*IMND_N_ECHO_IMAGES*/
202 extern const char *const ACQ_SLICE_SEPN; /*IMND_SLICE_SEPN*/
203 extern const char *const ACQ_SLICE_SEPN_MODE;
204 extern const char *const ACQ_ECHO_TIME;
205 extern const char *const ACQ_REPETITION_TIME;
206 extern const char *const ACQ_INVERSION_TIME;
207 } // end namespace itk
208 
209 #endif // itkBruker2DSEQImageIO_h
const char *const RECO_IMAGE_TYPE
const char *const ACQ_INVERSION_TIME
VectorContainer< unsigned int, double > RECOFOVContainerType
virtual bool CanReadFile(const char *FileNameToRead) override
void operator=(const Self &) ITK_DELETE_FUNCTION
const char *const NI
Abstract superclass defines image IO interface.
virtual void PrintSelf(std::ostream &os, Indent indent) const override
VectorContainer< unsigned int, double > ACQEchoTimeContainerType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
Definition: itkArray.h:30
const char *const NR
const char *const RECO_TRANSPOSITION
const char *const ACQ_SLICE_THICK
const char *const RECO_BYTE_ORDER
const char *const ACQ_DIM
const char *const RECO_FOV
virtual void ReadImageInformation() override
::itk::SizeValueType SizeValueType
const char *const NECHOES
const char *const RECO_SIZE
VectorContainer< unsigned int, double > ACQSliceSepnContainerType
const char *const ACQ_ECHO_TIME
const char *const ACQ_SLICE_SEPN
ImageIOBase::ByteOrder m_MachineByteOrder
virtual void Write(const void *) override
const char *const ACQ_REPETITION_TIME
VectorContainer< unsigned int, double > ACQRepetitionTimeContainerType
virtual void Read(void *buffer) override
Define a front-end to the STL "vector" container that conforms to the IndexedContainerInterface.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
const char *const ACQ_SLICE_SEPN_MODE
VectorContainer< unsigned int, double > ACQInversionTimeContainerType
Class that defines how to read Bruker file format. Bruker IMAGE FILE FORMAT - The following is a brie...
SmartPointer< Self > Pointer
void SwapBytesIfNecessary(void *buffer, SizeValueType numberOfPixels)
virtual bool CanWriteFile(const char *) override
const char *const RECO_WORDTYPE
VectorContainer< unsigned int, int > RECOTranspositionContainerType
virtual void WriteImageInformation() override