dispmap/svimage.h
Andrey Tkachenko 60ff52a6e4 V2 begin
2014-07-18 20:48:42 +04:00

31 lines
581 B
C++

#ifndef SVIMAGE_H
#define SVIMAGE_H
#include <QImage>
#include <QRgb>
#include <QColor>
class SvImage
{
protected:
QImage* m_image;
public:
int getPixel(int x, int y, int channel);
int getPixelHue(int x, int y);
int getPixelValue(int x, int y);
int getPixelSaturation(int x, int y);
void putGrayPixel(int x, int y, int val);
void putPixel(int x, int y, int red, int green, int blue);
unsigned int getHeight();
unsigned int getWidth();
QImage& getImage();
SvImage(QImage& image);
virtual ~SvImage();
};
#endif // SVIMAGE_H