Skip to main content

ContrastOptions

ContrastOptions

Options structure for linear contrast/brightness transformation. More…

#include <ProcessingOptions.hpp>

Public Functions

Name
void calculateAlphaBetaFromMinMax()
Calculate alpha and beta from display min/max values.
void calculateMinMaxFromAlphaBeta()
Calculate display min/max from current alpha and beta values.

Public Attributes

Name
double alpha
Contrast multiplier (alpha parameter).
int beta
Brightness additive (beta parameter).
double display_min
Minimum display value (mapped to 0).
double display_max
Maximum display value (mapped to 255).

Detailed Description

struct ContrastOptions;

Options structure for linear contrast/brightness transformation.

The active state is managed externally at the processing chain level, not within this struct. This struct only holds the filter parameters.

Public Functions Documentation

function calculateAlphaBetaFromMinMax

inline void calculateAlphaBetaFromMinMax()

Calculate alpha and beta from display min/max values.

function calculateMinMaxFromAlphaBeta

inline void calculateMinMaxFromAlphaBeta()

Calculate display min/max from current alpha and beta values.

Public Attributes Documentation

variable alpha

double alpha {1.0};

Contrast multiplier (alpha parameter).

variable beta

int beta {0};

Brightness additive (beta parameter).

variable display_min

double display_min {0.0};

Minimum display value (mapped to 0).

variable display_max

double display_max {255.0};

Maximum display value (mapped to 255).


Updated on 2026-11-13 at 20:25:39 +0000