ImFusion SDK 4.3
BakeDeformationCPU Class Reference

#include <ImFusion/GL/BakeDeformationCPU.h>

Bakes in a deformation applied to an image using the CPU. More...

Detailed Description

Bakes in a deformation applied to an image using the CPU.

Public Types

enum  OutboundStrategy { ClampToEdge , ClampToBorder , Repeat , MirroredRepeat }
 Wraping strategy for coordinates outside the input image.
 

Public Member Functions

 BakeDeformationCPU (const OutboundStrategy &outboundStrategy)
 Creates an instance with an already defined OutboundStrategy.
 
void setBounds (const Geometry::AlignedBox &pixelBounds)
 Sets the original image boundaries previosuly calculated in pixel and world coordinates.
 
void useNearestInterpolation (bool value)
 Linear interpolation will be used over nearest neighbours unless the value is true.
 
std::unique_ptr< SharedImagecompute (SharedImage *image, SharedImage *ref=nullptr)
 Bakes the input image.
 

Member Function Documentation

◆ compute()

std::unique_ptr< SharedImage > compute ( SharedImage * image,
SharedImage * ref = nullptr )

Bakes the input image.

The ownership of the result is assigned to the caller.

Parameters
ref- if not nullptr, the output image will have the same position as the reference image, else the output location is estimated.

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