Dewobble
Video motion stabilization with awareness of lens projection
Public Member Functions | List of all members
dewobble::FilterConfig Class Reference

#include <filter_config.hpp>

Public Member Functions

 FilterConfig (Camera input_camera, Camera output_camera, std::shared_ptr< Stabilizer > stabilizer)
 
Color get_border_color () const
 
BorderType get_border_type () const
 
bool get_debug () const
 Get whether graphical debugging information is included in the output images.
 
Camera get_input_camera () const
 
Interpolation get_interpolation () const
 
cl_context get_opencl_context ()
 
cl_device_id get_opencl_device ()
 
Camera get_output_camera () const
 
std::shared_ptr< Stabilizerget_stabilizer () const
 
void set_border_color (const Color border_color)
 
void set_border_type (BorderType border_type)
 
void set_debug (bool debug)
 
void set_interpolation (Interpolation interpolation)
 
void set_opencl_context (cl_context context)
 
void set_opencl_device (cl_device_id device)
 

Detailed Description

Configuration for a dewobble::Filter

Constructor & Destructor Documentation

◆ FilterConfig()

dewobble::FilterConfig::FilterConfig ( Camera  input_camera,
Camera  output_camera,
std::shared_ptr< Stabilizer stabilizer 
)

Construct a new filter configuration

Parameters
input_cameraInput camera which will be used to interpret the input frames
output_cameraIutput camera which will be used to generate the output frames
stabilizerAn instance of dewobble::Stabilizer which will be used to apply a corrective rotation to frames in order to smooth the camera rotation over time

Member Function Documentation

◆ get_input_camera()

Camera dewobble::FilterConfig::get_input_camera ( ) const

Get input camera which is used to interpret input frames

◆ get_output_camera()

Camera dewobble::FilterConfig::get_output_camera ( ) const

Get output camera which is used to generate frames

◆ get_stabilizer()

std::shared_ptr<Stabilizer> dewobble::FilterConfig::get_stabilizer ( ) const

Get the stabilizer which is used to apply a corrective rotation to frames in order to smooth the camera rotation over time

◆ set_interpolation()

void dewobble::FilterConfig::set_interpolation ( Interpolation  interpolation)

Set the interpolation algorithm to use to map the output pixels to the input (default: DEWOBBLE_INTERPOLATION_LINEAR)

◆ get_interpolation()

Interpolation dewobble::FilterConfig::get_interpolation ( ) const

Get the interpolation algorithm to use to map the output pixels to the input

◆ set_border_type()

void dewobble::FilterConfig::set_border_type ( BorderType  border_type)

Set the border extrapolation algorithm used to colour pixels in the output which do not map to the input image (default: DEWOBBLE_BORDER_CONSTANT)

◆ get_border_type()

BorderType dewobble::FilterConfig::get_border_type ( ) const

Get the border extrapolation algorithm used to colour pixels in the output which do not map to the input image

◆ set_border_color()

void dewobble::FilterConfig::set_border_color ( const Color  border_color)

Set the color to fill the unmapped areas of the output image, in the case that the border type is DEWOBBLE_BORDER_CONSTANT (default: black)

◆ get_border_color()

Color dewobble::FilterConfig::get_border_color ( ) const

Get the color to fill the unmapped areas of the output image, in the case that the border type is DEWOBBLE_BORDER_CONSTANT

◆ set_debug()

void dewobble::FilterConfig::set_debug ( bool  debug)

Set whether to include graphical debugging information in the output images

◆ set_opencl_context()

void dewobble::FilterConfig::set_opencl_context ( cl_context  context)

Set the OpenCL context to be used for transforming frames

◆ get_opencl_context()

cl_context dewobble::FilterConfig::get_opencl_context ( )

Get the OpenCL context used for transforming frames

◆ set_opencl_device()

void dewobble::FilterConfig::set_opencl_device ( cl_device_id  device)

Set the OpenCL device to be used for transforming frames

◆ get_opencl_device()

cl_device_id dewobble::FilterConfig::get_opencl_device ( )

Get the OpenCL device used for transforming frames


The documentation for this class was generated from the following file: