nk 1.0.0
C++ Numerical Computing Runtime
Loading...
Searching...
No Matches
nk::image::AdaptHistEqOptions Struct Reference

Parameters for adapthisteq. More...

#include <contrast.hpp>

Public Attributes

int numTilesR = 8
 NumTiles along the row axis.
int numTilesC = 8
 NumTiles along the column axis.
double clipLimit = 0.01
 Histogram clip fraction in [0, 1]; 0 disables clipping.
int nBins = 256
 Histogram bin count.
std::string distribution = "uniform"
 Target histogram shape:
double alpha = 0.4
 Shape parameter for the rayleigh / exponential distributions.
std::string range = "full"
 Output intensity range:

Detailed Description

Parameters for adapthisteq.

Definition at line 107 of file contrast.hpp.

Member Data Documentation

◆ alpha

double nk::image::AdaptHistEqOptions::alpha = 0.4

Shape parameter for the rayleigh / exponential distributions.

Definition at line 129 of file contrast.hpp.

◆ clipLimit

double nk::image::AdaptHistEqOptions::clipLimit = 0.01

Histogram clip fraction in [0, 1]; 0 disables clipping.

Higher values produce more contrast.

Definition at line 117 of file contrast.hpp.

◆ distribution

std::string nk::image::AdaptHistEqOptions::distribution = "uniform"

Target histogram shape:

  • "uniform" — flat (default)
  • "rayleigh" — bell-shaped (Rayleigh inverse CDF)
  • "exponential" — curved (exponential inverse CDF)

Definition at line 126 of file contrast.hpp.

◆ nBins

int nk::image::AdaptHistEqOptions::nBins = 256

Histogram bin count.

Definition at line 120 of file contrast.hpp.

◆ numTilesC

int nk::image::AdaptHistEqOptions::numTilesC = 8

NumTiles along the column axis.

Definition at line 113 of file contrast.hpp.

◆ numTilesR

int nk::image::AdaptHistEqOptions::numTilesR = 8

NumTiles along the row axis.

Image is partitioned into numTilesR × numTilesC contextual regions.

Definition at line 110 of file contrast.hpp.

◆ range

std::string nk::image::AdaptHistEqOptions::range = "full"

Output intensity range:

  • "full" — full range of the image class (default)
  • "original" — limited to the input's actual [min, max]

Definition at line 134 of file contrast.hpp.


The documentation for this struct was generated from the following file: