2021-01-17 18:07:37 +00:00
|
|
|
#ifndef _OPENCV3_PHOTO_H_
|
|
|
|
#define _OPENCV3_PHOTO_H_
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
#include <opencv2/opencv.hpp>
|
2022-01-03 18:21:35 +00:00
|
|
|
#include <opencv2/photo.hpp>
|
2021-01-17 18:07:37 +00:00
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "core.h"
|
|
|
|
|
2022-01-03 18:21:35 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
// see : https://docs.opencv.org/3.4/d7/dd6/classcv_1_1MergeMertens.html
|
|
|
|
typedef cv::Ptr<cv::MergeMertens> *MergeMertens;
|
|
|
|
// see : https://docs.opencv.org/master/d7/db6/classcv_1_1AlignMTB.html
|
|
|
|
typedef cv::Ptr<cv::AlignMTB> *AlignMTB;
|
|
|
|
#else
|
|
|
|
typedef void *MergeMertens;
|
|
|
|
typedef void *AlignMTB;
|
|
|
|
#endif
|
|
|
|
|
2021-01-17 18:07:37 +00:00
|
|
|
void ColorChange(Mat src, Mat mask, Mat dst, float red_mul, float green_mul, float blue_mul);
|
|
|
|
|
|
|
|
void SeamlessClone(Mat src, Mat dst, Mat mask, Point p, Mat blend, int flags);
|
|
|
|
|
|
|
|
void IlluminationChange(Mat src, Mat mask, Mat dst, float alpha, float beta);
|
|
|
|
|
|
|
|
void TextureFlattening(Mat src, Mat mask, Mat dst, float low_threshold, float high_threshold, int kernel_size);
|
|
|
|
|
2022-01-03 18:21:35 +00:00
|
|
|
void FastNlMeansDenoisingColoredMulti(struct Mats src, Mat dst, int imgToDenoiseIndex, int temporalWindowSize);
|
|
|
|
void FastNlMeansDenoisingColoredMultiWithParams(struct Mats src, Mat dst, int imgToDenoiseIndex, int temporalWindowSize, float h, float hColor, int templateWindowSize, int searchWindowSize );
|
2022-04-12 16:00:12 +00:00
|
|
|
void FastNlMeansDenoising(Mat src, Mat dst);
|
|
|
|
void FastNlMeansDenoisingWithParams(Mat src, Mat dst, float h, int templateWindowSize, int searchWindowSize);
|
|
|
|
void FastNlMeansDenoisingColored(Mat src, Mat dst);
|
|
|
|
void FastNlMeansDenoisingColoredWithParams(Mat src, Mat dst, float h, float hColor, int templateWindowSize, int searchWindowSize);
|
2022-01-03 18:21:35 +00:00
|
|
|
|
|
|
|
MergeMertens MergeMertens_Create();
|
|
|
|
MergeMertens MergeMertens_CreateWithParams(float contrast_weight, float saturation_weight, float exposure_weight);
|
|
|
|
void MergeMertens_Process(MergeMertens b, struct Mats src, Mat dst);
|
|
|
|
void MergeMertens_Close(MergeMertens b);
|
|
|
|
|
|
|
|
AlignMTB AlignMTB_Create();
|
|
|
|
AlignMTB AlignMTB_CreateWithParams(int max_bits, int exclude_range, bool cut);
|
|
|
|
void AlignMTB_Process(AlignMTB b, struct Mats src, struct Mats *dst);
|
|
|
|
void AlignMTB_Close(AlignMTB b);
|
|
|
|
|
2022-04-12 16:00:12 +00:00
|
|
|
void DetailEnhance(Mat src, Mat dst, float sigma_s, float sigma_r);
|
|
|
|
void EdgePreservingFilter(Mat src, Mat dst, int filter, float sigma_s, float sigma_r);
|
|
|
|
void PencilSketch(Mat src, Mat dst1, Mat dst2, float sigma_s, float sigma_r, float shade_factor);
|
|
|
|
void Stylization(Mat src, Mat dst, float sigma_s, float sigma_r);
|
|
|
|
|
2021-01-17 18:07:37 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2022-01-03 18:21:35 +00:00
|
|
|
#endif //_OPENCV3_PHOTO_H
|