[shotwell/wip/cleanup-facedetect: 10/15] vec is initialized in the FaceRect constructor




commit 9d24dc11c18978144cd443d6c14a6b9d440ab798
Author: Jens Georg <mail jensge org>
Date:   Sat Aug 13 22:24:18 2022 +0200

    vec is initialized in the FaceRect constructor

 subprojects/shotwell-facedetect/facedetect-opencv.cpp | 4 ----
 1 file changed, 4 deletions(-)
---
diff --git a/subprojects/shotwell-facedetect/facedetect-opencv.cpp 
b/subprojects/shotwell-facedetect/facedetect-opencv.cpp
index 48395297..209f9e6d 100644
--- a/subprojects/shotwell-facedetect/facedetect-opencv.cpp
+++ b/subprojects/shotwell-facedetect/facedetect-opencv.cpp
@@ -79,11 +79,7 @@ std::vector<FaceRect> detectFaces(cv::String inputName, cv::String cascadeName,
             cv::Mat colourImg;
             cv::resize(img, colourImg, smallImgSize, 0, 0, cv::INTER_LINEAR);
             i.vec = faceToVecMat(colourImg(*r)); // Run vector conversion on the face
-        } else {
-            i.vec.assign(128, 0);
         }
-#else
-        i.vec.assign(128, 0);
 #endif
         scaled.push_back(i);
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]