![]() |
ImFusion SDK 4.3
|
#include <ImFusion/ML/Utils.h>
Helper class to run resampling algorithms within operations The class holds two permanent algorithm instances (one for images, one for labels) for the sake of efficiency Images with more 4 channels are properly handled so that GPU execution is still possible. More...
Helper class to run resampling algorithms within operations The class holds two permanent algorithm instances (one for images, one for labels) for the sake of efficiency Images with more 4 channels are properly handled so that GPU execution is still possible.
Public Member Functions | |
void | process (SharedImageSet *inputImg, const SharedImageSet *refImg, bool forceCPU) |
Resample an image in-place (optionally with a reference image) | |
void | process (SharedImageSet *inputImg, const std::vector< ImageDescriptorWorld > &refImg, bool forceCPU) |
Resample an image in-place (optionally with a series of reference descriptors) | |
std::unique_ptr< SharedImageSet > | resample (const SharedImageSet *inputImg, const SharedImageSet *refImg, bool forceCPU) |
Resample an image (optionally with a reference image) | |
std::unique_ptr< SharedImageSet > | resample (const SharedImageSet *inputImg, const std::vector< ImageDescriptorWorld > &refImg, bool forceCPU) |
Resample an image (optionally with a series of reference descriptors) | |
std::array< ImageResamplingAlgorithm *, 2 > | algorithms () |
Non-const accessor to let the user configure the algorithms. | |
void process | ( | SharedImageSet * | inputImg, |
const SharedImageSet * | refImg, | ||
bool | forceCPU ) |
Resample an image in-place (optionally with a reference image)
void process | ( | SharedImageSet * | inputImg, |
const std::vector< ImageDescriptorWorld > & | refImg, | ||
bool | forceCPU ) |
Resample an image in-place (optionally with a series of reference descriptors)