Commits

iorodeo  committed aba607a

Added orientation fitness to debug log output.

  • Participants
  • Parent commits 99dae7d

Comments (0)

Files changed (2)

File src/demo/fly_sorter/hog_position_fitter.cpp

     ellipseMajorAxis = 0.0;
     ellipseMinorAxis = 0.0;
     ellipseAngle = 0.0;
+    orientationFit = 0.0;
     covarianceMatrix = cv::Mat(2,2,CV_64FC1,cv::Scalar(0.0));
 }
 
     ss << indentStr1 << "ellipseMajorAxis: " << ellipseMajorAxis << std::endl;
     ss << indentStr1 << "ellipseMinorAxis: " << ellipseMinorAxis << std::endl;
     ss << indentStr1 << "ellipseAngle: " << ellipseAngle << std::endl;
+    ss << indentStr1 << "orientationFit: " << orientationFit << std::endl;
     ss << indentStr1 << "covarianceMatrix: " << std::endl;
     ss << indentStr1 << "frameCount: " << frameCount << std::endl;
     for (int i=0; i<2; i++)
 
             FastBinaryPredictor orientPred = FastBinaryPredictor(param_.orientClassifier);
             FastBinaryPredictorData<double> orientData = orientPred.predict(posData.pixelFeatureVector);
+            posData.orientationFit = orientData.fit;
 
             // Flip pixel feature vector and rotate LUV bounding image  - if required
             if (orientData.fit < 0.0)

File src/demo/fly_sorter/hog_position_fitter.hpp

         double ellipseMajorAxis;
         double ellipseMinorAxis;
         double ellipseAngle;
+        double orientationFit;
         cv::Mat covarianceMatrix;
         cv::Mat rotBoundingImageLUV;
         std::vector<double> pixelFeatureVector;