// SPDX-FileCopyrightText: 2024 Filip Leonarski, Paul Scherrer Institute // SPDX-License-Identifier: GPL-3.0-only #pragma once #include #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 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; };