v1.0.0-rc.91

This commit is contained in:
2025-10-20 20:43:44 +02:00
parent 6524365ffa
commit 061152279c
260 changed files with 4854 additions and 1061 deletions
@@ -0,0 +1,18 @@
// SPDX-FileCopyrightText: 2025 Filip Leonarski, Paul Scherrer Institute <filip.leonarski@psi.ch>
// SPDX-License-Identifier: GPL-3.0-only
#include "ImageSpotFinderFactory.h"
#include "ImageSpotFinderCPU.h"
#ifdef JFJOCH_USE_CUDA
#include "../../common/CUDAWrapper.h"
#include "ImageSpotFinderGPU.h"
#endif
std::unique_ptr<ImageSpotFinder> CreateImageSpotFinder(size_t width, size_t height) {
#ifdef JFJOCH_USE_CUDA
if (get_gpu_count() > 0)
return std::make_unique<ImageSpotFinderGPU>(width, height);
#endif
return std::make_unique<ImageSpotFinderCPU>(width, height);
}