Template Struct histogram_t

Struct Documentation

template<std::size_t Bins = 512, std::size_t MaxChannels = 3>
struct histogram_t

Public Functions

histogram_t() noexcept = default
inline histogram_t(const preview_bitmap_t &image) noexcept

Public Members

f_t min = m::inf
f_t max = -m::inf
std::int8_t channels
std::array<std::uint32_t, MaxChannels * Bins> data
std::array<std::string, 5> xtick_labels
std::array<const char*, 5> xtick_labels_cstr
bool new_data = true

Public Static Attributes

static constexpr auto bins = Bins
static constexpr bool has_xticks = true
static constexpr bool has_yticks = false
static constexpr auto xticks_count = 5
static constexpr std::array<double, xticks_count> xticks = {0 * (Bins - 1), .25 * (Bins - 1), .5 * (Bins - 1), .75 * (Bins - 1), 1 * (Bins - 1)}
static std::array<const char*, 4> imgui_ids = {"##__histogram_0", "##__histogram_1", "##__histogram_2", "##__histogram_3"}