From 56dac1d3a662fa7125d6ee7e08a127b60bda6d18 Mon Sep 17 00:00:00 2001 From: TadasBaltrusaitis Date: Wed, 8 Feb 2017 11:34:23 -0500 Subject: [PATCH] Another DCLM speedup. --- lib/local/LandmarkDetector/src/LandmarkDetectorFunc.cpp | 9 +++++++-- .../results/landmark_detections.txt | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/local/LandmarkDetector/src/LandmarkDetectorFunc.cpp b/lib/local/LandmarkDetector/src/LandmarkDetectorFunc.cpp index 03255312..a0bd2982 100644 --- a/lib/local/LandmarkDetector/src/LandmarkDetectorFunc.cpp +++ b/lib/local/LandmarkDetector/src/LandmarkDetectorFunc.cpp @@ -469,8 +469,13 @@ bool LandmarkDetector::DetectLandmarksInImage(const cv::Mat_ &grayscale_i rotation_hypotheses.push_back(cv::Vec3d(0,0,0)); rotation_hypotheses.push_back(cv::Vec3d(0,0.5236,0)); rotation_hypotheses.push_back(cv::Vec3d(0,-0.5236,0)); - rotation_hypotheses.push_back(cv::Vec3d(0.5236,0,0)); - rotation_hypotheses.push_back(cv::Vec3d(-0.5236,0,0)); + + // If not using DPN patch experts add additional hypotheses + if(clnf_model.patch_experts.dpn_expert_intensity.size() == 0) + { + rotation_hypotheses.push_back(cv::Vec3d(0.5236,0,0)); + rotation_hypotheses.push_back(cv::Vec3d(-0.5236,0,0)); + } } else { diff --git a/matlab_runners/Feature Point Experiments/results/landmark_detections.txt b/matlab_runners/Feature Point Experiments/results/landmark_detections.txt index 90d55dad..3780bffa 100644 --- a/matlab_runners/Feature Point Experiments/results/landmark_detections.txt +++ b/matlab_runners/Feature Point Experiments/results/landmark_detections.txt @@ -1,5 +1,5 @@ Type, mean, median -err dclm: 0.047463, 0.035169 +err dclm: 0.047156, 0.035186 err clnf wild: 0.053107, 0.038525 err svr wild: 0.067535, 0.048706 err clnf wild no out: 0.041386, 0.027463