112# pragma warning(push)
113# pragma warning(disable : 4251)
129 static constexpr const char *path{
"" };
132 static constexpr const char *name{
"CameraIntrinsics" };
135 static constexpr const char *description{
136 R
"description(Information about the intrinsic parameters of the camera (OpenCV model))description"
139 static constexpr size_t version{ 1 };
149 static constexpr std::array<uint8_t, 3> binaryId{
'c',
'i',
'n' };
163 static constexpr const char *path{
"CameraMatrix" };
166 static constexpr const char *name{
"CameraMatrix" };
169 static constexpr const char *description{
170 R
"description(The camera matrix K (=[fx,0,cx;0,fy,cy;0,0,1]))description"
183 static constexpr const char *path{
"CameraMatrix/CX" };
186 static constexpr const char *name{
"CX" };
189 static constexpr const char *description{
190 R
"description(x coordinate of the principal point)description"
199 return { std::numeric_limits<double>::lowest(), std::numeric_limits<double>::max() };
206 explicit constexpr CX(
double value)
219 return m_value == other.m_value;
225 return m_value != other.m_value;
231 return m_value < other.m_value;
237 return m_value > other.m_value;
243 return m_value <= other.m_value;
249 return m_value >= other.m_value;
259 void setFromString(
const std::string &value);
261 double m_value{ 0.0 };
263 friend struct DataModel::Detail::Befriend<
CX>;
276 static constexpr const char *path{
"CameraMatrix/CY" };
279 static constexpr const char *name{
"CY" };
282 static constexpr const char *description{
283 R
"description(y coordinate of the principal point)description"
292 return { std::numeric_limits<double>::lowest(), std::numeric_limits<double>::max() };
299 explicit constexpr CY(
double value)
312 return m_value == other.m_value;
318 return m_value != other.m_value;
324 return m_value < other.m_value;
330 return m_value > other.m_value;
336 return m_value <= other.m_value;
342 return m_value >= other.m_value;
352 void setFromString(
const std::string &value);
354 double m_value{ 0.0 };
356 friend struct DataModel::Detail::Befriend<
CY>;
369 static constexpr const char *path{
"CameraMatrix/FX" };
372 static constexpr const char *name{
"FX" };
375 static constexpr const char *description{ R
"description(Focal length in x)description" };
383 return { std::numeric_limits<double>::lowest(), std::numeric_limits<double>::max() };
390 explicit constexpr FX(
double value)
403 return m_value == other.m_value;
409 return m_value != other.m_value;
415 return m_value < other.m_value;
421 return m_value > other.m_value;
427 return m_value <= other.m_value;
433 return m_value >= other.m_value;
443 void setFromString(
const std::string &value);
445 double m_value{ 0.0 };
447 friend struct DataModel::Detail::Befriend<
FX>;
460 static constexpr const char *path{
"CameraMatrix/FY" };
463 static constexpr const char *name{
"FY" };
466 static constexpr const char *description{ R
"description(Focal length in y)description" };
474 return { std::numeric_limits<double>::lowest(), std::numeric_limits<double>::max() };
481 explicit constexpr FY(
double value)
494 return m_value == other.m_value;
500 return m_value != other.m_value;
506 return m_value < other.m_value;
512 return m_value > other.m_value;
518 return m_value <= other.m_value;
524 return m_value >= other.m_value;
534 void setFromString(
const std::string &value);
536 double m_value{ 0.0 };
538 friend struct DataModel::Detail::Befriend<
FY>;
567 typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0,
568 typename std::enable_if<
569 Zivid::Detail::TypeTraits::AllArgsAreInTuple<
Descendants,
typename std::decay<Args>::type...>::
573 template<typename... Args>
577 using namespace Zivid::Detail::TypeTraits;
580 AllArgsDecayedAreUnique<Args...>::value,
581 "Found duplicate types among the arguments passed to CameraMatrix(...). "
582 "Types should be listed at most once.");
584 set(std::forward<Args>(args)...);
601 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 2,
int>::type = 0>
603 template<typename... Args>
607 using namespace Zivid::Detail::TypeTraits;
609 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
611 AllArgsAreDescendantNodes::value,
"All arguments passed to set(...) must be descendant nodes.");
614 AllArgsDecayedAreUnique<Args...>::value,
615 "Found duplicate types among the arguments passed to set(...). "
616 "Types should be listed at most once.");
618 Zivid::DataModel::Detail::invokeSetWithEachArgument(*
this, std::forward<Args>(args)...);
636 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0>
638 template<typename... Args>
642 using namespace Zivid::Detail::TypeTraits;
644 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
646 AllArgsAreDescendantNodes::value,
647 "All arguments passed to copyWith(...) must be descendant nodes.");
650 AllArgsDecayedAreUnique<Args...>::value,
651 "Found duplicate types among the arguments passed to copyWith(...). "
652 "Types should be listed at most once.");
655 copy.
set(std::forward<Args>(args)...);
737 typename std::enable_if<std::is_same<T, CameraIntrinsics::CameraMatrix::CX>::value,
int>::type = 0>
745 typename std::enable_if<std::is_same<T, CameraIntrinsics::CameraMatrix::CY>::value,
int>::type = 0>
753 typename std::enable_if<std::is_same<T, CameraIntrinsics::CameraMatrix::FX>::value,
int>::type = 0>
761 typename std::enable_if<std::is_same<T, CameraIntrinsics::CameraMatrix::FY>::value,
int>::type = 0>
767 template<size_t i, typename std::enable_if<i == 0, int>::type = 0>
773 template<size_t i, typename std::enable_if<i == 1, int>::type = 0>
779 template<size_t i, typename std::enable_if<i == 2, int>::type = 0>
785 template<size_t i, typename std::enable_if<i == 3, int>::type = 0>
827 void setFromString(
const std::string &value);
829 void setFromString(
const std::string &fullPath,
const std::string &value);
831 std::string getString(
const std::string &fullPath)
const;
838 friend struct DataModel::Detail::Befriend<
CameraMatrix>;
851 static constexpr const char *path{
"Distortion" };
854 static constexpr const char *name{
"Distortion" };
857 static constexpr const char *description{
858 R
"description(The radial and tangential distortion parameters)description"
871 static constexpr const char *path{
"Distortion/K1" };
874 static constexpr const char *name{
"K1" };
877 static constexpr const char *description{ R
"description(First radial distortion term)description" };
885 return { std::numeric_limits<double>::lowest(), std::numeric_limits<double>::max() };
892 explicit constexpr K1(
double value)
905 return m_value == other.m_value;
911 return m_value != other.m_value;
917 return m_value < other.m_value;
923 return m_value > other.m_value;
929 return m_value <= other.m_value;
935 return m_value >= other.m_value;
945 void setFromString(
const std::string &value);
947 double m_value{ 0.0 };
949 friend struct DataModel::Detail::Befriend<
K1>;
962 static constexpr const char *path{
"Distortion/K2" };
965 static constexpr const char *name{
"K2" };
968 static constexpr const char *description{ R
"description(Second radial distortion term)description" };
976 return { std::numeric_limits<double>::lowest(), std::numeric_limits<double>::max() };
983 explicit constexpr K2(
double value)
996 return m_value == other.m_value;
1002 return m_value != other.m_value;
1008 return m_value < other.m_value;
1014 return m_value > other.m_value;
1020 return m_value <= other.m_value;
1026 return m_value >= other.m_value;
1036 void setFromString(
const std::string &value);
1038 double m_value{ 0.0 };
1040 friend struct DataModel::Detail::Befriend<
K2>;
1053 static constexpr const char *path{
"Distortion/K3" };
1056 static constexpr const char *name{
"K3" };
1059 static constexpr const char *description{ R
"description(Third radial distortion term)description" };
1067 return { std::numeric_limits<double>::lowest(), std::numeric_limits<double>::max() };
1074 explicit constexpr K3(
double value)
1087 return m_value == other.m_value;
1093 return m_value != other.m_value;
1099 return m_value < other.m_value;
1105 return m_value > other.m_value;
1111 return m_value <= other.m_value;
1117 return m_value >= other.m_value;
1127 void setFromString(
const std::string &value);
1129 double m_value{ 0.0 };
1131 friend struct DataModel::Detail::Befriend<
K3>;
1144 static constexpr const char *path{
"Distortion/P1" };
1147 static constexpr const char *name{
"P1" };
1150 static constexpr const char *description{ R
"description(First tangential distortion term)description" };
1158 return { std::numeric_limits<double>::lowest(), std::numeric_limits<double>::max() };
1165 explicit constexpr P1(
double value)
1178 return m_value == other.m_value;
1184 return m_value != other.m_value;
1190 return m_value < other.m_value;
1196 return m_value > other.m_value;
1202 return m_value <= other.m_value;
1208 return m_value >= other.m_value;
1218 void setFromString(
const std::string &value);
1220 double m_value{ 0.0 };
1222 friend struct DataModel::Detail::Befriend<
P1>;
1235 static constexpr const char *path{
"Distortion/P2" };
1238 static constexpr const char *name{
"P2" };
1241 static constexpr const char *description{
1242 R
"description(Second tangential distortion term)description"
1251 return { std::numeric_limits<double>::lowest(), std::numeric_limits<double>::max() };
1258 explicit constexpr P2(
double value)
1271 return m_value == other.m_value;
1277 return m_value != other.m_value;
1283 return m_value < other.m_value;
1289 return m_value > other.m_value;
1295 return m_value <= other.m_value;
1301 return m_value >= other.m_value;
1311 void setFromString(
const std::string &value);
1313 double m_value{ 0.0 };
1315 friend struct DataModel::Detail::Befriend<
P2>;
1346 typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0,
1347 typename std::enable_if<
1348 Zivid::Detail::TypeTraits::AllArgsAreInTuple<
Descendants,
typename std::decay<Args>::type...>::
1352 template<typename... Args>
1356 using namespace Zivid::Detail::TypeTraits;
1359 AllArgsDecayedAreUnique<Args...>::value,
1360 "Found duplicate types among the arguments passed to Distortion(...). "
1361 "Types should be listed at most once.");
1363 set(std::forward<Args>(args)...);
1381 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 2,
int>::type = 0>
1383 template<typename... Args>
1387 using namespace Zivid::Detail::TypeTraits;
1389 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
1391 AllArgsAreDescendantNodes::value,
"All arguments passed to set(...) must be descendant nodes.");
1394 AllArgsDecayedAreUnique<Args...>::value,
1395 "Found duplicate types among the arguments passed to set(...). "
1396 "Types should be listed at most once.");
1398 Zivid::DataModel::Detail::invokeSetWithEachArgument(*
this, std::forward<Args>(args)...);
1417 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0>
1419 template<typename... Args>
1423 using namespace Zivid::Detail::TypeTraits;
1425 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
1427 AllArgsAreDescendantNodes::value,
1428 "All arguments passed to copyWith(...) must be descendant nodes.");
1431 AllArgsDecayedAreUnique<Args...>::value,
1432 "Found duplicate types among the arguments passed to copyWith(...). "
1433 "Types should be listed at most once.");
1436 copy.
set(std::forward<Args>(args)...);
1537 typename std::enable_if<std::is_same<T, CameraIntrinsics::Distortion::K1>::value,
int>::type = 0>
1545 typename std::enable_if<std::is_same<T, CameraIntrinsics::Distortion::K2>::value,
int>::type = 0>
1553 typename std::enable_if<std::is_same<T, CameraIntrinsics::Distortion::K3>::value,
int>::type = 0>
1561 typename std::enable_if<std::is_same<T, CameraIntrinsics::Distortion::P1>::value,
int>::type = 0>
1569 typename std::enable_if<std::is_same<T, CameraIntrinsics::Distortion::P2>::value,
int>::type = 0>
1575 template<size_t i, typename std::enable_if<i == 0, int>::type = 0>
1581 template<size_t i, typename std::enable_if<i == 1, int>::type = 0>
1587 template<size_t i, typename std::enable_if<i == 2, int>::type = 0>
1593 template<size_t i, typename std::enable_if<i == 3, int>::type = 0>
1599 template<size_t i, typename std::enable_if<i == 4, int>::type = 0>
1606 template<
typename F>
1617 template<
typename F>
1643 void setFromString(
const std::string &value);
1645 void setFromString(
const std::string &fullPath,
const std::string &value);
1647 std::string getString(
const std::string &fullPath)
const;
1655 friend struct DataModel::Detail::Befriend<
Distortion>;
1701 typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0,
1702 typename std::enable_if<
1703 Zivid::Detail::TypeTraits::AllArgsAreInTuple<
Descendants,
typename std::decay<Args>::type...>::value,
1706 template<typename... Args>
1710 using namespace Zivid::Detail::TypeTraits;
1713 AllArgsDecayedAreUnique<Args...>::value,
1714 "Found duplicate types among the arguments passed to CameraIntrinsics(...). "
1715 "Types should be listed at most once.");
1717 set(std::forward<Args>(args)...);
1741 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 2,
int>::type = 0>
1743 template<typename... Args>
1747 using namespace Zivid::Detail::TypeTraits;
1749 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
1751 AllArgsAreDescendantNodes::value,
"All arguments passed to set(...) must be descendant nodes.");
1754 AllArgsDecayedAreUnique<Args...>::value,
1755 "Found duplicate types among the arguments passed to set(...). "
1756 "Types should be listed at most once.");
1758 Zivid::DataModel::Detail::invokeSetWithEachArgument(*
this, std::forward<Args>(args)...);
1783 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0>
1785 template<typename... Args>
1789 using namespace Zivid::Detail::TypeTraits;
1791 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
1793 AllArgsAreDescendantNodes::value,
"All arguments passed to copyWith(...) must be descendant nodes.");
1796 AllArgsDecayedAreUnique<Args...>::value,
1797 "Found duplicate types among the arguments passed to copyWith(...). "
1798 "Types should be listed at most once.");
1801 copy.
set(std::forward<Args>(args)...);
1808 return m_cameraMatrix;
1814 return m_cameraMatrix;
1820 m_cameraMatrix = value;
1827 m_cameraMatrix.
set(value);
1834 m_cameraMatrix.
set(value);
1841 m_cameraMatrix.
set(value);
1848 m_cameraMatrix.
set(value);
1855 return m_distortion;
1861 return m_distortion;
1867 m_distortion = value;
1874 m_distortion.
set(value);
1881 m_distortion.
set(value);
1888 m_distortion.
set(value);
1895 m_distortion.
set(value);
1902 m_distortion.
set(value);
1908 typename std::enable_if<std::is_same<T, CameraIntrinsics::CameraMatrix>::value,
int>::type = 0>
1911 return m_cameraMatrix;
1916 typename std::enable_if<std::is_same<T, CameraIntrinsics::CameraMatrix::CX>::value,
int>::type = 0>
1924 typename std::enable_if<std::is_same<T, CameraIntrinsics::CameraMatrix::CY>::value,
int>::type = 0>
1932 typename std::enable_if<std::is_same<T, CameraIntrinsics::CameraMatrix::FX>::value,
int>::type = 0>
1940 typename std::enable_if<std::is_same<T, CameraIntrinsics::CameraMatrix::FY>::value,
int>::type = 0>
1948 typename std::enable_if<std::is_same<T, CameraIntrinsics::Distortion>::value,
int>::type = 0>
1951 return m_distortion;
1956 typename std::enable_if<std::is_same<T, CameraIntrinsics::Distortion::K1>::value,
int>::type = 0>
1964 typename std::enable_if<std::is_same<T, CameraIntrinsics::Distortion::K2>::value,
int>::type = 0>
1972 typename std::enable_if<std::is_same<T, CameraIntrinsics::Distortion::K3>::value,
int>::type = 0>
1980 typename std::enable_if<std::is_same<T, CameraIntrinsics::Distortion::P1>::value,
int>::type = 0>
1988 typename std::enable_if<std::is_same<T, CameraIntrinsics::Distortion::P2>::value,
int>::type = 0>
1994 template<size_t i, typename std::enable_if<i == 0, int>::type = 0>
1997 return m_cameraMatrix;
2000 template<size_t i, typename std::enable_if<i == 1, int>::type = 0>
2003 return m_distortion;
2007 template<
typename F>
2015 template<
typename F>
2038 void save(
const std::string &fileName)
const;
2041 void load(
const std::string &fileName);
2044 void setFromString(
const std::string &value);
2046 void setFromString(
const std::string &fullPath,
const std::string &value);
2048 std::string getString(
const std::string &fullPath)
const;
2067 struct CameraIntrinsics::Version<1>
2076# pragma warning(pop)
2080# if !(defined(_MSC_VER) && (_MSC_VER <= 1900))
2085 struct tuple_size<
Zivid::CameraIntrinsics::CameraMatrix> : integral_constant<size_t, 4>
2089 struct tuple_element<i,
Zivid::CameraIntrinsics::CameraMatrix>
2091 static_assert(i < tuple_size<Zivid::CameraIntrinsics::CameraMatrix>::value,
"Index must be less than 4");
2094 =
decltype(declval<Zivid::CameraIntrinsics::CameraMatrix>().get<i>());
2098 struct tuple_size<
Zivid::CameraIntrinsics::Distortion> : integral_constant<size_t, 5>
2102 struct tuple_element<i,
Zivid::CameraIntrinsics::Distortion>
2104 static_assert(i < tuple_size<Zivid::CameraIntrinsics::Distortion>::value,
"Index must be less than 5");
2107 =
decltype(declval<Zivid::CameraIntrinsics::Distortion>().get<i>());
2111 struct tuple_size<
Zivid::CameraIntrinsics> : integral_constant<size_t, 2>
2115 struct tuple_element<i,
Zivid::CameraIntrinsics>
2117 static_assert(i < tuple_size<Zivid::CameraIntrinsics>::value,
"Index must be less than 2");
2120 =
decltype(declval<Zivid::CameraIntrinsics>().get<i>());
2129#if defined(__has_include) && !defined(NO_DOC)
2130# if __has_include("Zivid/CameraIntrinsicsInternal.h") && __has_include("Zivid/DataModelNodeMetaData.h")
2131# include "Zivid/CameraIntrinsicsInternal.h"
#define ZIVID_CORE_EXPORT
Definition: CoreExport.h:101
x coordinate of the principal point
Definition: CameraIntrinsics.h:177
bool operator==(const CX &other) const
Comparison operator
Definition: CameraIntrinsics.h:217
std::string toString() const
Get the value as string
bool operator<(const CX &other) const
Comparison operator
Definition: CameraIntrinsics.h:229
bool operator>=(const CX &other) const
Comparison operator
Definition: CameraIntrinsics.h:247
constexpr CX(double value)
Constructor
Definition: CameraIntrinsics.h:206
bool operator>(const CX &other) const
Comparison operator
Definition: CameraIntrinsics.h:235
bool operator!=(const CX &other) const
Comparison operator
Definition: CameraIntrinsics.h:223
double value() const
Get the value
CX()=default
Default constructor
friend std::ostream & operator<<(std::ostream &stream, const CX &value)
Operator to serialize the value to a stream
Definition: CameraIntrinsics.h:253
static constexpr Range< double > validRange()
The range of valid values for CX
Definition: CameraIntrinsics.h:197
bool operator<=(const CX &other) const
Comparison operator
Definition: CameraIntrinsics.h:241
double ValueType
The type of the underlying value
Definition: CameraIntrinsics.h:194
y coordinate of the principal point
Definition: CameraIntrinsics.h:270
friend std::ostream & operator<<(std::ostream &stream, const CY &value)
Operator to serialize the value to a stream
Definition: CameraIntrinsics.h:346
double ValueType
The type of the underlying value
Definition: CameraIntrinsics.h:287
bool operator<=(const CY &other) const
Comparison operator
Definition: CameraIntrinsics.h:334
bool operator>(const CY &other) const
Comparison operator
Definition: CameraIntrinsics.h:328
double value() const
Get the value
CY()=default
Default constructor
static constexpr Range< double > validRange()
The range of valid values for CY
Definition: CameraIntrinsics.h:290
bool operator!=(const CY &other) const
Comparison operator
Definition: CameraIntrinsics.h:316
std::string toString() const
Get the value as string
bool operator==(const CY &other) const
Comparison operator
Definition: CameraIntrinsics.h:310
bool operator<(const CY &other) const
Comparison operator
Definition: CameraIntrinsics.h:322
constexpr CY(double value)
Constructor
Definition: CameraIntrinsics.h:299
bool operator>=(const CY &other) const
Comparison operator
Definition: CameraIntrinsics.h:340
Focal length in x
Definition: CameraIntrinsics.h:363
static constexpr Range< double > validRange()
The range of valid values for FX
Definition: CameraIntrinsics.h:381
double value() const
Get the value
FX()=default
Default constructor
bool operator!=(const FX &other) const
Comparison operator
Definition: CameraIntrinsics.h:407
double ValueType
The type of the underlying value
Definition: CameraIntrinsics.h:378
constexpr FX(double value)
Constructor
Definition: CameraIntrinsics.h:390
bool operator==(const FX &other) const
Comparison operator
Definition: CameraIntrinsics.h:401
bool operator>(const FX &other) const
Comparison operator
Definition: CameraIntrinsics.h:419
bool operator<=(const FX &other) const
Comparison operator
Definition: CameraIntrinsics.h:425
bool operator>=(const FX &other) const
Comparison operator
Definition: CameraIntrinsics.h:431
friend std::ostream & operator<<(std::ostream &stream, const FX &value)
Operator to serialize the value to a stream
Definition: CameraIntrinsics.h:437
std::string toString() const
Get the value as string
bool operator<(const FX &other) const
Comparison operator
Definition: CameraIntrinsics.h:413
Focal length in y
Definition: CameraIntrinsics.h:454
bool operator>(const FY &other) const
Comparison operator
Definition: CameraIntrinsics.h:510
bool operator!=(const FY &other) const
Comparison operator
Definition: CameraIntrinsics.h:498
bool operator==(const FY &other) const
Comparison operator
Definition: CameraIntrinsics.h:492
FY()=default
Default constructor
static constexpr Range< double > validRange()
The range of valid values for FY
Definition: CameraIntrinsics.h:472
double value() const
Get the value
bool operator<(const FY &other) const
Comparison operator
Definition: CameraIntrinsics.h:504
friend std::ostream & operator<<(std::ostream &stream, const FY &value)
Operator to serialize the value to a stream
Definition: CameraIntrinsics.h:528
std::string toString() const
Get the value as string
double ValueType
The type of the underlying value
Definition: CameraIntrinsics.h:469
bool operator>=(const FY &other) const
Comparison operator
Definition: CameraIntrinsics.h:522
constexpr FY(double value)
Constructor
Definition: CameraIntrinsics.h:481
bool operator<=(const FY &other) const
Comparison operator
Definition: CameraIntrinsics.h:516
The camera matrix K (=[fx,0,cx;0,fy,cy;0,0,1])
Definition: CameraIntrinsics.h:157
const FX & fx() const
Get FX
Definition: CameraIntrinsics.h:698
const CameraIntrinsics::CameraMatrix::CX & get() const
Definition: CameraIntrinsics.h:738
void set(Args &&...args)
Set multiple arguments
Definition: CameraIntrinsics.h:605
CameraMatrix & set(const CY &value)
Set CY
Definition: CameraIntrinsics.h:691
const CameraIntrinsics::CameraMatrix::FX & get() const
Definition: CameraIntrinsics.h:754
bool operator!=(const CameraMatrix &other) const
Inequality operator
const CY & cy() const
Get CY
Definition: CameraIntrinsics.h:679
std::tuple< CameraIntrinsics::CameraMatrix::CX, CameraIntrinsics::CameraMatrix::CY, CameraIntrinsics::CameraMatrix::FX, CameraIntrinsics::CameraMatrix::FY > Descendants
Definition: CameraIntrinsics.h:545
const CameraIntrinsics::CameraMatrix::FY & get() const
Definition: CameraIntrinsics.h:762
bool operator==(const CameraMatrix &other) const
Equality operator
std::string toString() const
Get the value as string
friend std::ostream & operator<<(std::ostream &stream, const CameraMatrix &value)
Operator to send the value as string to a stream
Definition: CameraIntrinsics.h:821
CameraMatrix & set(const CX &value)
Set CX
Definition: CameraIntrinsics.h:672
const CameraIntrinsics::CameraMatrix::CY & get() const
Definition: CameraIntrinsics.h:746
CameraMatrix & set(const FY &value)
Set FY
Definition: CameraIntrinsics.h:729
void forEach(const F &f) const
Run the given function on each direct member with the value of the member as parameter
Definition: CameraIntrinsics.h:793
CameraMatrix & set(const FX &value)
Set FX
Definition: CameraIntrinsics.h:710
FY & fy()
Get FY
Definition: CameraIntrinsics.h:723
CameraMatrix(Args &&...args)
Constructor taking variadic number of arguments
Definition: CameraIntrinsics.h:575
CameraMatrix copyWith(Args &&...args) const
Returns a copy of this object with the given argument(s) set to the new value(s)
Definition: CameraIntrinsics.h:640
CX & cx()
Get CX
Definition: CameraIntrinsics.h:666
const FY & fy() const
Get FY
Definition: CameraIntrinsics.h:717
const CX & cx() const
Get CX
Definition: CameraIntrinsics.h:660
CY & cy()
Get CY
Definition: CameraIntrinsics.h:685
CameraMatrix()
Default constructor
void forEach(const F &f)
Run the given function on each direct member with the value of the member as parameter
Definition: CameraIntrinsics.h:803
FX & fx()
Get FX
Definition: CameraIntrinsics.h:704
First radial distortion term
Definition: CameraIntrinsics.h:865
bool operator<(const K1 &other) const
Comparison operator
Definition: CameraIntrinsics.h:915
K1()=default
Default constructor
bool operator!=(const K1 &other) const
Comparison operator
Definition: CameraIntrinsics.h:909
friend std::ostream & operator<<(std::ostream &stream, const K1 &value)
Operator to serialize the value to a stream
Definition: CameraIntrinsics.h:939
bool operator>(const K1 &other) const
Comparison operator
Definition: CameraIntrinsics.h:921
constexpr K1(double value)
Constructor
Definition: CameraIntrinsics.h:892
bool operator>=(const K1 &other) const
Comparison operator
Definition: CameraIntrinsics.h:933
bool operator<=(const K1 &other) const
Comparison operator
Definition: CameraIntrinsics.h:927
static constexpr Range< double > validRange()
The range of valid values for K1
Definition: CameraIntrinsics.h:883
bool operator==(const K1 &other) const
Comparison operator
Definition: CameraIntrinsics.h:903
double value() const
Get the value
std::string toString() const
Get the value as string
double ValueType
The type of the underlying value
Definition: CameraIntrinsics.h:880
Second radial distortion term
Definition: CameraIntrinsics.h:956
bool operator>=(const K2 &other) const
Comparison operator
Definition: CameraIntrinsics.h:1024
static constexpr Range< double > validRange()
The range of valid values for K2
Definition: CameraIntrinsics.h:974
bool operator>(const K2 &other) const
Comparison operator
Definition: CameraIntrinsics.h:1012
bool operator!=(const K2 &other) const
Comparison operator
Definition: CameraIntrinsics.h:1000
std::string toString() const
Get the value as string
bool operator==(const K2 &other) const
Comparison operator
Definition: CameraIntrinsics.h:994
bool operator<(const K2 &other) const
Comparison operator
Definition: CameraIntrinsics.h:1006
friend std::ostream & operator<<(std::ostream &stream, const K2 &value)
Operator to serialize the value to a stream
Definition: CameraIntrinsics.h:1030
K2()=default
Default constructor
bool operator<=(const K2 &other) const
Comparison operator
Definition: CameraIntrinsics.h:1018
double ValueType
The type of the underlying value
Definition: CameraIntrinsics.h:971
constexpr K2(double value)
Constructor
Definition: CameraIntrinsics.h:983
double value() const
Get the value
Third radial distortion term
Definition: CameraIntrinsics.h:1047
bool operator<(const K3 &other) const
Comparison operator
Definition: CameraIntrinsics.h:1097
double value() const
Get the value
static constexpr Range< double > validRange()
The range of valid values for K3
Definition: CameraIntrinsics.h:1065
K3()=default
Default constructor
std::string toString() const
Get the value as string
constexpr K3(double value)
Constructor
Definition: CameraIntrinsics.h:1074
bool operator>(const K3 &other) const
Comparison operator
Definition: CameraIntrinsics.h:1103
bool operator<=(const K3 &other) const
Comparison operator
Definition: CameraIntrinsics.h:1109
bool operator>=(const K3 &other) const
Comparison operator
Definition: CameraIntrinsics.h:1115
double ValueType
The type of the underlying value
Definition: CameraIntrinsics.h:1062
bool operator!=(const K3 &other) const
Comparison operator
Definition: CameraIntrinsics.h:1091
friend std::ostream & operator<<(std::ostream &stream, const K3 &value)
Operator to serialize the value to a stream
Definition: CameraIntrinsics.h:1121
bool operator==(const K3 &other) const
Comparison operator
Definition: CameraIntrinsics.h:1085
First tangential distortion term
Definition: CameraIntrinsics.h:1138
bool operator>(const P1 &other) const
Comparison operator
Definition: CameraIntrinsics.h:1194
static constexpr Range< double > validRange()
The range of valid values for P1
Definition: CameraIntrinsics.h:1156
bool operator==(const P1 &other) const
Comparison operator
Definition: CameraIntrinsics.h:1176
bool operator>=(const P1 &other) const
Comparison operator
Definition: CameraIntrinsics.h:1206
std::string toString() const
Get the value as string
friend std::ostream & operator<<(std::ostream &stream, const P1 &value)
Operator to serialize the value to a stream
Definition: CameraIntrinsics.h:1212
bool operator<(const P1 &other) const
Comparison operator
Definition: CameraIntrinsics.h:1188
P1()=default
Default constructor
bool operator<=(const P1 &other) const
Comparison operator
Definition: CameraIntrinsics.h:1200
double value() const
Get the value
constexpr P1(double value)
Constructor
Definition: CameraIntrinsics.h:1165
double ValueType
The type of the underlying value
Definition: CameraIntrinsics.h:1153
bool operator!=(const P1 &other) const
Comparison operator
Definition: CameraIntrinsics.h:1182
Second tangential distortion term
Definition: CameraIntrinsics.h:1229
static constexpr Range< double > validRange()
The range of valid values for P2
Definition: CameraIntrinsics.h:1249
bool operator==(const P2 &other) const
Comparison operator
Definition: CameraIntrinsics.h:1269
friend std::ostream & operator<<(std::ostream &stream, const P2 &value)
Operator to serialize the value to a stream
Definition: CameraIntrinsics.h:1305
bool operator>(const P2 &other) const
Comparison operator
Definition: CameraIntrinsics.h:1287
constexpr P2(double value)
Constructor
Definition: CameraIntrinsics.h:1258
P2()=default
Default constructor
double value() const
Get the value
double ValueType
The type of the underlying value
Definition: CameraIntrinsics.h:1246
std::string toString() const
Get the value as string
bool operator<(const P2 &other) const
Comparison operator
Definition: CameraIntrinsics.h:1281
bool operator>=(const P2 &other) const
Comparison operator
Definition: CameraIntrinsics.h:1299
bool operator<=(const P2 &other) const
Comparison operator
Definition: CameraIntrinsics.h:1293
bool operator!=(const P2 &other) const
Comparison operator
Definition: CameraIntrinsics.h:1275
The radial and tangential distortion parameters
Definition: CameraIntrinsics.h:845
const CameraIntrinsics::Distortion::K3 & get() const
Definition: CameraIntrinsics.h:1554
Distortion(Args &&...args)
Constructor taking variadic number of arguments
Definition: CameraIntrinsics.h:1354
const P2 & p2() const
Get P2
Definition: CameraIntrinsics.h:1517
K3 & k3()
Get K3
Definition: CameraIntrinsics.h:1485
const K2 & k2() const
Get K2
Definition: CameraIntrinsics.h:1460
std::tuple< CameraIntrinsics::Distortion::K1, CameraIntrinsics::Distortion::K2, CameraIntrinsics::Distortion::K3, CameraIntrinsics::Distortion::P1, CameraIntrinsics::Distortion::P2 > Descendants
Definition: CameraIntrinsics.h:1323
void set(Args &&...args)
Set multiple arguments
Definition: CameraIntrinsics.h:1385
Distortion copyWith(Args &&...args) const
Returns a copy of this object with the given argument(s) set to the new value(s)
Definition: CameraIntrinsics.h:1421
Distortion & set(const K2 &value)
Set K2
Definition: CameraIntrinsics.h:1472
K1 & k1()
Get K1
Definition: CameraIntrinsics.h:1447
std::string toString() const
Get the value as string
P1 & p1()
Get P1
Definition: CameraIntrinsics.h:1504
Distortion()
Default constructor
bool operator==(const Distortion &other) const
Equality operator
void forEach(const F &f)
Run the given function on each direct member with the value of the member as parameter
Definition: CameraIntrinsics.h:1618
const CameraIntrinsics::Distortion::K2 & get() const
Definition: CameraIntrinsics.h:1546
const CameraIntrinsics::Distortion::P2 & get() const
Definition: CameraIntrinsics.h:1570
Distortion & set(const K3 &value)
Set K3
Definition: CameraIntrinsics.h:1491
const CameraIntrinsics::Distortion::P1 & get() const
Definition: CameraIntrinsics.h:1562
bool operator!=(const Distortion &other) const
Inequality operator
const P1 & p1() const
Get P1
Definition: CameraIntrinsics.h:1498
const K3 & k3() const
Get K3
Definition: CameraIntrinsics.h:1479
Distortion & set(const P1 &value)
Set P1
Definition: CameraIntrinsics.h:1510
void forEach(const F &f) const
Run the given function on each direct member with the value of the member as parameter
Definition: CameraIntrinsics.h:1607
const CameraIntrinsics::Distortion::K1 & get() const
Definition: CameraIntrinsics.h:1538
const K1 & k1() const
Get K1
Definition: CameraIntrinsics.h:1441
Distortion & set(const P2 &value)
Set P2
Definition: CameraIntrinsics.h:1529
Distortion & set(const K1 &value)
Set K1
Definition: CameraIntrinsics.h:1453
P2 & p2()
Get P2
Definition: CameraIntrinsics.h:1523
K2 & k2()
Get K2
Definition: CameraIntrinsics.h:1466
friend std::ostream & operator<<(std::ostream &stream, const Distortion &value)
Operator to send the value as string to a stream
Definition: CameraIntrinsics.h:1637
Information about the intrinsic parameters of the camera (OpenCV model)
Definition: CameraIntrinsics.h:123
CameraIntrinsics & set(const Distortion::K3 &value)
Set Distortion::K3
Definition: CameraIntrinsics.h:1886
CameraMatrix & cameraMatrix()
Get CameraMatrix
Definition: CameraIntrinsics.h:1812
const CameraIntrinsics::CameraMatrix::CX & get() const
Definition: CameraIntrinsics.h:1917
const CameraIntrinsics::Distortion::K1 & get() const
Definition: CameraIntrinsics.h:1957
bool operator!=(const CameraIntrinsics &other) const
Inequality operator
const CameraIntrinsics::CameraMatrix::FY & get() const
Definition: CameraIntrinsics.h:1941
void forEach(const F &f) const
Run the given function on each direct member with the value of the member as parameter
Definition: CameraIntrinsics.h:2008
CameraIntrinsics(Args &&...args)
Constructor taking variadic number of arguments
Definition: CameraIntrinsics.h:1708
std::string toString() const
Get the value as string
CameraIntrinsics & set(const Distortion::P1 &value)
Set Distortion::P1
Definition: CameraIntrinsics.h:1893
const Distortion & distortion() const
Get Distortion
Definition: CameraIntrinsics.h:1853
void set(Args &&...args)
Set multiple arguments
Definition: CameraIntrinsics.h:1745
CameraIntrinsics & set(const Distortion::K1 &value)
Set Distortion::K1
Definition: CameraIntrinsics.h:1872
const CameraIntrinsics::Distortion::K3 & get() const
Definition: CameraIntrinsics.h:1973
CameraIntrinsics copyWith(Args &&...args) const
Returns a copy of this object with the given argument(s) set to the new value(s)
Definition: CameraIntrinsics.h:1787
void forEach(const F &f)
Run the given function on each direct member with the value of the member as parameter
Definition: CameraIntrinsics.h:2016
CameraIntrinsics()
Default constructor
CameraIntrinsics & set(const CameraMatrix::FY &value)
Set CameraMatrix::FY
Definition: CameraIntrinsics.h:1846
void load(const std::string &fileName)
Load from the given file
const CameraIntrinsics::Distortion::P1 & get() const
Definition: CameraIntrinsics.h:1981
bool operator==(const CameraIntrinsics &other) const
Equality operator
CameraIntrinsics & set(const CameraMatrix::CY &value)
Set CameraMatrix::CY
Definition: CameraIntrinsics.h:1832
CameraIntrinsics(const std::string &fileName)
Construct CameraIntrinsics by loading from file
CameraIntrinsics & set(const CameraMatrix &value)
Set CameraMatrix
Definition: CameraIntrinsics.h:1818
CameraIntrinsics & set(const Distortion::P2 &value)
Set Distortion::P2
Definition: CameraIntrinsics.h:1900
CameraIntrinsics & set(const Distortion &value)
Set Distortion
Definition: CameraIntrinsics.h:1865
const CameraIntrinsics::CameraMatrix::CY & get() const
Definition: CameraIntrinsics.h:1925
CameraIntrinsics & set(const CameraMatrix::CX &value)
Set CameraMatrix::CX
Definition: CameraIntrinsics.h:1825
void save(const std::string &fileName) const
Save to the given file
CameraIntrinsics & set(const CameraMatrix::FX &value)
Set CameraMatrix::FX
Definition: CameraIntrinsics.h:1839
const CameraIntrinsics::CameraMatrix & get() const
Definition: CameraIntrinsics.h:1909
const CameraIntrinsics::Distortion::K2 & get() const
Definition: CameraIntrinsics.h:1965
const CameraMatrix & cameraMatrix() const
Get CameraMatrix
Definition: CameraIntrinsics.h:1806
const CameraIntrinsics::Distortion::P2 & get() const
Definition: CameraIntrinsics.h:1989
const CameraIntrinsics::Distortion & get() const
Definition: CameraIntrinsics.h:1949
friend std::ostream & operator<<(std::ostream &stream, const CameraIntrinsics &value)
Operator to send the value as string to a stream
Definition: CameraIntrinsics.h:2032
const CameraIntrinsics::CameraMatrix::FX & get() const
Definition: CameraIntrinsics.h:1933
Distortion & distortion()
Get Distortion
Definition: CameraIntrinsics.h:1859
std::tuple< CameraIntrinsics::CameraMatrix, CameraIntrinsics::CameraMatrix::CX, CameraIntrinsics::CameraMatrix::CY, CameraIntrinsics::CameraMatrix::FX, CameraIntrinsics::CameraMatrix::FY, CameraIntrinsics::Distortion, CameraIntrinsics::Distortion::K1, CameraIntrinsics::Distortion::K2, CameraIntrinsics::Distortion::K3, CameraIntrinsics::Distortion::P1, CameraIntrinsics::Distortion::P2 > Descendants
Definition: CameraIntrinsics.h:1669
CameraIntrinsics & set(const Distortion::K2 &value)
Set Distortion::K2
Definition: CameraIntrinsics.h:1879
Class describing a range of values for a given type T
Definition: Range.h:118
NodeType
Definition: NodeType.h:100
The main Zivid namespace. All Zivid code is found here
Definition: Application.h:99