namespace mrpt::img

namespace img {

// typedefs

typedef TPixelCoord TImageSize;

// enums

enum PixelDepth;
enum TColormap;
enum TImageChannels;
enum TInterpolationMethod;
enum copy_type_t;
enum ctor_CImage_ref_or_gray;

// structs

struct TColor;
struct TColorManager;
struct TColorf;
struct TPixelCoord;
struct TPixelCoordf;

// classes

class CCanvas;
class CEnhancedMetaFile;
class CExceptionExternalImageNotFound;
class CImage;
class CMappedImage;
class TCamera;
class TStereoCamera;

// global functions

void hsv2rgb(float h, float s, float v, float& r, float& g, float& b);
void rgb2hsv(float r, float g, float b, float& h, float& s, float& v);
void colormap(const TColormap& color_map, const float color_index, float& r, float& g, float& b);
mrpt::img::TColor colormap(const TColormap& color_map, const float color_index);
void jet2rgb(const float color_index, float& r, float& g, float& b);
void hot2rgb(const float color_index, float& r, float& g, float& b);

bool operator == (
    const mrpt::img::TCamera& a,
    const mrpt::img::TCamera& b
    );

bool operator != (
    const mrpt::img::TCamera& a,
    const mrpt::img::TCamera& b
    );

std::ostream& operator << (
    std::ostream& o,
    const TColor& c
    );

mrpt::serialization::CArchive& operator << (
    mrpt::serialization::CArchive& o,
    const TColor& c
    );

mrpt::serialization::CArchive& operator >> (
    mrpt::serialization::CArchive& i,
    TColor& c
    );

TColor operator + (const TColor& first, const TColor& second);
TColor operator - (const TColor& first, const TColor& second);

bool operator == (
    const TColor& first,
    const TColor& second
    );

std::ostream& operator << (
    std::ostream& o,
    const TColorf& c
    );

mrpt::serialization::CArchive& operator << (
    mrpt::serialization::CArchive& o,
    const TColorf& c
    );

mrpt::serialization::CArchive& operator >> (
    mrpt::serialization::CArchive& i,
    TColorf& c
    );

std::ostream& operator << (std::ostream& o, const TPixelCoordf& p);
std::ostream& operator << (std::ostream& o, const TPixelCoord& p);

} // namespace img

Typedefs

typedef TPixelCoord TImageSize

A type for image sizes.

Global Functions

TColor operator + (const TColor& first, const TColor& second)

Pairwise addition of their corresponding RGBA members.

TColor operator - (const TColor& first, const TColor& second)

Pairwise substraction of their corresponding RGBA members.

std::ostream& operator << (std::ostream& o, const TPixelCoordf& p)

Prints TPixelCoordf as “(x,y)”.

std::ostream& operator << (std::ostream& o, const TPixelCoord& p)

Prints TPixelCoord as “(x,y)”.