jfjoch_viewer: Remove extra verbose
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user