ITK  4.12.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 
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  ITK_DISALLOW_COPY_AND_ASSIGN(Bruker2DSEQImageIO);
184 
185  void SwapBytesIfNecessary(void *buffer, SizeValueType numberOfPixels);
186 
188 };
189 
190 extern const char *const RECO_BYTE_ORDER;
191 extern const char *const RECO_FOV;
192 extern const char *const RECO_SIZE;
193 extern const char *const RECO_WORDTYPE;
194 extern const char *const RECO_IMAGE_TYPE;
195 extern const char *const RECO_TRANSPOSITION;
196 extern const char *const ACQ_DIM;
197 extern const char *const NI; /*IMND_N_SLICES*/
198 extern const char *const NR;
199 extern const char *const ACQ_SLICE_THICK; /*IMND_SLICE_THICK*/
200 extern const char *const NECHOES; /*IMND_N_ECHO_IMAGES*/
201 extern const char *const ACQ_SLICE_SEPN; /*IMND_SLICE_SEPN*/
202 extern const char *const ACQ_SLICE_SEPN_MODE;
203 extern const char *const ACQ_ECHO_TIME;
204 extern const char *const ACQ_REPETITION_TIME;
205 extern const char *const ACQ_INVERSION_TIME;
206 } // end namespace itk
207 
208 #endif // itkBruker2DSEQImageIO_h
const char *const RECO_IMAGE_TYPE
const char *const ACQ_INVERSION_TIME
virtual void PrintSelf(std::ostream &os, Indent indent) const override
VectorContainer< unsigned int, double > RECOFOVContainerType
Light weight base class for most itk classes.
virtual bool CanReadFile(const char *FileNameToRead) override
const char *const NI
Abstract superclass defines image IO interface.
VectorContainer< unsigned int, double > ACQEchoTimeContainerType
const char *const NR
unsigned long SizeValueType
Definition: itkIntTypes.h:143
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
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 &quot;vector&quot; 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...
Base class for most ITK classes.
Definition: itkObject.h:59
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