1#ifndef VISTLE_PPMIMAGE_H
2#define VISTLE_PPMIMAGE_H
25 NetpbmImage(
const std::string &name,
unsigned width,
unsigned height, Format = PPM,
unsigned highest = 0);
29 Format format()
const;
30 unsigned width()
const;
31 unsigned height()
const;
36 bool complete()
const;
38 bool append(
float r,
float g,
float b);
39 bool append(
float gray);
41 const float *gray()
const;
42 const unsigned char *rgb()
const;
45 size_t m_numwritten = 0;
46 unsigned m_width = 0, m_height = 0;
47 unsigned m_highest = 255;
50 unsigned m_min = std::numeric_limits<unsigned>::max(), m_max = 0;
55 void increaseRange(
unsigned value);
Definition: netpbmimage.h:14
Format
Definition: netpbmimage.h:16
@ PBM
Definition: netpbmimage.h:17
@ PGM
Definition: netpbmimage.h:19
@ PPM
Definition: netpbmimage.h:21
std::vector< float > m_gray
Definition: netpbmimage.h:52
std::vector< unsigned char > m_rgba
Definition: netpbmimage.h:53
static T min(T a, T b)
Definition: messages.cpp:28
Definition: allobjects.cpp:30
std::ostream & operator<<(std::ostream &out, const Meta &meta)
Definition: objectmeta.cpp:45
#define V_UTILEXPORT
Definition: export.h:19