Maria GDK 5.0.0.738
Documentation of native code in develop branch
Loading...
Searching...
No Matches
STK::ImageIO Class Referenceabstract

#include <StkImageIO.h>

Inheritance diagram for STK::ImageIO:
STK::ImageDdsIO STK::ImageJpegIO STK::ImagePngIO STK::ImageStbIO

Public Types

enum  OpenMode { READ = 0 , WRITE }
 

Public Member Functions

 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 Public Member Functions

static std::unique_ptr< ImageIOcreate (const std::string &filename, const char *opts=nullptr)
 
static std::unique_ptr< ImageIOcreate (const std::vector< uint8_t > &imageBuffer)
 

Protected Attributes

std::string filename_
 

Detailed Description

ImageIO - Short description. Detailed description.

Member Function Documentation

◆ 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

Implemented in STK::ImageJpegIO.

◆ save()

virtual bool STK::ImageIO::save ( const Image img)
pure virtual

Implemented in STK::ImageJpegIO.


The documentation for this class was generated from the following files: