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:
112
116
117 itkNewMacro( Self );
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
147protected:
148
151 void PrintSelf( std::ostream & os, Indent indent ) const;
152
153private:
154
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
166 unsigned int m_TIFFDimension;
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;
174 unsigned int m_TileWidth;
175 unsigned int m_TileLength;
176 unsigned int m_TileDepth;
177 unsigned short m_NumberOfTiles;
178
184
185};
186
187} // end namespace itk
188
189#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 1667476801 for elastix by doxygen 1.9.4 elastix logo