diff --git a/lib/local/LandmarkDetector/src/LandmarkDetectionValidator.cpp b/lib/local/LandmarkDetector/src/LandmarkDetectionValidator.cpp index 205c9fb5..2f745ecc 100644 --- a/lib/local/LandmarkDetector/src/LandmarkDetectionValidator.cpp +++ b/lib/local/LandmarkDetector/src/LandmarkDetectionValidator.cpp @@ -344,9 +344,15 @@ float DetectionValidator::Check(const cv::Vec3d& orientation, const cv::Mat_ intensity_img_float_local; intensity_img(cv::Rect(min_x, min_y, max_x - min_x, max_y - min_y)).convertTo(intensity_img_float_local, CV_32F); - + // the piece-wise affine image warping paws[id].Warp(intensity_img_float_local, warped, detected_landmarks_local); diff --git a/lib/local/LandmarkDetector/src/LandmarkDetectorUtils.cpp b/lib/local/LandmarkDetector/src/LandmarkDetectorUtils.cpp index 87146778..71cdafd0 100644 --- a/lib/local/LandmarkDetector/src/LandmarkDetectorUtils.cpp +++ b/lib/local/LandmarkDetector/src/LandmarkDetectorUtils.cpp @@ -480,7 +480,7 @@ namespace LandmarkDetector for (int i = 0; i < n; ++i) { float val_x = landmarks.at(i, 0); - float val_y = landmarks.at(i, 0); + float val_y = landmarks.at(i, 1); if (i == 0 || val_x < min_x) min_x = val_x;