ImageProcessor: Work in progress on GPU code to preprocess images

This commit is contained in:
2026-04-22 21:06:43 +02:00
parent 4ee249fca2
commit f208109717
8 changed files with 313 additions and 76 deletions
@@ -0,0 +1,16 @@
// SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute <filip.leonarski@psi.ch>
// SPDX-License-Identifier: GPL-3.0-only
#pragma once
#include "ImagePreprocessor.h"
class ImagePreprocessorCPU : public ImagePreprocessor {
std::vector<bool> mask_1bit;
template <class T> ImageStatistics Analyze(std::vector<int32_t> &processed_image, const uint8_t *input, T err_value, T sat_value);
public:
ImagePreprocessorCPU(const DiffractionExperiment &experiment, const PixelMask &mask);
ImageStatistics Analyze(std::vector<int32_t> &processed_image, const uint8_t *decompressed_image, CompressedImageMode image_mode) override;
};