|
@@ -82,6 +82,18 @@ protected:
|
|
|
QString *aString,
|
|
|
int *oldID
|
|
|
);
|
|
|
+ void addBBoxArea(
|
|
|
+ int anID,
|
|
|
+ BoundingBox aBBox,
|
|
|
+ int itemID = -1
|
|
|
+ );
|
|
|
+ void addPolyArea(
|
|
|
+ int aPolyID,
|
|
|
+ Polygon aPoly,
|
|
|
+ int itemID = -1
|
|
|
+ );
|
|
|
+ bool deleteArea(QListWidgetItem *anItem);
|
|
|
+ bool toggleLabelPriority(QListWidgetItem *anItem);
|
|
|
void enableTools();
|
|
|
void disableTools();
|
|
|
void legendToXml(QDomDocument *aDoc, QDomElement *aRoot);
|
|
@@ -103,24 +115,15 @@ public slots:
|
|
|
bool isMain,
|
|
|
QString aLabel
|
|
|
);
|
|
|
+ void editLabel(QListWidgetItem *anItem);
|
|
|
void removeLabel();
|
|
|
+ void removeLabel(int aLabelID);
|
|
|
void setLabelID(QListWidgetItem *anItem);
|
|
|
- void addBBoxArea(
|
|
|
- int anID,
|
|
|
- BoundingBox aBBox,
|
|
|
- int itemID = -1
|
|
|
- );
|
|
|
- void addPolyArea(
|
|
|
- int aPolyID,
|
|
|
- Polygon aPoly,
|
|
|
- int itemID = -1
|
|
|
- );
|
|
|
- void deleteArea();
|
|
|
- void editArea();
|
|
|
void toggleLabelPriority();
|
|
|
- void nextImage();
|
|
|
- void prevImage();
|
|
|
- void editLabel(QListWidgetItem *anItem);
|
|
|
+
|
|
|
+ void editArea();
|
|
|
+ void deleteArea();
|
|
|
+
|
|
|
void saveAllInfo();
|
|
|
void saveSegmentedPicture();
|
|
|
void saveLegend();
|
|
@@ -130,6 +133,8 @@ public slots:
|
|
|
void loadPascalFile();
|
|
|
void loadPascalPolys();
|
|
|
void loadLegendFromFile();
|
|
|
+ void nextImage();
|
|
|
+ void prevImage();
|
|
|
void setBoundingBoxTool(bool aButtonPressed);
|
|
|
void setPolygonTool(bool aButtonPressed);
|
|
|
void generateColors();
|
|
@@ -156,6 +161,7 @@ public slots:
|
|
|
void removeImage();
|
|
|
void imageListPopupMenu(const QPoint &);
|
|
|
void writeSettings();
|
|
|
+ void readSettings();
|
|
|
|
|
|
private:
|
|
|
/* menu */
|
|
@@ -170,7 +176,7 @@ private:
|
|
|
QAction *action_open_image_;
|
|
|
QAction *action_open_labeled_image_;
|
|
|
QAction *action_load_legend_;
|
|
|
- QAction *action_save_labels_;
|
|
|
+ QAction *action_save_all_;
|
|
|
QAction *action_save_segmented_;
|
|
|
QAction *action_save_legend_;
|
|
|
QAction *action_quit_;
|