// SPDX-FileCopyrightText: 2026 Filip Leonarski, Paul Scherrer Institute // SPDX-License-Identifier: GPL-3.0-only #include "ImagePreprocessorBuffer.h" ImagePreprocessorBuffer::ImagePreprocessorBuffer(size_t npixels) : buffer(npixels) {} void ImagePreprocessorBuffer::Gather(const std::vector &npixel, std::vector &values) const { values.resize(npixel.size()); for (size_t i = 0; i < npixel.size(); i++) values[i] = buffer[npixel[i]]; } int32_t *ImagePreprocessorBuffer::getGPUBuffer() { return nullptr; } const int32_t *ImagePreprocessorBuffer::getGPUBuffer() const { return nullptr; }