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 |
| |
| 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 |
| |
| virtual std::vector< std::string > | GetRegisteredImageIOs () const |
| | Get a vector of the names of registered itk ImageIOs.
|
| |
| | ImageReaderBase () |
| |
| | ~ImageReaderBase () override |
| |
| Self & | SetOutputPixelType (PixelIDValueEnum pixelID) |
| | Set/Get The output PixelType of the image.
|
| |
| PixelIDValueEnum | GetOutputPixelType () const |
| | Set/Get The output PixelType of the image.
|
| |
| virtual Self & | SetLoadPrivateTags (bool loadPrivateTags) |
| | Set/Get loading private DICOM tags into Image's MetaData.
|
| |
| virtual bool | GetLoadPrivateTags () const |
| | Set/Get loading private DICOM tags into Image's MetaData.
|
| |
| virtual void | LoadPrivateTagsOn () |
| | Set/Get loading private DICOM tags into Image's MetaData.
|
| |
| virtual void | LoadPrivateTagsOff () |
| | Set/Get loading private DICOM tags into Image's MetaData.
|
| |
| virtual Self & | SetImageIO (const std::string &imageio) |
| | Set/Get name of ImageIO to use.
|
| |
| virtual std::string | GetImageIO () const |
| | Set/Get name of ImageIO to use.
|
| |
| virtual void | Abort () |
| |
| virtual int | AddCommand (itk::simple::EventEnum event, const std::function< void()> &func) |
| | Directly add a callback to observe an event.
|
| |
| virtual int | AddCommand (itk::simple::EventEnum event, itk::simple::Command &cmd) |
| | Add a Command Object to observer the event.
|
| |
| virtual float | GetProgress () const |
| | An Active Measurement of the progress of execution.
|
| |
| virtual bool | HasCommand (itk::simple::EventEnum event) const |
| | Query of this object has any registered commands for event.
|
| |
| | ProcessObject () |
| |
| virtual void | RemoveAllCommands () |
| | Remove all registered commands.
|
| |
| 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.
|
| |
| 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.
|
| |
| static void | SetGlobalDefaultCoordinateTolerance (double) |
| | Access the global tolerance to determine congruent spaces.
|
| |
| static double | GetGlobalDefaultDirectionTolerance () |
| | Access the global tolerance to determine congruent spaces.
|
| |
| static void | SetGlobalDefaultDirectionTolerance (double) |
| | Access the global tolerance to determine congruent spaces.
|
| |
| static bool | SetGlobalDefaultThreader (const std::string &threader) |
| | Set/Get the default threader used for process objects.
|
| |
| static std::string | GetGlobalDefaultThreader () |
| | Set/Get the default threader used for process objects.
|
| |
| static void | SetGlobalDefaultNumberOfThreads (unsigned int n) |
| |
| static unsigned int | GetGlobalDefaultNumberOfThreads () |
| | Set/Get the default threader used for process objects.
|
| |
| 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) |
| |