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
23
struct
ISQEncodedPreHeader;
24
struct
ISQEncodedHeaderBlock;
25
struct
RADEncodedHeaderBlock;
26
27
namespace
itk
28
{
29
class
ISQHeaderIO
:
public
ScancoHeaderIO
30
{
31
public
:
32
using
ScancoHeaderIO::ScancoHeaderIO
;
33
40
unsigned
long
41
ReadHeader
(std::ifstream & infile)
override
;
42
49
unsigned
long
50
WriteHeader
(std::ofstream & outfile,
unsigned
long
imageSize)
override
;
51
52
private
:
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
itk::ISQHeaderIO
Definition
itkISQHeaderIO.h:30
itk::ISQHeaderIO::WriteHeader
unsigned long WriteHeader(std::ofstream &outfile, unsigned long imageSize) override
itk::ISQHeaderIO::ReadHeader
unsigned long ReadHeader(std::ifstream &infile) override
itk::ISQHeaderIO::ReadRADHeader
void ReadRADHeader(RADEncodedHeaderBlock *headerData)
itk::ISQHeaderIO::ReadDimensionData
bool ReadDimensionData(ISQEncodedPreHeader *imageData)
itk::ISQHeaderIO::ScancoHeaderIO
ScancoHeaderIO(itkScancoHeaderData *headerData, std::string filename="")
itk::ISQHeaderIO::ReadExtendedHeader
void ReadExtendedHeader(const char *buffer, unsigned long length)
itk::ISQHeaderIO::WriteExtendedHeader
unsigned long WriteExtendedHeader(std::ofstream &outfile)
itk::ISQHeaderIO::m_HeaderSize
unsigned long m_HeaderSize
Definition
itkISQHeaderIO.h:114
itk::ISQHeaderIO::ReadDateValues
void ReadDateValues(const int year, const int month, const int day, const int hour, const int minute, const int second, const int milli)
itk::ISQHeaderIO::ReadISQHeader
void ReadISQHeader(ISQEncodedHeaderBlock *headerData)
itk::ScancoHeaderIO::ScancoHeaderIO
ScancoHeaderIO(itkScancoHeaderData *headerData, std::string filename="")
itkScancoHeaderIO.h
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition
itkAnatomicalOrientation.h:30
ITK
Modules
IO
IOScanco
include
itkISQHeaderIO.h
Generated on
unknown
for ITK by
1.13.2
Tarballs of release and nightly generated Doxygen documentation are available in the
InsightSoftwareConsortium/ITKDoxygen
GitHub Releases
.