ImagePreprocessor: Simplify a lot the class

This commit is contained in:
2026-04-22 13:14:24 +02:00
parent 5695846756
commit d0446b453b
6 changed files with 86 additions and 122 deletions
@@ -1,24 +0,0 @@
// SPDX-FileCopyrightText: 2024 Filip Leonarski, Paul Scherrer Institute <filip.leonarski@psi.ch>
// SPDX-License-Identifier: GPL-3.0-only
#pragma once
#include <vector>
#include "ImagePreprocessor.h"
#include "../common/JFJochMessages.h"
#include "../common/DiffractionExperiment.h"
#include "../common/AzimuthalIntegration.h"
#include "../common/PixelMask.h"
#include "../common/AzimuthalIntegrationProfile.h"
class ImagePreprocessorCPU : public ImagePreprocessor {
template <class T>
ImageStatistics Analyze(const uint8_t *input, T err_value, T sat_value);
public:
ImagePreprocessorCPU(const DiffractionExperiment &in_experiment,
const AzimuthalIntegration &in_integration,
const PixelMask &in_mask);
ImageStatistics Analyze(const uint8_t *decompressed_image, CompressedImageMode image_mode) override;
};