-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAwb.h
More file actions
31 lines (24 loc) · 683 Bytes
/
Copy pathAwb.h
File metadata and controls
31 lines (24 loc) · 683 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
//
// Created by jeremy on 7/12/23.
//
#ifndef DEEP_WHITE_BALANCE_AWB_H
#define DEEP_WHITE_BALANCE_AWB_H
#include <onnxruntime/core/session/experimental_onnxruntime_cxx_api.h>
#include <opencv2/opencv.hpp>
#include "XTensorHelper.h"
class Awb {
public:
explicit Awb(std::string);
~Awb();
cv::Mat predict(cv::Mat);
private:
f00arr kernelP(f00arr);
std::tuple<f00arr,f00arr,f00arr>
getMappingFunc(f00arr, f00arr);
cv::Mat applyMappingFunc(f00arr, f00arr, f00arr, f00arr);
private:
Ort::Experimental::Session *mWBSess;
Ort::SessionOptions mWBSessOp;
Ort::Env mWBSessEnv{ORT_LOGGING_LEVEL_WARNING, ""};
};
#endif //DEEP_WHITE_BALANCE_AWB_H