You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
882 B

#ifndef KERNELPARAMS_H
#define KERNELPARAMS_H
#include <QObject>
#include <QDebug>
#include <QByteArray>
#include <QList>
#define ARRAY_SIZE(X) X.length()
#define DYN_CNTR_CONST_PIECE_NO 256U
#define MIN_OUTPUT_LEVEL 3U
#define MAX_OUTPUT_LEVEL 252U
#define MAX_LOG_INPUT_LEVEL 24*2048
#define MIN_LOG_INPUT_DEFAULT 6U
#define MAX_LOG_INPUT_DEFAULT 21
#define GAIN_DEFAULT 4
#define CONTRAST_NUM_DEFAULT 1U
struct DynamicContrastParameters
{
float gain;
float min_output_level;
float max_output_level;
QList<float> const_piecewise_x;
QList<float> const_piecewise_y;
float max_log_input_level;
float app_min_log_input_level;
float app_max_log_input_level;
};
float linear_interpolate (float output, QList<float> x, QList<float> y, quint32 num);
float DynamicContrast(float input, DynamicContrastParameters &params);
#endif // KERNELPARAMS_H