#include <StkImageIO.h>
|
enum | OpenMode { READ = 0
, WRITE
} |
|
|
| ImageIO (const std::string &filename, const char *opts=nullptr) |
|
void | setFilename (const std::string &filename) |
|
const std::string & | getFilename () const |
|
virtual bool | readSubImage (const Image &hdr, Image &img, int startx, int starty, int width, int height) |
|
virtual bool | load (Image &img)=0 |
|
virtual bool | save (const Image &img)=0 |
|
virtual bool | readHeader (Image &img)=0 |
|
virtual bool | open (OpenMode mode=READ)=0 |
|
virtual bool | close ()=0 |
|
virtual void | setOptions (const char *) |
|
|
static std::unique_ptr< ImageIO > | create (const std::string &filename, const char *opts=nullptr) |
|
static std::unique_ptr< ImageIO > | create (const std::vector< uint8_t > &imageBuffer) |
|
ImageIO - Short description. Detailed description.
◆ create()
std::unique_ptr< ImageIO > ImageIO::create |
( |
const std::string & |
filename, |
|
|
const char * |
opts = nullptr |
|
) |
| |
|
static |
Create image IO object from filename. This convenience method tries to determine the file type from the file name extension and create a corresponding ImageIO object. The returned object must be deleted by the caller after use.
◆ load()
virtual bool STK::ImageIO::load |
( |
Image & |
img | ) |
|
|
pure virtual |
◆ save()
virtual bool STK::ImageIO::save |
( |
const Image & |
img | ) |
|
|
pure virtual |
The documentation for this class was generated from the following files:
- Native/SilentToolkit/StkImage/StkImageIO.h
- Native/SilentToolkit/StkImage/StkImageIO.cpp