EditDepthArea: added cluster error menu option, fixed seg fault on large cluster removal

This commit is contained in:
matlabbe
2019-04-26 18:03:07 -04:00
parent 38a83c0cd9
commit cd2c261e2b
2 changed files with 58 additions and 13 deletions

View File

@@ -55,6 +55,8 @@ public:
void setPenWidth(int newWidth);
int penWidth() const { return myPenWidth_; }
void setClusterError(double error) { clusterError_ = error; }
double clusterError() const { return clusterError_; }
void setColorMap(uCvQtDepthColorMap type);
public Q_SLOTS:
@@ -75,6 +77,7 @@ private:
bool modified_;
bool scribbling_;
int myPenWidth_;
double clusterError_;
QImage imageRGB_;
QImage image_;
cv::Mat originalImage_;
@@ -83,6 +86,7 @@ private:
QMenu * menu_;
QAction * showRGB_;
QAction * removeCluster_;
QAction * clusterErrorCluster_;
QAction * resetChanges_;
QAction * setPenWidth_;
QAction * colorMapWhiteToBlack_;