mirror of
https://github.com/SatDump/SatDump
synced 2026-08-13 17:47:30 -04:00
18 lines
No EOL
531 B
C++
18 lines
No EOL
531 B
C++
#pragma once
|
|
|
|
#include "image.h"
|
|
|
|
namespace image
|
|
{
|
|
namespace histogram
|
|
{
|
|
// Get histogram of a buffer
|
|
std::vector<int> get_histogram(std::vector<int> values, int len);
|
|
|
|
// Equalize an histogram (stretch to normal distribution)
|
|
std::vector<int> equalize_histogram(std::vector<int> hist);
|
|
|
|
// Make an histogram-matching table between 2 equalized histograms
|
|
std::vector<int> make_hist_match_table(std::vector<int> input_hist, std::vector<int> target_hist, int maxdiff);
|
|
}
|
|
} |