2021-09-01 20:08:47 +00:00
|
|
|
#ifndef _OPENCV3_PHOTO_H_
|
|
|
|
#define _OPENCV3_PHOTO_H_
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
#include <opencv2/opencv.hpp>
|
|
|
|
#include <opencv2/photo.hpp>
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "core.h"
|
|
|
|
|
|
|
|
#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
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
|
|
|
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-06-09 14:40:23 +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);
|
2021-09-01 20:08:47 +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-06-09 14:40:23 +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-09-01 20:08:47 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif //_OPENCV3_PHOTO_H
|