Grangeat-based 2D/3D image registration
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
reg23::Linear2< T > Struct Template Reference

A functor class that represents a linear transformation of two variables: intercept + gradient1 * x + gradient2 * y. More...

#include <Common.h>

Public Member Functions

__host__ __device__ T operator() (const T &x, const T &y) const
 
__host__ __device__ Linear2 operator() (const Linear< T > &other) const
 
__host__ __device__ Linear2 operator() (const Linear2 &other) const
 

Public Attributes

T intercept
 
T gradient1
 
T gradient2
 

Detailed Description

template<typename T>
struct reg23::Linear2< T >

A functor class that represents a linear transformation of two variables: intercept + gradient1 * x + gradient2 * y.

Template Parameters
TThe type of the contained values

Member Function Documentation

◆ operator()() [1/3]

template<typename T >
__host__ __device__ Linear2 reg23::Linear2< T >::operator() ( const Linear2< T > &  other) const
inline

Chain two Linear2 transformations

Parameters
other
Returns
The Linear2 transformation corresponding to the application of other, followed by this

◆ operator()() [2/3]

template<typename T >
__host__ __device__ Linear2 reg23::Linear2< T >::operator() ( const Linear< T > &  other) const
inline

Chain a Linear2 transformation with a Linear transformation

Parameters
other
Returns
The Linear2 transformation corresponding to the application of other, followed by this

◆ operator()() [3/3]

template<typename T >
__host__ __device__ T reg23::Linear2< T >::operator() ( const T x,
const T y 
) const
inline
Parameters
x
y
Returns
The linear transform of the input: intercept + gradient1 * x + gradient2 * y

Member Data Documentation

◆ gradient1

template<typename T >
T reg23::Linear2< T >::gradient1

◆ gradient2

template<typename T >
T reg23::Linear2< T >::gradient2

◆ intercept

template<typename T >
T reg23::Linear2< T >::intercept

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