18 #ifndef sitkImportImageFilter_h
19 #define sitkImportImageFilter_h
58 ToString()
const override;
64 return std::string(
"ImportImageFilter");
67 SITK_RETURN_SELF_TYPE_HEADER
68 SetSize(
const std::vector<unsigned int> & size);
69 const std::vector<unsigned int> &
72 SITK_RETURN_SELF_TYPE_HEADER
73 SetSpacing(
const std::vector<double> & spacing);
74 const std::vector<double> &
77 SITK_RETURN_SELF_TYPE_HEADER
78 SetOrigin(
const std::vector<double> & origin);
79 const std::vector<double> &
82 SITK_RETURN_SELF_TYPE_HEADER
83 SetDirection(
const std::vector<double> & direction);
84 const std::vector<double> &
87 SITK_RETURN_SELF_TYPE_HEADER
88 SetBufferAsInt8(int8_t * buffer,
unsigned int numberOfComponents = 1);
89 SITK_RETURN_SELF_TYPE_HEADER
90 SetBufferAsUInt8(uint8_t * buffer,
unsigned int numberOfComponents = 1);
91 SITK_RETURN_SELF_TYPE_HEADER
92 SetBufferAsInt16(int16_t * buffer,
unsigned int numberOfComponents = 1);
93 SITK_RETURN_SELF_TYPE_HEADER
94 SetBufferAsUInt16(uint16_t * buffer,
unsigned int numberOfComponents = 1);
95 SITK_RETURN_SELF_TYPE_HEADER
96 SetBufferAsInt32(int32_t * buffer,
unsigned int numberOfComponents = 1);
97 SITK_RETURN_SELF_TYPE_HEADER
98 SetBufferAsUInt32(uint32_t * buffer,
unsigned int numberOfComponents = 1);
99 SITK_RETURN_SELF_TYPE_HEADER
100 SetBufferAsInt64(int64_t * buffer,
unsigned int numberOfComponents = 1);
101 SITK_RETURN_SELF_TYPE_HEADER
102 SetBufferAsUInt64(uint64_t * buffer,
unsigned int numberOfComponents = 1);
103 SITK_RETURN_SELF_TYPE_HEADER
104 SetBufferAsFloat(
float * buffer,
unsigned int numberOfComponents = 1);
105 SITK_RETURN_SELF_TYPE_HEADER
106 SetBufferAsDouble(
double * buffer,
unsigned int numberOfComponents = 1);
113 template <
class TImageType>
138 const std::vector<unsigned int> & size,
139 const std::vector<double> & spacing = std::vector<double>(3, 1.0),
140 const std::vector<double> & origin = std::vector<double>(3, 0.0),
141 const std::vector<double> & direction = std::vector<double>(),
142 unsigned int numberOfComponents = 1);
146 const std::vector<unsigned int> & size,
147 const std::vector<double> & spacing = std::vector<double>(3, 1.0),
148 const std::vector<double> & origin = std::vector<double>(3, 0.0),
149 const std::vector<double> & direction = std::vector<double>(),
150 unsigned int numberOfComponents = 1);
154 const std::vector<unsigned int> & size,
155 const std::vector<double> & spacing = std::vector<double>(3, 1.0),
156 const std::vector<double> & origin = std::vector<double>(3, 0.0),
157 const std::vector<double> & direction = std::vector<double>(),
158 unsigned int numberOfComponents = 1);
162 const std::vector<unsigned int> & size,
163 const std::vector<double> & spacing = std::vector<double>(3, 1.0),
164 const std::vector<double> & origin = std::vector<double>(3, 0.0),
165 const std::vector<double> & direction = std::vector<double>(),
166 unsigned int numberOfComponents = 1);
170 const std::vector<unsigned int> & size,
171 const std::vector<double> & spacing = std::vector<double>(3, 1.0),
172 const std::vector<double> & origin = std::vector<double>(3, 0.0),
173 const std::vector<double> & direction = std::vector<double>(),
174 unsigned int numberOfComponents = 1);
178 const std::vector<unsigned int> & size,
179 const std::vector<double> & spacing = std::vector<double>(3, 1.0),
180 const std::vector<double> & origin = std::vector<double>(3, 0.0),
181 const std::vector<double> & direction = std::vector<double>(),
182 unsigned int numberOfComponents = 1);
186 const std::vector<unsigned int> & size,
187 const std::vector<double> & spacing = std::vector<double>(3, 1.0),
188 const std::vector<double> & origin = std::vector<double>(3, 0.0),
189 const std::vector<double> & direction = std::vector<double>(),
190 unsigned int numberOfComponents = 1);
194 const std::vector<unsigned int> & size,
195 const std::vector<double> & spacing = std::vector<double>(3, 1.0),
196 const std::vector<double> & origin = std::vector<double>(3, 0.0),
197 const std::vector<double> & direction = std::vector<double>(),
198 unsigned int numberOfComponents = 1);
202 const std::vector<unsigned int> & size,
203 const std::vector<double> & spacing = std::vector<double>(3, 1.0),
204 const std::vector<double> & origin = std::vector<double>(3, 0.0),
205 const std::vector<double> & direction = std::vector<double>(),
206 unsigned int numberOfComponents = 1);
210 const std::vector<unsigned int> & size,
211 const std::vector<double> & spacing = std::vector<double>(3, 1.0),
212 const std::vector<double> & origin = std::vector<double>(3, 0.0),
213 const std::vector<double> & direction = std::vector<double>(),
214 unsigned int numberOfComponents = 1);