digiKam
Loading...
Searching...
No Matches
exposure_detector.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 : 28/08/2021
7 * Description : Image Quality Parser - Exposure basic factor detection
8 *
9 * SPDX-FileCopyrightText: 2021-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
10 * SPDX-FileCopyrightText: 2021-2022 by Phuoc Khanh Le <phuockhanhnk94 at gmail dot com>
11 *
12 * SPDX-License-Identifier: GPL-2.0-or-later
13 *
14 * ============================================================ */
15
16#pragma once
17
18// Local includes
19
20#include "abstract_detector.h"
21
22namespace Digikam
23{
24
26{
27 Q_OBJECT
28
29public:
30
31 explicit ExposureDetector();
33
34 float detect(const cv::Mat& image) const override;
35
36private:
37
38 float percent_underexposed(const cv::Mat& image) const;
39 float percent_overexposed(const cv::Mat& image) const;
40
41 int count_by_condition(const cv::Mat& image,
42 int minVal, int maxVal) const;
43
44 // Disable
45 explicit ExposureDetector(QObject*);
46
47private:
48
49 class Private;
50 Private* const d = nullptr;
51};
52
53} // namespace Digikam
Definition abstract_detector.h:31
Definition exposure_detector.h:26
float detect(const cv::Mat &image) const override
Definition exposure_detector.cpp:61
ExposureDetector()
Definition exposure_detector.cpp:50
~ExposureDetector()
Definition exposure_detector.cpp:56
Definition datefolderview.cpp:34