jfjoch_viewer: Remove extra verbose

This commit is contained in:
2025-11-01 18:28:51 +01:00
parent 673b5afb71
commit 9dfd2d7011

View File

@@ -106,16 +106,14 @@ void JFJochReaderImage::ProcessInputImage(const void *data, size_t npixel, int64
CalcAutoContrast();
}
#include <iostream>
void JFJochReaderImage::CalcAutoContrast() {
if (valid_pixel.empty())
auto_foreground = 10;
else {
auto it = valid_pixel.crbegin();
const auto index = static_cast<size_t>(valid_pixel.size() * auto_foreground_range);
std::cout << valid_pixel.size() << " " << valid_pixel.size() * auto_foreground_range << " " << index << std::endl;
std::advance(it, std::max<size_t>(1ULL, index) - 1);
std::cout << it->first << " " << it->second << std::endl;
auto_foreground = std::max(1, it->first);
}