newtx/imgproc/algs/multi_out.h

35 lines
818 B
C
Raw Permalink Normal View History

// to produce out multi colors or given color images
//
// Date: 2024-03-09
#pragma once
#include <imgprc/img_processor.h>
#include <base/words.h>
class multi_out : public image_processor
{
bool multi_ = false;
bool clr_ = true;
bool gray_ = false;
bool bw_ = false;
int coef_ = 1;
std::string mode_str_ = WORDS_COLOR_COLOR;
std::string multi_str_ = WORDS_MULTI_OUT_ALL;
void refresh_final_mode(void);
public:
multi_out(bool weaker = false);
protected:
~multi_out();
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;
virtual int process(std::vector<PROCIMGINFO>& in, std::vector<PROCIMGINFO>& out) override;
};