ImagePreprocessor: Dedicated class to handle preprocessing of diffraction images in Receiver Lite workflow + remove ROI calculation in Lite workflow

This commit is contained in:
2026-04-22 10:28:29 +02:00
parent 1f65050618
commit cf420d5622
8 changed files with 223 additions and 153 deletions
@@ -0,0 +1,24 @@
// 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;
};