jfjoch_viewer: Fix auto-contrast information lost after reanalyzing image

This commit is contained in:
2026-02-01 10:59:54 +01:00
parent 876c315212
commit f5bdc41098

View File

@@ -22,12 +22,20 @@ JFJochReaderImage::JFJochReaderImage(const DataMessage &in_message,
}
JFJochReaderImage::JFJochReaderImage(const JFJochReaderImage &other)
: dataset(other.dataset),
image(other.image),
message(other.message),
saturated_pixel(other.saturated_pixel),
error_pixel(other.error_pixel),
valid_pixel(other.valid_pixel) {
: dataset(other.dataset),
image(other.image),
message(other.message),
saturated_pixel(other.saturated_pixel),
error_pixel(other.error_pixel),
valid_pixel(other.valid_pixel),
valid_min(other.valid_min),
valid_max(other.valid_max),
valid_count(other.valid_count),
has_valid(other.has_valid),
top_pixels_acc(other.top_pixels_acc),
top_pixels(other.top_pixels),
count_histogram(other.count_histogram),
auto_foreground(other.auto_foreground) {
// Need to make image use local copy
message.image = CompressedImage(image, dataset->experiment.GetXPixelsNum(),
dataset->experiment.GetYPixelsNum());