1. iorodeo
  2. bias

Commits

iorodeo  committed 514501b

Added erosion to ufmf compression.

  • Participants
  • Parent commits be70d0f
  • Branches default

Comments (0)

Files changed (1)

File src/gui/compressed_frame_ufmf.cpp

View file
 #include "compressed_frame_ufmf.hpp"
+#include <opencv2/imgproc/imgproc.hpp>
 #include <algorithm>
 #include <iostream>
 #include <QThread>
 
         // Get background/foreground membership, 255=background, 0=foreground
         cv::inRange(stampedImg_.image, bgLowerBound_, bgUpperBound_, membershipImage_);
+        cv::erode(membershipImage_, membershipImage_, cv::Mat(), cv::Point(-1,-1),1);
+
         numForeground_ = numPix - cv::countNonZero(membershipImage_);
-
         numConnectedComp_ = 0;
         numPixWritten_ = 0;