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

A functor class that represents a linear transformation: intercept + gradient * x. More...

#include <Common.h>

Public Member Functions

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

Public Attributes

T intercept
 
T gradient
 

Detailed Description

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

A functor class that represents a linear transformation: intercept + gradient * x.

Template Parameters
TThe type of the contained values

Can be applied to other instances of Linear and Linear2, producing a single Linear or Linear2 instance that represents the linear transformation corresponding to the chaining of the two combined instances.

Member Function Documentation

◆ operator()() [1/2]

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

Chain two Linear transformations

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

◆ operator()() [2/2]

template<typename T >
__host__ __device__ T reg23::Linear< T >::operator() ( const T x) const
inline
Parameters
x
Returns
The linear transform of the input: intercept + gradient * x

Member Data Documentation

◆ gradient

template<typename T >
T reg23::Linear< T >::gradient

◆ intercept

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

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