11 #include <AtomsUtils/Globals.h>
41 Image(
unsigned int width,
unsigned int height,
unsigned int channel,
unsigned short imgType);
51 Image(
float* data,
unsigned int width,
unsigned int height,
unsigned int channel);
61 Image(
unsigned char* data,
unsigned int width,
unsigned int height,
unsigned int channel);
71 Image(std::vector<float> data,
unsigned int width,
unsigned int height,
unsigned int channel);
81 Image(std::vector<unsigned char> data,
unsigned int width,
unsigned int height,
unsigned int channel);
93 inline unsigned short imageType()
const;
96 inline unsigned int width()
const;
99 inline unsigned int height()
const;
102 inline unsigned int channels()
const;
105 inline const float* pixelsFloat()
const;
108 inline float* pixelsFloat();
111 inline const unsigned char* pixels()
const;
114 inline unsigned char* pixels();
135 float* m_pixelsFloat;
136 unsigned char* m_pixels;
140 unsigned int m_width;
143 unsigned int m_height;
146 unsigned int m_channels;
149 unsigned short m_type;
153 #include "Image.impl.h"
Image class.
Definition: Image.h:22
Image(unsigned char *data, unsigned int width, unsigned int height, unsigned int channel)
Constructor.
Image(unsigned int width, unsigned int height, unsigned int channel, unsigned short imgType)
Constructor.
Image(float *data, unsigned int width, unsigned int height, unsigned int channel)
Constructor.
Image(std::vector< float > data, unsigned int width, unsigned int height, unsigned int channel)
Constructor.
Image(const Image &other)
Copy constructor.
void loadFromFile(const std::string &fileName)
Load form file.
Image(std::vector< unsigned char > data, unsigned int width, unsigned int height, unsigned int channel)
Constructor.
Image & operator=(const Image &other)
Assign operator.
bool saveToFile(const std::string &fileName) const
Save to file.
AtomsCore namespace.
Definition: Base64.h:13