Zivid C++ API 2.13.1+18e79e79-1
|
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 |
Public Member Functions | |
Distortion () | |
Default constructor. | |
template<typename... Args> | |
Distortion (Args &&...args) | |
Constructor taking variadic number of arguments. | |
template<typename... Args> | |
void | set (Args &&...args) |
Set multiple arguments. | |
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) | |
const K1 & | k1 () const |
Get K1. | |
K1 & | k1 () |
Get K1. | |
Distortion & | set (const K1 &value) |
Set K1. | |
const K2 & | k2 () const |
Get K2. | |
K2 & | k2 () |
Get K2. | |
Distortion & | set (const K2 &value) |
Set K2. | |
const K3 & | k3 () const |
Get K3. | |
K3 & | k3 () |
Get K3. | |
Distortion & | set (const K3 &value) |
Set K3. | |
const P1 & | p1 () const |
Get P1. | |
P1 & | p1 () |
Get P1. | |
Distortion & | set (const P1 &value) |
Set P1. | |
const P2 & | p2 () const |
Get P2. | |
P2 & | p2 () |
Get P2. | |
Distortion & | set (const P2 &value) |
Set P2. | |
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. | |
template<typename F > | |
void | forEach (const F &f) |
Run the given function on each direct member with the value of the member as parameter. | |
bool | operator== (const Distortion &other) const |
Equality operator. | |
bool | operator!= (const Distortion &other) const |
Inequality operator. | |
std::string | toString () const |
Get the value as string. | |
Static Public Attributes | |
static constexpr DataModel::NodeType | nodeType = DataModel::NodeType::group |
The type of this node. | |
static constexpr const char * | path { "Distortion" } |
The full path for this value. | |
static constexpr const char * | name { "Distortion" } |
The name of this value. | |
static constexpr const char * | description |
The description for this value. | |
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. | |
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.