Skip to content

Class libCalibGeom::Image

A general purpose dynamically sized image type.

Constructors and destructors

Image()

Image()

Returns:

void

Image()

Image(const ImageSize size,const T val = T())

Returns:

void

Image()

Image(const Image< T > & other)

Returns:

void

Image()

Image(const std::string & filePath)

Returns:

void

Public member functions

loadFromDisk()

boolloadFromDisk(const std::string & filePath)

Returns:

bool

saveToDisk()

boolsaveToDisk(const std::string & filePath)

Returns:

bool

encodeToBytes()

boolencodeToBytes(const std::string &extension, std::vector< std::uint8_t > &bytes) const

Returns:

bool

resize()

voidresize(const ImageSize size)

Returns:

void

fill()

voidfill(const T val)

Returns:

void

getWidth()

size_tgetWidth() const

Returns:

size_t

getHeight()

size_tgetHeight() const

Returns:

size_t

getSize()

ImageSizegetSize() const

Returns:

ImageSize

operator()()

T &operator()(unsigned int x,unsigned int y)

Returns:

T &

operator()()

Toperator()(unsigned int x, unsigned int y) const

Returns:

T

ptr()

T *ptr()

Returns:

T *

ptr()

T const *ptr() const

Returns:

T const *