RTK
2.6.0
Reconstruction Toolkit
RTK
include
rtkXRadImageIO.h
Go to the documentation of this file.
1
/*=========================================================================
2
*
3
* Copyright RTK Consortium
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 rtkXRadImageIO_h
20
#define rtkXRadImageIO_h
21
22
#include <
itkImageIOBase.h
>
23
#include <fstream>
24
#include <cstring>
25
26
#include "RTKExport.h"
27
#include "
rtkMacro.h
"
28
29
namespace
rtk
30
{
31
41
class
RTK_EXPORT
XRadImageIO
:
public
itk::ImageIOBase
42
{
43
public
:
45
using
Self
=
XRadImageIO
;
46
using
Superclass
=
itk::ImageIOBase
;
47
using
Pointer
=
itk::SmartPointer<Self>
;
48
49
XRadImageIO
()
50
:
Superclass
()
51
{}
52
54
itkNewMacro(
Self
);
55
57
itkOverrideGetNameOfClassMacro(
XRadImageIO
);
58
59
/*-------- This part of the interface deals with reading data. ------ */
60
void
61
ReadImageInformation()
override
;
62
63
bool
64
CanReadFile(
const
char
* FileNameToRead)
override
;
65
66
void
67
Read(
void
* buffer)
override
;
68
69
/*-------- This part of the interfaces deals with writing data. ----- */
70
virtual
void
71
WriteImageInformation(
bool
keepOfStream);
72
73
void
74
WriteImageInformation
()
override
75
{
76
WriteImageInformation(
false
);
77
}
78
79
bool
80
CanWriteFile(
const
char
* filename)
override
;
81
82
void
83
Write(
const
void
* buffer)
override
;
84
85
protected
:
86
};
// end class XRadImageIO
87
88
}
// namespace rtk
89
90
#endif
itk::ImageIOBase
rtk
Definition:
rtkMatlabSparseMatrix.h:24
AddImageFilter
rtk::XRadImageIO::WriteImageInformation
void WriteImageInformation() override
Definition:
rtkXRadImageIO.h:74
itkImageIOBase.h
rtkMacro.h
rtk::XRadImageIO
Class for reading XRad image file format. XRad is the format of exported X-ray projection images on t...
Definition:
rtkXRadImageIO.h:41
itk::LightProcessObject
itk::SmartPointer< Self >
rtk::XRadImageIO::XRadImageIO
XRadImageIO()
Definition:
rtkXRadImageIO.h:49
Generated on Thu Feb 6 2025 07:30:38 for RTK by
1.8.14