18#ifndef sitkImportImageFilter_h
19#define sitkImportImageFilter_h
64 return std::string(
"ImportImageFilter");
68 SetSize(
const std::vector<unsigned int> & size);
69 const std::vector<unsigned int> &
74 const std::vector<double> &
79 const std::vector<double> &
84 const std::vector<double> &
113 template <
class TImageType>
129 std::vector<double>
m_Origin{ std::vector<double>(3, 0.0) };
130 std::vector<double>
m_Spacing{ std::vector<double>(3, 1.0) };
139 const std::vector<unsigned int> & size,
140 const std::vector<double> & spacing = std::vector<double>(3, 1.0),
141 const std::vector<double> & origin = std::vector<double>(3, 0.0),
142 const std::vector<double> & direction = std::vector<double>(),
143 unsigned int numberOfComponents = 1);
147 const std::vector<unsigned int> & size,
148 const std::vector<double> & spacing = std::vector<double>(3, 1.0),
149 const std::vector<double> & origin = std::vector<double>(3, 0.0),
150 const std::vector<double> & direction = std::vector<double>(),
151 unsigned int numberOfComponents = 1);
155 const std::vector<unsigned int> & size,
156 const std::vector<double> & spacing = std::vector<double>(3, 1.0),
157 const std::vector<double> & origin = std::vector<double>(3, 0.0),
158 const std::vector<double> & direction = std::vector<double>(),
159 unsigned int numberOfComponents = 1);
163 const std::vector<unsigned int> & size,
164 const std::vector<double> & spacing = std::vector<double>(3, 1.0),
165 const std::vector<double> & origin = std::vector<double>(3, 0.0),
166 const std::vector<double> & direction = std::vector<double>(),
167 unsigned int numberOfComponents = 1);
171 const std::vector<unsigned int> & size,
172 const std::vector<double> & spacing = std::vector<double>(3, 1.0),
173 const std::vector<double> & origin = std::vector<double>(3, 0.0),
174 const std::vector<double> & direction = std::vector<double>(),
175 unsigned int numberOfComponents = 1);
179 const std::vector<unsigned int> & size,
180 const std::vector<double> & spacing = std::vector<double>(3, 1.0),
181 const std::vector<double> & origin = std::vector<double>(3, 0.0),
182 const std::vector<double> & direction = std::vector<double>(),
183 unsigned int numberOfComponents = 1);
187 const std::vector<unsigned int> & size,
188 const std::vector<double> & spacing = std::vector<double>(3, 1.0),
189 const std::vector<double> & origin = std::vector<double>(3, 0.0),
190 const std::vector<double> & direction = std::vector<double>(),
191 unsigned int numberOfComponents = 1);
195 const std::vector<unsigned int> & size,
196 const std::vector<double> & spacing = std::vector<double>(3, 1.0),
197 const std::vector<double> & origin = std::vector<double>(3, 0.0),
198 const std::vector<double> & direction = std::vector<double>(),
199 unsigned int numberOfComponents = 1);
203 const std::vector<unsigned int> & size,
204 const std::vector<double> & spacing = std::vector<double>(3, 1.0),
205 const std::vector<double> & origin = std::vector<double>(3, 0.0),
206 const std::vector<double> & direction = std::vector<double>(),
207 unsigned int numberOfComponents = 1);
211 const std::vector<unsigned int> & size,
212 const std::vector<double> & spacing = std::vector<double>(3, 1.0),
213 const std::vector<double> & origin = std::vector<double>(3, 0.0),
214 const std::vector<double> & direction = std::vector<double>(),
215 unsigned int numberOfComponents = 1);
The Image class for SimpleITK.
Image(Self::* MemberFunctionType)()
const std::vector< double > & GetDirection() const
std::string ToString() const override
const std::vector< unsigned int > & GetSize() const
void SetBufferAsUInt64(uint64_t *buffer, unsigned int numberOfComponents=1)
void SetSize(const std::vector< unsigned int > &size)
std::vector< double > m_Direction
void SetBufferAsInt32(int32_t *buffer, unsigned int numberOfComponents=1)
void SetBufferAsUInt8(uint8_t *buffer, unsigned int numberOfComponents=1)
void SetBufferAsUInt32(uint32_t *buffer, unsigned int numberOfComponents=1)
void SetDirection(const std::vector< double > &direction)
PixelIDValueType m_PixelIDValue
std::vector< double > m_Origin
void SetBufferAsUInt16(uint16_t *buffer, unsigned int numberOfComponents=1)
std::string GetName() const override
void SetBufferAsDouble(double *buffer, unsigned int numberOfComponents=1)
static const detail::MemberFunctionFactory< MemberFunctionType > & GetMemberFunctionFactory()
std::vector< double > m_Spacing
std::vector< unsigned int > m_Size
void SetBufferAsInt64(int64_t *buffer, unsigned int numberOfComponents=1)
void SetBufferAsInt8(int8_t *buffer, unsigned int numberOfComponents=1)
const std::vector< double > & GetSpacing() const
void SetSpacing(const std::vector< double > &spacing)
unsigned int m_NumberOfComponentsPerPixel
void SetOrigin(const std::vector< double > &origin)
void SetBufferAsInt16(int16_t *buffer, unsigned int numberOfComponents=1)
void SetBufferAsFloat(float *buffer, unsigned int numberOfComponents=1)
const std::vector< double > & GetOrigin() const
~ImportImageFilter() override
A class used to instantiate and generate function object to templated member functions.
Image SITKIO_EXPORT ImportAsInt32(int32_t *buffer, const std::vector< unsigned int > &size, const std::vector< double > &spacing=std::vector< double >(3, 1.0), const std::vector< double > &origin=std::vector< double >(3, 0.0), const std::vector< double > &direction=std::vector< double >(), unsigned int numberOfComponents=1)
Image SITKIO_EXPORT ImportAsUInt8(uint8_t *buffer, const std::vector< unsigned int > &size, const std::vector< double > &spacing=std::vector< double >(3, 1.0), const std::vector< double > &origin=std::vector< double >(3, 0.0), const std::vector< double > &direction=std::vector< double >(), unsigned int numberOfComponents=1)
Image SITKIO_EXPORT ImportAsDouble(double *buffer, const std::vector< unsigned int > &size, const std::vector< double > &spacing=std::vector< double >(3, 1.0), const std::vector< double > &origin=std::vector< double >(3, 0.0), const std::vector< double > &direction=std::vector< double >(), unsigned int numberOfComponents=1)
Image SITKIO_EXPORT ImportAsFloat(float *buffer, const std::vector< unsigned int > &size, const std::vector< double > &spacing=std::vector< double >(3, 1.0), const std::vector< double > &origin=std::vector< double >(3, 0.0), const std::vector< double > &direction=std::vector< double >(), unsigned int numberOfComponents=1)
Image SITKIO_EXPORT ImportAsInt8(int8_t *buffer, const std::vector< unsigned int > &size, const std::vector< double > &spacing=std::vector< double >(3, 1.0), const std::vector< double > &origin=std::vector< double >(3, 0.0), const std::vector< double > &direction=std::vector< double >(), unsigned int numberOfComponents=1)
Image SITKIO_EXPORT ImportAsInt16(int16_t *buffer, const std::vector< unsigned int > &size, const std::vector< double > &spacing=std::vector< double >(3, 1.0), const std::vector< double > &origin=std::vector< double >(3, 0.0), const std::vector< double > &direction=std::vector< double >(), unsigned int numberOfComponents=1)
Image SITKIO_EXPORT ImportAsUInt64(uint64_t *buffer, const std::vector< unsigned int > &size, const std::vector< double > &spacing=std::vector< double >(3, 1.0), const std::vector< double > &origin=std::vector< double >(3, 0.0), const std::vector< double > &direction=std::vector< double >(), unsigned int numberOfComponents=1)
Image SITKIO_EXPORT ImportAsUInt16(uint16_t *buffer, const std::vector< unsigned int > &size, const std::vector< double > &spacing=std::vector< double >(3, 1.0), const std::vector< double > &origin=std::vector< double >(3, 0.0), const std::vector< double > &direction=std::vector< double >(), unsigned int numberOfComponents=1)
Image SITKIO_EXPORT ImportAsUInt32(uint32_t *buffer, const std::vector< unsigned int > &size, const std::vector< double > &spacing=std::vector< double >(3, 1.0), const std::vector< double > &origin=std::vector< double >(3, 0.0), const std::vector< double > &direction=std::vector< double >(), unsigned int numberOfComponents=1)
Image SITKIO_EXPORT ImportAsInt64(int64_t *buffer, const std::vector< unsigned int > &size, const std::vector< double > &spacing=std::vector< double >(3, 1.0), const std::vector< double > &origin=std::vector< double >(3, 0.0), const std::vector< double > &direction=std::vector< double >(), unsigned int numberOfComponents=1)