changeset 363:68861b52a319

added message if mask not found/loaded
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Fri, 12 Jul 2013 01:26:22 -0400
parents cc8e54997d4c
children a50a69e04c2a
files c/feature-based-tracking.cpp
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/c/feature-based-tracking.cpp	Fri Jul 12 00:22:09 2013 -0400
+++ b/c/feature-based-tracking.cpp	Fri Jul 12 01:26:22 2013 -0400
@@ -101,8 +101,10 @@
   //   }
 
   Mat mask = imread(params.maskFilename, 0);
-  if (mask.empty())
+  if (mask.empty()) {
+    cout << "Mask filename " << params.maskFilename << " could not be opened." << endl;
     mask = Mat::ones(videoSize, CV_8UC1);
+  }
 
   boost::shared_ptr<TrajectoryDBAccess<Point2f> > trajectoryDB = boost::shared_ptr<TrajectoryDBAccess<Point2f> >(new TrajectoryDBAccessList<Point2f>());
   //TrajectoryDBAccess<Point2f>* trajectoryDB = new TrajectoryDBAccessBlob<Point2f>();