dispmap/svimage.h

33 lines
668 B
C
Raw Normal View History

2014-07-11 20:35:48 +04:00
#ifndef SVIMAGE_H
#define SVIMAGE_H
#include <QImage>
#include <QColor>
2014-07-23 20:50:12 +04:00
#include <QRgb>
2014-07-11 20:35:48 +04:00
class SvImage
{
protected:
QImage* m_image;
public:
2014-07-22 20:37:29 +04:00
int getPixel(int x, int y, int channel = -1);
2014-07-11 20:35:48 +04:00
int getPixelHue(int x, int y);
2014-07-22 20:37:29 +04:00
int getPixelNormalizedHue(int x, int y);
2014-07-11 20:35:48 +04:00
int getPixelValue(int x, int y);
2014-07-18 20:48:42 +04:00
int getPixelSaturation(int x, int y);
2014-07-22 20:37:29 +04:00
QRgb getPixelRGB(int x, int y);
2014-07-18 20:48:42 +04:00
void putGrayPixel(int x, int y, int val);
void putPixel(int x, int y, int red, int green, int blue);
2014-07-11 20:35:48 +04:00
unsigned int getHeight();
unsigned int getWidth();
QImage& getImage();
SvImage(QImage& image);
virtual ~SvImage();
};
#endif // SVIMAGE_H