Compose a 2D or 3D image and return a smart pointer to a SimpleITK image.
This filter is intended to interface SimpleITK to other image processing libraries and applications that may have their own representation of an image class. It creates a SimpleITK image which shares the bulk data buffer as what is set. SimpleITK will not responsible to delete the buffer afterwards, and it buffer must remain valid while in use.
- See also
- itk::simple::ImportAsInt8, itk::simple::ImportAsUInt8, itk::simple::ImportAsInt16, itk::simple::ImportAsUInt16, itk::simple::ImportAsInt32, itk::simple::ImportAsUInt32, itk::simple::ImportAsInt64, itk::simple::ImportAsUInt64, itk::simple::ImportAsFloat,itk::simple::ImportAsDouble for the procedural interfaces.
- Examples
- BufferImportExport.cxx.
Definition at line 47 of file sitkImportImageFilter.h.
|
Image | Execute () override |
| Set/Get The output PixelType of the image. More...
|
|
const std::vector< double > & | GetDirection () const |
|
std::string | GetName () const override |
|
const std::vector< double > & | GetOrigin () const |
|
const std::vector< unsigned int > & | GetSize () const |
|
const std::vector< double > & | GetSpacing () const |
|
| ImportImageFilter () |
|
Self & | SetBufferAsDouble (double *buffer, unsigned int numberOfComponents=1) |
|
Self & | SetBufferAsFloat (float *buffer, unsigned int numberOfComponents=1) |
|
Self & | SetBufferAsInt16 (int16_t *buffer, unsigned int numberOfComponents=1) |
|
Self & | SetBufferAsInt32 (int32_t *buffer, unsigned int numberOfComponents=1) |
|
Self & | SetBufferAsInt64 (int64_t *buffer, unsigned int numberOfComponents=1) |
|
Self & | SetBufferAsInt8 (int8_t *buffer, unsigned int numberOfComponents=1) |
|
Self & | SetBufferAsUInt16 (uint16_t *buffer, unsigned int numberOfComponents=1) |
|
Self & | SetBufferAsUInt32 (uint32_t *buffer, unsigned int numberOfComponents=1) |
|
Self & | SetBufferAsUInt64 (uint64_t *buffer, unsigned int numberOfComponents=1) |
|
Self & | SetBufferAsUInt8 (uint8_t *buffer, unsigned int numberOfComponents=1) |
|
Self & | SetDirection (const std::vector< double > &direction) |
|
Self & | SetOrigin (const std::vector< double > &origin) |
|
Self & | SetSize (const std::vector< unsigned int > &size) |
|
Self & | SetSpacing (const std::vector< double > &spacing) |
|
std::string | ToString () const override |
|
| ~ImportImageFilter () override |
|
| ImageReaderBase () |
|
| ~ImageReaderBase () override |
|
Self & | SetOutputPixelType (PixelIDValueEnum pixelID) |
| Set/Get The output PixelType of the image. More...
|
|
PixelIDValueEnum | GetOutputPixelType () const |
| Set/Get The output PixelType of the image. More...
|
|
virtual std::vector< std::string > | GetRegisteredImageIOs () const |
| Get a vector of the names of registered itk ImageIOs. More...
|
|
virtual Self & | SetLoadPrivateTags (bool loadPrivateTags) |
| Set/Get loading private DICOM tags into Image's MetaData. More...
|
|
virtual bool | GetLoadPrivateTags () const |
| Set/Get The output PixelType of the image. More...
|
|
virtual void | LoadPrivateTagsOn () |
| Set/Get The output PixelType of the image. More...
|
|
virtual void | LoadPrivateTagsOff () |
| Set/Get The output PixelType of the image. More...
|
|
virtual Self & | SetImageIO (const std::string &imageio) |
| Set/Get name of ImageIO to use. More...
|
|
virtual std::string | GetImageIO () const |
| Set/Get The output PixelType of the image. More...
|
|
virtual void | Abort () |
|
virtual int | AddCommand (itk::simple::EventEnum event, const std::function< void()> &func) |
| Directly add a callback to observe an event. More...
|
|
virtual int | AddCommand (itk::simple::EventEnum event, itk::simple::Command &cmd) |
| Add a Command Object to observer the event. More...
|
|
virtual float | GetProgress () const |
| An Active Measurement of the progress of execution. More...
|
|
virtual bool | HasCommand (itk::simple::EventEnum event) const |
| Query of this object has any registered commands for event. More...
|
|
| ProcessObject () |
|
virtual void | RemoveAllCommands () |
| Remove all registered commands. More...
|
|
virtual | ~ProcessObject () |
|
virtual void | DebugOn () |
|
virtual void | DebugOff () |
|
virtual bool | GetDebug () const |
|
virtual void | SetDebug (bool debugFlag) |
|
virtual void | SetNumberOfThreads (unsigned int n) |
|
virtual unsigned int | GetNumberOfThreads () const |
|
virtual void | SetNumberOfWorkUnits (unsigned int n) |
|
virtual unsigned int | GetNumberOfWorkUnits () const |
|
|
static std::string | GetImageIOFromFileName (const PathType &fileName) |
| Get the automatic ImageIO from the ImageIOFactory. More...
|
|
static bool | GetGlobalDefaultDebug () |
|
static void | GlobalDefaultDebugOff () |
|
static void | GlobalDefaultDebugOn () |
|
static void | SetGlobalDefaultDebug (bool debugFlag) |
|
static void | GlobalWarningDisplayOn () |
|
static void | GlobalWarningDisplayOff () |
|
static void | SetGlobalWarningDisplay (bool flag) |
|
static bool | GetGlobalWarningDisplay () |
|
static double | GetGlobalDefaultCoordinateTolerance () |
| Access the global tolerance to determine congruent spaces. More...
|
|
static void | SetGlobalDefaultCoordinateTolerance (double) |
| Access the global tolerance to determine congruent spaces. More...
|
|
static double | GetGlobalDefaultDirectionTolerance () |
| Access the global tolerance to determine congruent spaces. More...
|
|
static void | SetGlobalDefaultDirectionTolerance (double) |
| Access the global tolerance to determine congruent spaces. More...
|
|
static bool | SetGlobalDefaultThreader (const std::string &threader) |
| Set/Get the default threader used for process objects. More...
|
|
static std::string | GetGlobalDefaultThreader () |
| Set/Get the default threader used for process objects. More...
|
|
static void | SetGlobalDefaultNumberOfThreads (unsigned int n) |
|
static unsigned int | GetGlobalDefaultNumberOfThreads () |
| Set/Get the default threader used for process objects. More...
|
|
template<class TImageType > |
static TImageType::ConstPointer | CastImageToITK (const Image &img) |
|
template<class TPixelType , unsigned int VImageDimension, unsigned int VLength, template< typename, unsigned int > class TVector> |
static Image | CastITKToImage (itk::Image< TVector< TPixelType, VLength >, VImageDimension > *img) |
|
template<unsigned int VImageDimension, unsigned int VLength, template< unsigned int > class TVector> |
static Image | CastITKToImage (itk::Image< TVector< VLength >, VImageDimension > *img) |
|
template<class TImageType > |
static Image | CastITKToImage (TImageType *img) |
|
static const itk::EventObject & | GetITKEventObject (EventEnum e) |
|
template<typename T > |
static std::ostream & | ToStringHelper (std::ostream &os, const T &v) |
|
static std::ostream & | ToStringHelper (std::ostream &os, const char &v) |
|
static std::ostream & | ToStringHelper (std::ostream &os, const signed char &v) |
|
static std::ostream & | ToStringHelper (std::ostream &os, const unsigned char &v) |
|