18#ifndef sitkImportImageFilter_h
19#define sitkImportImageFilter_h
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
74 const std::vector<double> &
77 SITK_RETURN_SELF_TYPE_HEADER
79 const std::vector<double> &
82 SITK_RETURN_SELF_TYPE_HEADER
84 const std::vector<double> &
87 SITK_RETURN_SELF_TYPE_HEADER
89 SITK_RETURN_SELF_TYPE_HEADER
91 SITK_RETURN_SELF_TYPE_HEADER
93 SITK_RETURN_SELF_TYPE_HEADER
95 SITK_RETURN_SELF_TYPE_HEADER
97 SITK_RETURN_SELF_TYPE_HEADER
99 SITK_RETURN_SELF_TYPE_HEADER
101 SITK_RETURN_SELF_TYPE_HEADER
103 SITK_RETURN_SELF_TYPE_HEADER
105 SITK_RETURN_SELF_TYPE_HEADER
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);
The Image class for SimpleITK.
Self & SetBufferAsUInt64(uint64_t *buffer, unsigned int numberOfComponents=1)
Self & SetBufferAsFloat(float *buffer, unsigned int numberOfComponents=1)
Image(Self::* MemberFunctionType)()
const std::vector< double > & GetDirection() const
std::string ToString() const override
const std::vector< unsigned int > & GetSize() const
Self & SetSpacing(const std::vector< double > &spacing)
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
std::vector< double > m_Direction
Self & SetSize(const std::vector< unsigned int > &size)
Self & SetBufferAsUInt32(uint32_t *buffer, unsigned int numberOfComponents=1)
Self & SetBufferAsDouble(double *buffer, unsigned int numberOfComponents=1)
Image Execute() override
Set/Get The output PixelType of the image.
Self & SetDirection(const std::vector< double > &direction)
PixelIDValueType m_PixelIDValue
std::vector< double > m_Origin
Self & SetBufferAsInt8(int8_t *buffer, unsigned int numberOfComponents=1)
std::string GetName() const override
Self & SetBufferAsInt64(int64_t *buffer, unsigned int numberOfComponents=1)
Self & SetOrigin(const std::vector< double > &origin)
std::vector< double > m_Spacing
std::vector< unsigned int > m_Size
Self & SetBufferAsInt32(int32_t *buffer, unsigned int numberOfComponents=1)
const std::vector< double > & GetSpacing() const
Self & SetBufferAsInt16(int16_t *buffer, unsigned int numberOfComponents=1)
unsigned int m_NumberOfComponentsPerPixel
const std::vector< double > & GetOrigin() const
Self & SetBufferAsUInt16(uint16_t *buffer, unsigned int numberOfComponents=1)
~ImportImageFilter() override
Self & SetBufferAsUInt8(uint8_t *buffer, unsigned int numberOfComponents=1)
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)