digiKam
facepreprocessor.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2019-07-09
7  * Description : Abstract class for preprocessor of facesengine
8  *
9  * Copyright (C) 2019 by Thanh Trung Dinh <dinhthanhtrung1996 at gmail dot com>
10  * Copyright (C) 2019-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
11  *
12  * This program is free software; you can redistribute it
13  * and/or modify it under the terms of the GNU General
14  * Public License as published by the Free Software Foundation;
15  * either version 2, or (at your option)
16  * any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * ============================================================ */
24 
25 #ifndef DIGIKAM_FACE_PREPROCESSOR_H
26 #define DIGIKAM_FACE_PREPROCESSOR_H
27 
28 // Local includes
29 
30 #include "digikam_opencv.h"
31 #include "digikam_export.h"
32 
33 namespace Digikam
34 {
35 
36 class DIGIKAM_EXPORT FacePreprocessor
37 {
38 
39 public:
40 
41  explicit FacePreprocessor();
42  virtual ~FacePreprocessor();
43 
44  virtual cv::Mat preprocess(const cv::Mat& image) const = 0;
45 
46 private:
47 
48  // Disable
49  FacePreprocessor(const FacePreprocessor&) = delete;
50  FacePreprocessor& operator=(const FacePreprocessor&) = delete;
51 };
52 
53 } // namespace Digikam
54 
55 #endif // DIGIKAM_FACE_PREPROCESSOR_H
Definition: facepreprocessor.h:37
virtual cv::Mat preprocess(const cv::Mat &image) const =0
Definition: datefolderview.cpp:43