![]() |
ImFusion SDK 4.3
|
#include <ImFusion/GL/BakeDeformationCPU.h>
Bakes in a deformation applied to an image using the CPU. More...
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< SharedImage > | compute (SharedImage *image, SharedImage *ref=nullptr) |
| Bakes the input image. | |
| std::unique_ptr< SharedImage > compute | ( | SharedImage * | image, |
| SharedImage * | ref = nullptr ) |
Bakes the input image.
The ownership of the result is assigned to the caller.
| ref | - if not nullptr, the output image will have the same position as the reference image, else the output location is estimated. |