ImFusion SDK 4.3
ImageResampler Class Reference

#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...

Detailed Description

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< SharedImageSetresample (const SharedImageSet *inputImg, const SharedImageSet *refImg, bool forceCPU)
 Resample an image (optionally with a reference image)
 
std::unique_ptr< SharedImageSetresample (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.
 

Member Function Documentation

◆ process() [1/2]

void process ( SharedImageSet * inputImg,
const SharedImageSet * refImg,
bool forceCPU )

Resample an image in-place (optionally with a reference image)

Deprecated
"Use the out-of-place ImageResampler::resample function instead"

◆ process() [2/2]

void process ( SharedImageSet * inputImg,
const std::vector< ImageDescriptorWorld > & refImg,
bool forceCPU )

Resample an image in-place (optionally with a series of reference descriptors)

Deprecated
"Use the out-of-place ImageResampler::resample function instead"

The documentation for this class was generated from the following file:
Search Tab / S to search, Esc to close