ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkISQHeaderIO.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
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 * https://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
19#ifndef itkISQHeaderIO_h
20#define itkISQHeaderIO_h
21#include "itkScancoHeaderIO.h"
22
23struct ISQEncodedPreHeader;
24struct ISQEncodedHeaderBlock;
25struct RADEncodedHeaderBlock;
26
27namespace itk
28{
30{
31public:
33
40 unsigned long
41 ReadHeader(std::ifstream & infile) override;
42
49 unsigned long
50 WriteHeader(std::ofstream & outfile, unsigned long imageSize) override;
51
52private:
62 void
63 ReadDateValues(const int year,
64 const int month,
65 const int day,
66 const int hour,
67 const int minute,
68 const int second,
69 const int milli);
70
78 bool
79 ReadDimensionData(ISQEncodedPreHeader * imageData);
80
85 void
86 ReadRADHeader(RADEncodedHeaderBlock * headerData);
87
92 void
93 ReadISQHeader(ISQEncodedHeaderBlock * headerData);
94
103 void
104 ReadExtendedHeader(const char * buffer, unsigned long length);
105
111 unsigned long
112 WriteExtendedHeader(std::ofstream & outfile);
113
114 unsigned long m_HeaderSize;
115};
116
117} // namespace itk
118
119#endif // itkISQHeaderIO_h
unsigned long WriteHeader(std::ofstream &outfile, unsigned long imageSize) override
unsigned long ReadHeader(std::ifstream &infile) override
void ReadRADHeader(RADEncodedHeaderBlock *headerData)
bool ReadDimensionData(ISQEncodedPreHeader *imageData)
ScancoHeaderIO(itkScancoHeaderData *headerData, std::string filename="")
void ReadExtendedHeader(const char *buffer, unsigned long length)
unsigned long WriteExtendedHeader(std::ofstream &outfile)
unsigned long m_HeaderSize
void ReadDateValues(const int year, const int month, const int day, const int hour, const int minute, const int second, const int milli)
void ReadISQHeader(ISQEncodedHeaderBlock *headerData)
ScancoHeaderIO(itkScancoHeaderData *headerData, std::string filename="")
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....