gKit3
Loading...
Searching...
No Matches
image_io.h
1
2#ifndef _IMAGE_IO_H
3#define _IMAGE_IO_H
4
7
8
9#include "image.h"
10
12Image read_image( const char *filename, const bool flipY= true );
13
15bool write_image( const Image& image, const char *filename, const bool flipY= true );
17bool write_image_png( const Image& image, const char *filename, const bool flipY= true );
19bool write_image_bmp( const Image& image, const char *filename, const bool flipY= true );
21bool write_image_hdr( const Image& image, const char *filename, const bool flipY= true );
22
24bool write_image_preview( const Image& image, const char *filename, const bool flipY= true );
25
27Image srgb( const Image& image );
29Image linear( const Image& image );
30
32float range( const Image& image );
34Image tone( const Image& image, const float saturation );
35
37#endif
representation d'une image.
Definition image.h:21
bool write_image_png(const Image &image, const char *filename, const bool flipY=true)
enregistre une image au format .png
Definition image_io.cpp:124
bool write_image_preview(const Image &image, const char *filename, const bool flipY=true)
raccourci pour write_image_png(tone(image, range(image)), "image.png")
Definition image_io.cpp:176
bool write_image_hdr(const Image &image, const char *filename, const bool flipY=true)
enregistre une image au format .hdr
Definition image_io.cpp:167
bool write_image_bmp(const Image &image, const char *filename, const bool flipY=true)
enregistre une image au format .bmp
Definition image_io.cpp:148
Image read_image(const char *filename, const bool flipY=true)
charge une image .bmp .tga .jpeg .png ou .hdr
Definition image_io.cpp:94
Image linear(const Image &image)
transformation couleur : srgb vers rgb lineaire
Definition image_io.cpp:24
bool write_image(const Image &image, const char *filename, const bool flipY=true)
enregistre une image au format .png
Definition image_io.cpp:143
float range(const Image &image)
evalue l'exposition d'une image.
Definition image_io.cpp:34
Image srgb(const Image &image)
transformation couleur : rgb lineaire vers srgb
Definition image_io.cpp:14
Image tone(const Image &image, const float saturation)
correction de l'exposition d'une image + transformation gamma.
Definition image_io.cpp:72