go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkMevisDicomTiffImageIO.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright UMC Utrecht and contributors
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 #ifndef __itkMevisDicomTiffImageIO_h
19 #define __itkMevisDicomTiffImageIO_h
20 
21 #ifdef _MSC_VER
22 #pragma warning ( disable : 4786 )
23 #endif
24 
25 #include "itkImageIOBase.h"
26 #include "itk_tiff.h"
27 #include "gdcmTag.h"
28 #include "gdcmAttribute.h"
29 
30 #include <fstream>
31 #include <string>
32 
33 namespace itk
34 {
35 
107 class TIFFReaderInternal;
108 
109 class ITK_EXPORT MevisDicomTiffImageIO : public ImageIOBase
110 {
111 public:
112 
116 
117  itkNewMacro( Self );
118  itkTypeMacro( MevisDicomTiffImageIO, Superclass );
119  itkGetMacro( RescaleSlope, double );
120  itkGetMacro( RescaleIntercept, double );
121  itkGetMacro( GantryTilt, double );
122 
123  virtual bool CanReadFile( const char * );
124 
125  virtual void ReadImageInformation();
126 
127  virtual void Read( void * buffer );
128 
129  virtual bool CanWriteFile( const char * );
130 
131  virtual void WriteImageInformation();
132 
133  virtual void Write( const void * buffer );
134 
135  virtual bool CanStreamRead()
136  {
137  return false;
138  }
139 
140 
141  virtual bool CanStreamWrite()
142  {
143  return false;
144  }
145 
146 
147 protected:
148 
151  void PrintSelf( std::ostream & os, Indent indent ) const;
152 
153 private:
154 
155  MevisDicomTiffImageIO( const Self & );
156  void operator=( const Self & );
157 
158  bool FindElement( const gdcm::DataSet ds, const gdcm::Tag tag, gdcm::DataElement & de,
159  const bool breadthfirstsearch );
160 
161  // the following may include the pathname
162  std::string m_DcmFileName;
163  std::string m_TiffFileName;
164 
165  TIFF * m_TIFFImage;
166  unsigned int m_TIFFDimension;
167  bool m_IsOpen;
168  unsigned short m_Compression;
169  unsigned int m_BitsPerSample;
170  unsigned int m_Width;
171  unsigned int m_Length;
172  unsigned int m_Depth;
173  bool m_IsTiled;
174  unsigned int m_TileWidth;
175  unsigned int m_TileLength;
176  unsigned int m_TileDepth;
177  unsigned short m_NumberOfTiles;
178 
181  double m_GantryTilt;
184 
185 };
186 
187 } // end namespace itk
188 
189 #endif // __itkMevisDicomTiffImageIO_h


Generated on 04-09-2015 for elastix by doxygen 1.8.9.1 elastix logo