#include "image.h"
#include <misc/endian.h>
#include <glt/color.h>
#include <cassert>
#include <cstring>
#include <cstdio>
#include <cmath>
#include <set>
#include <map>
#include <list>
#include <iostream>
Include dependency graph for image.cpp:
Go to the source code of this file.
Functions | |
bool | isGreyscale (const string &rgb) |
Is an RGB buffer greyscale? | |
bool | is256Colors (const string &rgb) |
Is an RGB buffer 256 colors or less? | |
void | getChannel (string &dest, const string &rgb, const uint32 size, const uint32 channel) |
Extract channel from image buffer. | |
void | rgb2Indexed (string &dest, const string &rgb) |
Convert RGB data to indexed. | |
void | indexed2rgb (string &dest, const string &indexed) |
Convert indexed data to RGB. | |
void | flipImage (string &dest, const string &src, const int width, const int height) |
Flip image vertically. | |
void | mirrorImage (std::string &dest, const std::string &src, const int width, const int height) |
Mirror image horizontally. | |
void | adjustGamma (std::string &image, const double gamma) |
Adjust image gamma. | |
void | adjustHSV (std::string &image, const int width, const int height, const real hue, const real saturation, const real value) |
Adjust image hue, saturation and brightness. | |
bool | stitchImages (string &image, const int dx, const int dy, const vector< string > &src, const int lineSize) |
Stitch tiled images. | |
bool | decode (uint32 &width, uint32 &height, std::string &image, const std::string &data) |
Decode image data from PPM, BMP, TGA and PNG. | |
bool | decodePPM (string &type, uint32 &width, uint32 &height, string &image, const string &data) |
Decode image data from PPM. | |
bool | decodeBMP (uint32 &width, uint32 &height, string &image, const string &data) |
Decode image data from BMP. | |
bool | decodeTGA (uint32 &width, uint32 &height, string &image, const string &data) |
Decode image data from TGA. | |
bool | encodePPM (string &data, const uint32 width, const uint32 height, const string &image) |
Encode image data as RGB unix PPM or PGM. | |
bool | encodeTGA (string &data, const uint32 width, const uint32 height, const string &image) |
Encode image data as RGB TGA. |
Definition in file image.cpp.