Added "--images_not_saved" argument to not keep images in RAM after the features are extracted (only in console mode)
This commit is contained in:
@@ -62,7 +62,7 @@ public:
|
||||
cv::Mat & Ai);
|
||||
|
||||
public:
|
||||
FindObject(QObject * parent = 0);
|
||||
FindObject(bool keepImagesInRAM_ = true, QObject * parent = 0);
|
||||
virtual ~FindObject();
|
||||
|
||||
bool loadSession(const QString & path);
|
||||
@@ -104,6 +104,7 @@ private:
|
||||
KeypointDetector * detector_;
|
||||
DescriptorExtractor * extractor_;
|
||||
bool sessionModified_;
|
||||
bool keepImagesInRAM_;
|
||||
};
|
||||
|
||||
} // namespace find_object
|
||||
|
||||
@@ -57,7 +57,7 @@ public:
|
||||
virtual ~ObjWidget();
|
||||
|
||||
void setId(int id);
|
||||
void setData(const std::vector<cv::KeyPoint> & keypoints, const QImage & image);
|
||||
void setData(const std::vector<cv::KeyPoint> & keypoints, const QImage & image, const QRect & rect = QRect());
|
||||
void setTextLabel(const QString & text);
|
||||
void resetKptsColor();
|
||||
void setKptColor(int index, const QColor & color);
|
||||
@@ -111,6 +111,7 @@ private:
|
||||
int id_;
|
||||
std::vector<cv::KeyPoint> keypoints_;
|
||||
QPixmap pixmap_;
|
||||
QRect rect_;
|
||||
QList<KeypointItem*> keypointItems_;
|
||||
QGraphicsView * graphicsView_;
|
||||
QVector<QColor> kptColors_;
|
||||
|
||||
Reference in New Issue
Block a user