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:
matlabbe
2015-06-09 21:41:34 -04:00
parent 9754130ec8
commit 388236e5c4
7 changed files with 63 additions and 30 deletions
+2 -1
View File
@@ -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
+2 -1
View File
@@ -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_;