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
33namespace itk
34{
35
107class TIFFReaderInternal;
108
109class ITK_EXPORT MevisDicomTiffImageIO : public ImageIOBase
110{
111public:
114 using Pointer = SmartPointer<Self>;
115
116 itkNewMacro(Self);
118 itkGetConstMacro(RescaleSlope, double);
119 itkGetConstMacro(RescaleIntercept, double);
120 itkGetConstMacro(GantryTilt, double);
121
122 virtual bool
123 CanReadFile(const char *);
124
125 virtual void
127
128 virtual void
129 Read(void * buffer);
130
131 virtual bool
132 CanWriteFile(const char *);
133
134 virtual void
136
137 virtual void
138 Write(const void * buffer);
139
140 virtual bool
142 {
143 return false;
144 }
145
146
147 virtual bool
149 {
150 return false;
151 }
152
153
154protected:
157 void
158 PrintSelf(std::ostream & os, Indent indent) const;
159
160private:
162 void
163 operator=(const Self &);
164
165 bool
166 FindElement(const gdcm::DataSet ds, const gdcm::Tag tag, gdcm::DataElement & de, const bool breadthfirstsearch);
167
168 // the following may include the pathname
169 std::string m_DcmFileName;
170 std::string m_TiffFileName;
171
173 unsigned int m_TIFFDimension;
175 unsigned short m_Compression;
176 unsigned int m_BitsPerSample;
177 unsigned int m_Width;
178 unsigned int m_Length;
179 unsigned int m_Depth;
181 unsigned int m_TileWidth;
182 unsigned int m_TileLength;
183 unsigned int m_TileDepth;
184 unsigned short m_NumberOfTiles;
185
191};
192
193} // end namespace itk
194
195#endif // itkMevisDicomTiffImageIO_h
virtual void ReadImageInformation()
virtual void Write(const void *buffer)
virtual bool CanWriteFile(const char *)
void operator=(const Self &)
virtual void Read(void *buffer)
void PrintSelf(std::ostream &os, Indent indent) const
virtual void WriteImageInformation()
virtual bool CanReadFile(const char *)
bool FindElement(const gdcm::DataSet ds, const gdcm::Tag tag, gdcm::DataElement &de, const bool breadthfirstsearch)
MevisDicomTiffImageIO(const Self &)


Generated on 2023-01-13 for elastix by doxygen 1.9.6 elastix logo