1234567891011121314151617181920212223242526272829303132333435363738394041 |
- #ifndef MASK_H
- #define MASK_H
- #include <QImage>
- #include <QString>
- #include <opencv2/opencv.hpp>
- class Mask
- {
- private:
- QString path;
- QImage *mask;
- public:
- Mask( QString p );
- ~Mask();
-
- void loadMask();
-
- QImage *getMask();
-
- QPixmap getDrawableImage();
-
- bool isPolygonInside( QPolygon p );
-
- void createMask( QSize s );
-
- void save() const;
-
-
-
- void saveToFrameMask( cv::Mat img, QString frameName ) const;
-
- void unloadMask();
- };
- #endif
|