newtx/imgproc/algs/color_correct.h

28 lines
665 B
C
Raw Normal View History

2024-01-25 06:13:24 +00:00
// perform color correction
//
// Date: 2024-01-25
#pragma once
#include <imgprc/img_processor.h>
class color_correct : public image_processor
{
bool correct_ = true;
bool clr_ = true;
cv::Mat lut_;
2024-01-25 06:13:24 +00:00
std::string lut_path_ = "/usr/local/huago/Textlut200clr.bmp";
public:
color_correct(bool weaker = false);
2024-01-25 06:13:24 +00:00
protected:
~color_correct();
public:
virtual int set_value(const char* name/*nullptr for all options*/, void* val/*nullptr for restore*/) override;
public:
virtual image_processor* copy_weaker(void) override;
2024-01-25 06:13:24 +00:00
virtual int process(std::vector<PROCIMGINFO>& in, std::vector<PROCIMGINFO>& out) override;
};