Zivid C++ API 2.9.0+4dbba385-1
Defining the Future of 3D Machine Vision
|
The radial and tangential distortion parameters More...
#include <Zivid/CameraIntrinsics.h>
Classes | |
class | K1 |
First radial distortion term More... | |
class | K2 |
Second radial distortion term More... | |
class | K3 |
Third radial distortion term More... | |
class | P1 |
First tangential distortion term More... | |
class | P2 |
Second tangential distortion term More... | |
Public Types | |
using | Descendants = std::tuple< CameraIntrinsics::Distortion::K1, CameraIntrinsics::Distortion::K2, CameraIntrinsics::Distortion::K3, CameraIntrinsics::Distortion::P1, CameraIntrinsics::Distortion::P2 > |
Public Member Functions | |
Distortion () | |
Default constructor More... | |
template<typename... Args> | |
Distortion (Args &&...args) | |
Constructor taking variadic number of arguments More... | |
template<typename... Args> | |
void | set (Args &&...args) |
Set multiple arguments More... | |
template<typename... Args> | |
Distortion | copyWith (Args &&...args) const |
Returns a copy of this object with the given argument(s) set to the new value(s) More... | |
const K1 & | k1 () const |
Get K1 More... | |
K1 & | k1 () |
Get K1 More... | |
Distortion & | set (const K1 &value) |
Set K1 More... | |
const K2 & | k2 () const |
Get K2 More... | |
K2 & | k2 () |
Get K2 More... | |
Distortion & | set (const K2 &value) |
Set K2 More... | |
const K3 & | k3 () const |
Get K3 More... | |
K3 & | k3 () |
Get K3 More... | |
Distortion & | set (const K3 &value) |
Set K3 More... | |
const P1 & | p1 () const |
Get P1 More... | |
P1 & | p1 () |
Get P1 More... | |
Distortion & | set (const P1 &value) |
Set P1 More... | |
const P2 & | p2 () const |
Get P2 More... | |
P2 & | p2 () |
Get P2 More... | |
Distortion & | set (const P2 &value) |
Set P2 More... | |
template<typename T , typename std::enable_if< std::is_same< T, CameraIntrinsics::Distortion::K1 >::value, int >::type = 0> | |
const CameraIntrinsics::Distortion::K1 & | get () const |
template<typename T , typename std::enable_if< std::is_same< T, CameraIntrinsics::Distortion::K2 >::value, int >::type = 0> | |
const CameraIntrinsics::Distortion::K2 & | get () const |
template<typename T , typename std::enable_if< std::is_same< T, CameraIntrinsics::Distortion::K3 >::value, int >::type = 0> | |
const CameraIntrinsics::Distortion::K3 & | get () const |
template<typename T , typename std::enable_if< std::is_same< T, CameraIntrinsics::Distortion::P1 >::value, int >::type = 0> | |
const CameraIntrinsics::Distortion::P1 & | get () const |
template<typename T , typename std::enable_if< std::is_same< T, CameraIntrinsics::Distortion::P2 >::value, int >::type = 0> | |
const CameraIntrinsics::Distortion::P2 & | get () const |
template<size_t i, typename std::enable_if< i==0, int >::type = 0> | |
const CameraIntrinsics::Distortion::K1 & | get () const |
template<size_t i, typename std::enable_if< i==1, int >::type = 0> | |
const CameraIntrinsics::Distortion::K2 & | get () const |
template<size_t i, typename std::enable_if< i==2, int >::type = 0> | |
const CameraIntrinsics::Distortion::K3 & | get () const |
template<size_t i, typename std::enable_if< i==3, int >::type = 0> | |
const CameraIntrinsics::Distortion::P1 & | get () const |
template<size_t i, typename std::enable_if< i==4, int >::type = 0> | |
const CameraIntrinsics::Distortion::P2 & | get () const |
template<typename F > | |
void | forEach (const F &f) const |
Run the given function on each direct member with the value of the member as parameter More... | |
template<typename F > | |
void | forEach (const F &f) |
Run the given function on each direct member with the value of the member as parameter More... | |
bool | operator== (const Distortion &other) const |
Equality operator More... | |
bool | operator!= (const Distortion &other) const |
Inequality operator More... | |
std::string | toString () const |
Get the value as string More... | |
Static Public Attributes | |
static constexpr DataModel::NodeType | nodeType = DataModel::NodeType::group |
The type of this node More... | |
static constexpr const char * | path { "Distortion" } |
The full path for this value More... | |
static constexpr const char * | name { "Distortion" } |
The name of this value More... | |
static constexpr const char * | description |
The description for this value More... | |
Friends | |
struct | DataModel::Detail::Befriend< Distortion > |
std::ostream & | operator<< (std::ostream &stream, const Distortion &value) |
Operator to send the value as string to a stream More... | |
The radial and tangential distortion parameters
Zivid::CameraIntrinsics::Distortion::Distortion | ( | ) |
Default constructor
|
inlineexplicit |
Constructor taking variadic number of arguments
One or more descendant types can be provided. All types not provided will be set to their default value. The result is the same as default constructing Distortion
then invoking set(args)
.
The provided arguments must be descendants of Distortion
. These types can be provided:
|
inline |
Returns a copy of this object with the given argument(s) set to the new value(s)
Creates a copy of this Distortion object, then invokes set(args)
on the copy, and finally returns the copy. This method does not modify the original object.
The provided arguments must be descendants of Distortion
. These types can be provided:
|
inline |
Run the given function on each direct member with the value of the member as parameter
|
inline |
Run the given function on each direct member with the value of the member as parameter
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bool Zivid::CameraIntrinsics::Distortion::operator!= | ( | const Distortion & | other | ) | const |
Inequality operator
bool Zivid::CameraIntrinsics::Distortion::operator== | ( | const Distortion & | other | ) | const |
Equality operator
|
inline |
Set multiple arguments
The method invokes set(arg)
with each of the provided arguments.
The provided arguments must be descendants of Distortion
. These types can be provided:
|
inline |
Set K1
|
inline |
Set K2
|
inline |
Set K3
|
inline |
Set P1
|
inline |
Set P2
std::string Zivid::CameraIntrinsics::Distortion::toString | ( | ) | const |
Get the value as string
|
friend |
|
friend |
Operator to send the value as string to a stream
|
staticconstexpr |
The description for this value
|
staticconstexpr |
The name of this value
|
staticconstexpr |
The type of this node
|
staticconstexpr |
The full path for this value