68# pragma warning(disable : 4251)
84 static constexpr const char *path{
"" };
87 static constexpr const char *name{
"CameraIntrinsics" };
90 static constexpr const char *description{
91 R
"description(Information about the intrinsic parameters of the camera (OpenCV model))description"
94 static constexpr size_t version{ 1 };
104 static constexpr std::array<uint8_t, 3> binaryId{
'c',
'i',
'n' };
118 static constexpr const char *path{
"CameraMatrix" };
121 static constexpr const char *name{
"CameraMatrix" };
124 static constexpr const char *description{
125 R
"description(The camera matrix K (=[fx,0,cx;0,fy,cy;0,0,1]))description"
138 static constexpr const char *path{
"CameraMatrix/CX" };
141 static constexpr const char *name{
"CX" };
144 static constexpr const char *description{
145 R
"description(x coordinate of the principal point)description"
154 return { std::numeric_limits<double>::lowest(), std::numeric_limits<double>::max() };
161 explicit constexpr CX(
double value)
174 return m_value == other.m_value;
180 return m_value != other.m_value;
186 return m_value < other.m_value;
192 return m_value > other.m_value;
198 return m_value <= other.m_value;
204 return m_value >= other.m_value;
214 void setFromString(
const std::string &value);
216 double m_value{ 0.0 };
218 friend struct DataModel::Detail::Befriend<
CX>;
231 static constexpr const char *path{
"CameraMatrix/CY" };
234 static constexpr const char *name{
"CY" };
237 static constexpr const char *description{
238 R
"description(y coordinate of the principal point)description"
247 return { std::numeric_limits<double>::lowest(), std::numeric_limits<double>::max() };
254 explicit constexpr CY(
double value)
267 return m_value == other.m_value;
273 return m_value != other.m_value;
279 return m_value < other.m_value;
285 return m_value > other.m_value;
291 return m_value <= other.m_value;
297 return m_value >= other.m_value;
307 void setFromString(
const std::string &value);
309 double m_value{ 0.0 };
311 friend struct DataModel::Detail::Befriend<
CY>;
324 static constexpr const char *path{
"CameraMatrix/FX" };
327 static constexpr const char *name{
"FX" };
330 static constexpr const char *description{ R
"description(Focal length in x)description" };
338 return { std::numeric_limits<double>::lowest(), std::numeric_limits<double>::max() };
345 explicit constexpr FX(
double value)
358 return m_value == other.m_value;
364 return m_value != other.m_value;
370 return m_value < other.m_value;
376 return m_value > other.m_value;
382 return m_value <= other.m_value;
388 return m_value >= other.m_value;
398 void setFromString(
const std::string &value);
400 double m_value{ 0.0 };
402 friend struct DataModel::Detail::Befriend<
FX>;
415 static constexpr const char *path{
"CameraMatrix/FY" };
418 static constexpr const char *name{
"FY" };
421 static constexpr const char *description{ R
"description(Focal length in y)description" };
429 return { std::numeric_limits<double>::lowest(), std::numeric_limits<double>::max() };
436 explicit constexpr FY(
double value)
449 return m_value == other.m_value;
455 return m_value != other.m_value;
461 return m_value < other.m_value;
467 return m_value > other.m_value;
473 return m_value <= other.m_value;
479 return m_value >= other.m_value;
489 void setFromString(
const std::string &value);
491 double m_value{ 0.0 };
493 friend struct DataModel::Detail::Befriend<
FY>;
522 typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0,
523 typename std::enable_if<
524 Zivid::Detail::TypeTraits::AllArgsAreInTuple<
Descendants,
typename std::decay<Args>::type...>::
528 template<typename... Args>
532 using namespace Zivid::Detail::TypeTraits;
535 AllArgsDecayedAreUnique<Args...>::value,
536 "Found duplicate types among the arguments passed to CameraMatrix(...). "
537 "Types should be listed at most once.");
539 set(std::forward<Args>(args)...);
556 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 2,
int>::type = 0>
558 template<typename... Args>
562 using namespace Zivid::Detail::TypeTraits;
564 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
566 AllArgsAreDescendantNodes::value,
"All arguments passed to set(...) must be descendant nodes.");
569 AllArgsDecayedAreUnique<Args...>::value,
570 "Found duplicate types among the arguments passed to set(...). "
571 "Types should be listed at most once.");
573 Zivid::DataModel::Detail::invokeSetWithEachArgument(*
this, std::forward<Args>(args)...);
591 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0>
593 template<typename... Args>
597 using namespace Zivid::Detail::TypeTraits;
599 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
601 AllArgsAreDescendantNodes::value,
602 "All arguments passed to copyWith(...) must be descendant nodes.");
605 AllArgsDecayedAreUnique<Args...>::value,
606 "Found duplicate types among the arguments passed to copyWith(...). "
607 "Types should be listed at most once.");
610 copy.set(std::forward<Args>(args)...);
692 typename std::enable_if<std::is_same<T, CameraIntrinsics::CameraMatrix::CX>::value,
int>::type = 0>
700 typename std::enable_if<std::is_same<T, CameraIntrinsics::CameraMatrix::CY>::value,
int>::type = 0>
708 typename std::enable_if<std::is_same<T, CameraIntrinsics::CameraMatrix::FX>::value,
int>::type = 0>
716 typename std::enable_if<std::is_same<T, CameraIntrinsics::CameraMatrix::FY>::value,
int>::type = 0>
722 template<size_t i, typename std::enable_if<i == 0, int>::type = 0>
728 template<size_t i, typename std::enable_if<i == 1, int>::type = 0>
734 template<size_t i, typename std::enable_if<i == 2, int>::type = 0>
740 template<size_t i, typename std::enable_if<i == 3, int>::type = 0>
782 void setFromString(
const std::string &value);
784 void setFromString(
const std::string &fullPath,
const std::string &value);
786 std::string getString(
const std::string &fullPath)
const;
793 friend struct DataModel::Detail::Befriend<
CameraMatrix>;
806 static constexpr const char *path{
"Distortion" };
809 static constexpr const char *name{
"Distortion" };
812 static constexpr const char *description{
813 R
"description(The radial and tangential distortion parameters)description"
826 static constexpr const char *path{
"Distortion/K1" };
829 static constexpr const char *name{
"K1" };
832 static constexpr const char *description{ R
"description(First radial distortion term)description" };
840 return { std::numeric_limits<double>::lowest(), std::numeric_limits<double>::max() };
847 explicit constexpr K1(
double value)
860 return m_value == other.m_value;
866 return m_value != other.m_value;
872 return m_value < other.m_value;
878 return m_value > other.m_value;
884 return m_value <= other.m_value;
890 return m_value >= other.m_value;
900 void setFromString(
const std::string &value);
902 double m_value{ 0.0 };
904 friend struct DataModel::Detail::Befriend<
K1>;
917 static constexpr const char *path{
"Distortion/K2" };
920 static constexpr const char *name{
"K2" };
923 static constexpr const char *description{ R
"description(Second radial distortion term)description" };
931 return { std::numeric_limits<double>::lowest(), std::numeric_limits<double>::max() };
938 explicit constexpr K2(
double value)
951 return m_value == other.m_value;
957 return m_value != other.m_value;
963 return m_value < other.m_value;
969 return m_value > other.m_value;
975 return m_value <= other.m_value;
981 return m_value >= other.m_value;
991 void setFromString(
const std::string &value);
993 double m_value{ 0.0 };
995 friend struct DataModel::Detail::Befriend<
K2>;
1008 static constexpr const char *path{
"Distortion/K3" };
1011 static constexpr const char *name{
"K3" };
1014 static constexpr const char *description{ R
"description(Third radial distortion term)description" };
1022 return { std::numeric_limits<double>::lowest(), std::numeric_limits<double>::max() };
1029 explicit constexpr K3(
double value)
1042 return m_value == other.m_value;
1048 return m_value != other.m_value;
1054 return m_value < other.m_value;
1060 return m_value > other.m_value;
1066 return m_value <= other.m_value;
1072 return m_value >= other.m_value;
1082 void setFromString(
const std::string &value);
1084 double m_value{ 0.0 };
1086 friend struct DataModel::Detail::Befriend<
K3>;
1099 static constexpr const char *path{
"Distortion/P1" };
1102 static constexpr const char *name{
"P1" };
1105 static constexpr const char *description{ R
"description(First tangential distortion term)description" };
1113 return { std::numeric_limits<double>::lowest(), std::numeric_limits<double>::max() };
1120 explicit constexpr P1(
double value)
1133 return m_value == other.m_value;
1139 return m_value != other.m_value;
1145 return m_value < other.m_value;
1151 return m_value > other.m_value;
1157 return m_value <= other.m_value;
1163 return m_value >= other.m_value;
1173 void setFromString(
const std::string &value);
1175 double m_value{ 0.0 };
1177 friend struct DataModel::Detail::Befriend<
P1>;
1190 static constexpr const char *path{
"Distortion/P2" };
1193 static constexpr const char *name{
"P2" };
1196 static constexpr const char *description{
1197 R
"description(Second tangential distortion term)description"
1206 return { std::numeric_limits<double>::lowest(), std::numeric_limits<double>::max() };
1213 explicit constexpr P2(
double value)
1226 return m_value == other.m_value;
1232 return m_value != other.m_value;
1238 return m_value < other.m_value;
1244 return m_value > other.m_value;
1250 return m_value <= other.m_value;
1256 return m_value >= other.m_value;
1266 void setFromString(
const std::string &value);
1268 double m_value{ 0.0 };
1270 friend struct DataModel::Detail::Befriend<
P2>;
1301 typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0,
1302 typename std::enable_if<
1303 Zivid::Detail::TypeTraits::AllArgsAreInTuple<
Descendants,
typename std::decay<Args>::type...>::
1307 template<typename... Args>
1311 using namespace Zivid::Detail::TypeTraits;
1314 AllArgsDecayedAreUnique<Args...>::value,
1315 "Found duplicate types among the arguments passed to Distortion(...). "
1316 "Types should be listed at most once.");
1318 set(std::forward<Args>(args)...);
1336 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 2,
int>::type = 0>
1338 template<typename... Args>
1342 using namespace Zivid::Detail::TypeTraits;
1344 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
1346 AllArgsAreDescendantNodes::value,
"All arguments passed to set(...) must be descendant nodes.");
1349 AllArgsDecayedAreUnique<Args...>::value,
1350 "Found duplicate types among the arguments passed to set(...). "
1351 "Types should be listed at most once.");
1353 Zivid::DataModel::Detail::invokeSetWithEachArgument(*
this, std::forward<Args>(args)...);
1372 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0>
1374 template<typename... Args>
1378 using namespace Zivid::Detail::TypeTraits;
1380 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
1382 AllArgsAreDescendantNodes::value,
1383 "All arguments passed to copyWith(...) must be descendant nodes.");
1386 AllArgsDecayedAreUnique<Args...>::value,
1387 "Found duplicate types among the arguments passed to copyWith(...). "
1388 "Types should be listed at most once.");
1391 copy.set(std::forward<Args>(args)...);
1492 typename std::enable_if<std::is_same<T, CameraIntrinsics::Distortion::K1>::value,
int>::type = 0>
1500 typename std::enable_if<std::is_same<T, CameraIntrinsics::Distortion::K2>::value,
int>::type = 0>
1508 typename std::enable_if<std::is_same<T, CameraIntrinsics::Distortion::K3>::value,
int>::type = 0>
1516 typename std::enable_if<std::is_same<T, CameraIntrinsics::Distortion::P1>::value,
int>::type = 0>
1524 typename std::enable_if<std::is_same<T, CameraIntrinsics::Distortion::P2>::value,
int>::type = 0>
1530 template<size_t i, typename std::enable_if<i == 0, int>::type = 0>
1536 template<size_t i, typename std::enable_if<i == 1, int>::type = 0>
1542 template<size_t i, typename std::enable_if<i == 2, int>::type = 0>
1548 template<size_t i, typename std::enable_if<i == 3, int>::type = 0>
1554 template<size_t i, typename std::enable_if<i == 4, int>::type = 0>
1561 template<
typename F>
1572 template<
typename F>
1598 void setFromString(
const std::string &value);
1600 void setFromString(
const std::string &fullPath,
const std::string &value);
1602 std::string getString(
const std::string &fullPath)
const;
1610 friend struct DataModel::Detail::Befriend<
Distortion>;
1670 typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0,
1671 typename std::enable_if<
1672 Zivid::Detail::TypeTraits::AllArgsAreInTuple<
Descendants,
typename std::decay<Args>::type...>::value,
1675 template<typename... Args>
1679 using namespace Zivid::Detail::TypeTraits;
1682 AllArgsDecayedAreUnique<Args...>::value,
1683 "Found duplicate types among the arguments passed to CameraIntrinsics(...). "
1684 "Types should be listed at most once.");
1686 set(std::forward<Args>(args)...);
1710 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 2,
int>::type = 0>
1712 template<typename... Args>
1716 using namespace Zivid::Detail::TypeTraits;
1718 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
1720 AllArgsAreDescendantNodes::value,
"All arguments passed to set(...) must be descendant nodes.");
1723 AllArgsDecayedAreUnique<Args...>::value,
1724 "Found duplicate types among the arguments passed to set(...). "
1725 "Types should be listed at most once.");
1727 Zivid::DataModel::Detail::invokeSetWithEachArgument(*
this, std::forward<Args>(args)...);
1752 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0>
1754 template<typename... Args>
1758 using namespace Zivid::Detail::TypeTraits;
1760 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
1762 AllArgsAreDescendantNodes::value,
"All arguments passed to copyWith(...) must be descendant nodes.");
1765 AllArgsDecayedAreUnique<Args...>::value,
1766 "Found duplicate types among the arguments passed to copyWith(...). "
1767 "Types should be listed at most once.");
1770 copy.set(std::forward<Args>(args)...);
1777 return m_cameraMatrix;
1783 return m_cameraMatrix;
1789 m_cameraMatrix = value;
1796 m_cameraMatrix.
set(value);
1803 m_cameraMatrix.
set(value);
1810 m_cameraMatrix.
set(value);
1817 m_cameraMatrix.
set(value);
1824 return m_distortion;
1830 return m_distortion;
1836 m_distortion = value;
1843 m_distortion.
set(value);
1850 m_distortion.
set(value);
1857 m_distortion.
set(value);
1864 m_distortion.
set(value);
1871 m_distortion.
set(value);
1877 typename std::enable_if<std::is_same<T, CameraIntrinsics::CameraMatrix>::value,
int>::type = 0>
1880 return m_cameraMatrix;
1885 typename std::enable_if<std::is_same<T, CameraIntrinsics::CameraMatrix::CX>::value,
int>::type = 0>
1893 typename std::enable_if<std::is_same<T, CameraIntrinsics::CameraMatrix::CY>::value,
int>::type = 0>
1901 typename std::enable_if<std::is_same<T, CameraIntrinsics::CameraMatrix::FX>::value,
int>::type = 0>
1909 typename std::enable_if<std::is_same<T, CameraIntrinsics::CameraMatrix::FY>::value,
int>::type = 0>
1917 typename std::enable_if<std::is_same<T, CameraIntrinsics::Distortion>::value,
int>::type = 0>
1920 return m_distortion;
1925 typename std::enable_if<std::is_same<T, CameraIntrinsics::Distortion::K1>::value,
int>::type = 0>
1933 typename std::enable_if<std::is_same<T, CameraIntrinsics::Distortion::K2>::value,
int>::type = 0>
1941 typename std::enable_if<std::is_same<T, CameraIntrinsics::Distortion::K3>::value,
int>::type = 0>
1949 typename std::enable_if<std::is_same<T, CameraIntrinsics::Distortion::P1>::value,
int>::type = 0>
1957 typename std::enable_if<std::is_same<T, CameraIntrinsics::Distortion::P2>::value,
int>::type = 0>
1963 template<size_t i, typename std::enable_if<i == 0, int>::type = 0>
1966 return m_cameraMatrix;
1969 template<size_t i, typename std::enable_if<i == 1, int>::type = 0>
1972 return m_distortion;
1976 template<
typename F>
1984 template<
typename F>
2007 void save(
const std::string &fileName)
const;
2010 void load(
const std::string &fileName);
2013 void setFromString(
const std::string &value);
2015 void setFromString(
const std::string &fullPath,
const std::string &value);
2017 std::string getString(
const std::string &fullPath)
const;
2027 struct CameraIntrinsics::Version<1>
2050# pragma warning(pop)
2054# if !(defined(_MSC_VER) && (_MSC_VER <= 1900))
2059 struct tuple_size<
Zivid::CameraIntrinsics::CameraMatrix> : integral_constant<size_t, 4>
2063 struct tuple_element<i,
Zivid::CameraIntrinsics::CameraMatrix>
2065 static_assert(i < tuple_size<Zivid::CameraIntrinsics::CameraMatrix>::value,
"Index must be less than 4");
2068 =
decltype(declval<Zivid::CameraIntrinsics::CameraMatrix>().get<i>());
2072 struct tuple_size<
Zivid::CameraIntrinsics::Distortion> : integral_constant<size_t, 5>
2076 struct tuple_element<i,
Zivid::CameraIntrinsics::Distortion>
2078 static_assert(i < tuple_size<Zivid::CameraIntrinsics::Distortion>::value,
"Index must be less than 5");
2081 =
decltype(declval<Zivid::CameraIntrinsics::Distortion>().get<i>());
2085 struct tuple_size<
Zivid::CameraIntrinsics> : integral_constant<size_t, 2>
2089 struct tuple_element<i,
Zivid::CameraIntrinsics>
2091 static_assert(i < tuple_size<Zivid::CameraIntrinsics>::value,
"Index must be less than 2");
2094 =
decltype(declval<Zivid::CameraIntrinsics>().get<i>());
2103#if defined(__has_include) && !defined(NO_DOC)
2104# if __has_include("Zivid/CameraIntrinsicsInternal.h") && __has_include("Zivid/DataModelNodeMetaData.h")
2105# include "Zivid/CameraIntrinsicsInternal.h"
#define ZIVID_CORE_EXPORT
Definition CoreExport.h:56
x coordinate of the principal point
Definition CameraIntrinsics.h:132
bool operator==(const CX &other) const
Comparison operator.
Definition CameraIntrinsics.h:172
std::string toString() const
Get the value as string.
bool operator<(const CX &other) const
Comparison operator.
Definition CameraIntrinsics.h:184
bool operator>=(const CX &other) const
Comparison operator.
Definition CameraIntrinsics.h:202
constexpr CX(double value)
Constructor.
Definition CameraIntrinsics.h:161
bool operator>(const CX &other) const
Comparison operator.
Definition CameraIntrinsics.h:190
bool operator!=(const CX &other) const
Comparison operator.
Definition CameraIntrinsics.h:178
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:208
static constexpr Range< double > validRange()
The range of valid values for CX.
Definition CameraIntrinsics.h:152
bool operator<=(const CX &other) const
Comparison operator.
Definition CameraIntrinsics.h:196
double ValueType
The type of the underlying value.
Definition CameraIntrinsics.h:149
y coordinate of the principal point
Definition CameraIntrinsics.h:225
friend std::ostream & operator<<(std::ostream &stream, const CY &value)
Operator to serialize the value to a stream.
Definition CameraIntrinsics.h:301
double ValueType
The type of the underlying value.
Definition CameraIntrinsics.h:242
bool operator<=(const CY &other) const
Comparison operator.
Definition CameraIntrinsics.h:289
bool operator>(const CY &other) const
Comparison operator.
Definition CameraIntrinsics.h:283
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:245
bool operator!=(const CY &other) const
Comparison operator.
Definition CameraIntrinsics.h:271
std::string toString() const
Get the value as string.
bool operator==(const CY &other) const
Comparison operator.
Definition CameraIntrinsics.h:265
bool operator<(const CY &other) const
Comparison operator.
Definition CameraIntrinsics.h:277
constexpr CY(double value)
Constructor.
Definition CameraIntrinsics.h:254
bool operator>=(const CY &other) const
Comparison operator.
Definition CameraIntrinsics.h:295
Focal length in x.
Definition CameraIntrinsics.h:318
static constexpr Range< double > validRange()
The range of valid values for FX.
Definition CameraIntrinsics.h:336
double value() const
Get the value.
FX()=default
Default constructor.
bool operator!=(const FX &other) const
Comparison operator.
Definition CameraIntrinsics.h:362
double ValueType
The type of the underlying value.
Definition CameraIntrinsics.h:333
constexpr FX(double value)
Constructor.
Definition CameraIntrinsics.h:345
bool operator==(const FX &other) const
Comparison operator.
Definition CameraIntrinsics.h:356
bool operator>(const FX &other) const
Comparison operator.
Definition CameraIntrinsics.h:374
bool operator<=(const FX &other) const
Comparison operator.
Definition CameraIntrinsics.h:380
bool operator>=(const FX &other) const
Comparison operator.
Definition CameraIntrinsics.h:386
friend std::ostream & operator<<(std::ostream &stream, const FX &value)
Operator to serialize the value to a stream.
Definition CameraIntrinsics.h:392
std::string toString() const
Get the value as string.
bool operator<(const FX &other) const
Comparison operator.
Definition CameraIntrinsics.h:368
Focal length in y.
Definition CameraIntrinsics.h:409
bool operator>(const FY &other) const
Comparison operator.
Definition CameraIntrinsics.h:465
bool operator!=(const FY &other) const
Comparison operator.
Definition CameraIntrinsics.h:453
bool operator==(const FY &other) const
Comparison operator.
Definition CameraIntrinsics.h:447
FY()=default
Default constructor.
static constexpr Range< double > validRange()
The range of valid values for FY.
Definition CameraIntrinsics.h:427
double value() const
Get the value.
bool operator<(const FY &other) const
Comparison operator.
Definition CameraIntrinsics.h:459
friend std::ostream & operator<<(std::ostream &stream, const FY &value)
Operator to serialize the value to a stream.
Definition CameraIntrinsics.h:483
std::string toString() const
Get the value as string.
double ValueType
The type of the underlying value.
Definition CameraIntrinsics.h:424
bool operator>=(const FY &other) const
Comparison operator.
Definition CameraIntrinsics.h:477
constexpr FY(double value)
Constructor.
Definition CameraIntrinsics.h:436
bool operator<=(const FY &other) const
Comparison operator.
Definition CameraIntrinsics.h:471
The camera matrix K (=[fx,0,cx;0,fy,cy;0,0,1])
Definition CameraIntrinsics.h:112
const FX & fx() const
Get FX.
Definition CameraIntrinsics.h:653
const CameraIntrinsics::CameraMatrix::CX & get() const
Definition CameraIntrinsics.h:693
void set(Args &&...args)
Set multiple arguments.
Definition CameraIntrinsics.h:560
CameraMatrix & set(const CY &value)
Set CY.
Definition CameraIntrinsics.h:646
const CameraIntrinsics::CameraMatrix::FX & get() const
Definition CameraIntrinsics.h:709
bool operator!=(const CameraMatrix &other) const
Inequality operator.
const CY & cy() const
Get CY.
Definition CameraIntrinsics.h:634
const CameraIntrinsics::CameraMatrix::FY & get() const
Definition CameraIntrinsics.h:717
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:776
CameraMatrix & set(const CX &value)
Set CX.
Definition CameraIntrinsics.h:627
const CameraIntrinsics::CameraMatrix::CY & get() const
Definition CameraIntrinsics.h:701
CameraMatrix & set(const FY &value)
Set FY.
Definition CameraIntrinsics.h:684
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:748
CameraMatrix & set(const FX &value)
Set FX.
Definition CameraIntrinsics.h:665
FY & fy()
Get FY.
Definition CameraIntrinsics.h:678
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:595
CX & cx()
Get CX.
Definition CameraIntrinsics.h:621
std::tuple< CameraIntrinsics::CameraMatrix::CX, CameraIntrinsics::CameraMatrix::CY, CameraIntrinsics::CameraMatrix::FX, CameraIntrinsics::CameraMatrix::FY > Descendants
Definition CameraIntrinsics.h:496
const FY & fy() const
Get FY.
Definition CameraIntrinsics.h:672
const CX & cx() const
Get CX.
Definition CameraIntrinsics.h:615
CY & cy()
Get CY.
Definition CameraIntrinsics.h:640
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:758
FX & fx()
Get FX.
Definition CameraIntrinsics.h:659
First radial distortion term.
Definition CameraIntrinsics.h:820
bool operator<(const K1 &other) const
Comparison operator.
Definition CameraIntrinsics.h:870
K1()=default
Default constructor.
bool operator!=(const K1 &other) const
Comparison operator.
Definition CameraIntrinsics.h:864
friend std::ostream & operator<<(std::ostream &stream, const K1 &value)
Operator to serialize the value to a stream.
Definition CameraIntrinsics.h:894
bool operator>(const K1 &other) const
Comparison operator.
Definition CameraIntrinsics.h:876
constexpr K1(double value)
Constructor.
Definition CameraIntrinsics.h:847
bool operator>=(const K1 &other) const
Comparison operator.
Definition CameraIntrinsics.h:888
bool operator<=(const K1 &other) const
Comparison operator.
Definition CameraIntrinsics.h:882
static constexpr Range< double > validRange()
The range of valid values for K1.
Definition CameraIntrinsics.h:838
bool operator==(const K1 &other) const
Comparison operator.
Definition CameraIntrinsics.h:858
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:835
Second radial distortion term.
Definition CameraIntrinsics.h:911
bool operator>=(const K2 &other) const
Comparison operator.
Definition CameraIntrinsics.h:979
static constexpr Range< double > validRange()
The range of valid values for K2.
Definition CameraIntrinsics.h:929
bool operator>(const K2 &other) const
Comparison operator.
Definition CameraIntrinsics.h:967
bool operator!=(const K2 &other) const
Comparison operator.
Definition CameraIntrinsics.h:955
std::string toString() const
Get the value as string.
bool operator==(const K2 &other) const
Comparison operator.
Definition CameraIntrinsics.h:949
bool operator<(const K2 &other) const
Comparison operator.
Definition CameraIntrinsics.h:961
friend std::ostream & operator<<(std::ostream &stream, const K2 &value)
Operator to serialize the value to a stream.
Definition CameraIntrinsics.h:985
K2()=default
Default constructor.
bool operator<=(const K2 &other) const
Comparison operator.
Definition CameraIntrinsics.h:973
double ValueType
The type of the underlying value.
Definition CameraIntrinsics.h:926
constexpr K2(double value)
Constructor.
Definition CameraIntrinsics.h:938
double value() const
Get the value.
Third radial distortion term.
Definition CameraIntrinsics.h:1002
bool operator<(const K3 &other) const
Comparison operator.
Definition CameraIntrinsics.h:1052
double value() const
Get the value.
static constexpr Range< double > validRange()
The range of valid values for K3.
Definition CameraIntrinsics.h:1020
K3()=default
Default constructor.
std::string toString() const
Get the value as string.
constexpr K3(double value)
Constructor.
Definition CameraIntrinsics.h:1029
bool operator>(const K3 &other) const
Comparison operator.
Definition CameraIntrinsics.h:1058
bool operator<=(const K3 &other) const
Comparison operator.
Definition CameraIntrinsics.h:1064
bool operator>=(const K3 &other) const
Comparison operator.
Definition CameraIntrinsics.h:1070
double ValueType
The type of the underlying value.
Definition CameraIntrinsics.h:1017
bool operator!=(const K3 &other) const
Comparison operator.
Definition CameraIntrinsics.h:1046
friend std::ostream & operator<<(std::ostream &stream, const K3 &value)
Operator to serialize the value to a stream.
Definition CameraIntrinsics.h:1076
bool operator==(const K3 &other) const
Comparison operator.
Definition CameraIntrinsics.h:1040
First tangential distortion term.
Definition CameraIntrinsics.h:1093
bool operator>(const P1 &other) const
Comparison operator.
Definition CameraIntrinsics.h:1149
static constexpr Range< double > validRange()
The range of valid values for P1.
Definition CameraIntrinsics.h:1111
bool operator==(const P1 &other) const
Comparison operator.
Definition CameraIntrinsics.h:1131
bool operator>=(const P1 &other) const
Comparison operator.
Definition CameraIntrinsics.h:1161
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:1167
bool operator<(const P1 &other) const
Comparison operator.
Definition CameraIntrinsics.h:1143
P1()=default
Default constructor.
bool operator<=(const P1 &other) const
Comparison operator.
Definition CameraIntrinsics.h:1155
double value() const
Get the value.
constexpr P1(double value)
Constructor.
Definition CameraIntrinsics.h:1120
double ValueType
The type of the underlying value.
Definition CameraIntrinsics.h:1108
bool operator!=(const P1 &other) const
Comparison operator.
Definition CameraIntrinsics.h:1137
Second tangential distortion term.
Definition CameraIntrinsics.h:1184
static constexpr Range< double > validRange()
The range of valid values for P2.
Definition CameraIntrinsics.h:1204
bool operator==(const P2 &other) const
Comparison operator.
Definition CameraIntrinsics.h:1224
friend std::ostream & operator<<(std::ostream &stream, const P2 &value)
Operator to serialize the value to a stream.
Definition CameraIntrinsics.h:1260
bool operator>(const P2 &other) const
Comparison operator.
Definition CameraIntrinsics.h:1242
constexpr P2(double value)
Constructor.
Definition CameraIntrinsics.h:1213
P2()=default
Default constructor.
double value() const
Get the value.
double ValueType
The type of the underlying value.
Definition CameraIntrinsics.h:1201
std::string toString() const
Get the value as string.
bool operator<(const P2 &other) const
Comparison operator.
Definition CameraIntrinsics.h:1236
bool operator>=(const P2 &other) const
Comparison operator.
Definition CameraIntrinsics.h:1254
bool operator<=(const P2 &other) const
Comparison operator.
Definition CameraIntrinsics.h:1248
bool operator!=(const P2 &other) const
Comparison operator.
Definition CameraIntrinsics.h:1230
The radial and tangential distortion parameters.
Definition CameraIntrinsics.h:800
const CameraIntrinsics::Distortion::K3 & get() const
Definition CameraIntrinsics.h:1509
const P2 & p2() const
Get P2.
Definition CameraIntrinsics.h:1472
std::tuple< CameraIntrinsics::Distortion::K1, CameraIntrinsics::Distortion::K2, CameraIntrinsics::Distortion::K3, CameraIntrinsics::Distortion::P1, CameraIntrinsics::Distortion::P2 > Descendants
Definition CameraIntrinsics.h:1273
K3 & k3()
Get K3.
Definition CameraIntrinsics.h:1440
const K2 & k2() const
Get K2.
Definition CameraIntrinsics.h:1415
void set(Args &&...args)
Set multiple arguments.
Definition CameraIntrinsics.h:1340
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:1376
Distortion & set(const K2 &value)
Set K2.
Definition CameraIntrinsics.h:1427
K1 & k1()
Get K1.
Definition CameraIntrinsics.h:1402
std::string toString() const
Get the value as string.
P1 & p1()
Get P1.
Definition CameraIntrinsics.h:1459
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:1573
const CameraIntrinsics::Distortion::K2 & get() const
Definition CameraIntrinsics.h:1501
const CameraIntrinsics::Distortion::P2 & get() const
Definition CameraIntrinsics.h:1525
Distortion & set(const K3 &value)
Set K3.
Definition CameraIntrinsics.h:1446
const CameraIntrinsics::Distortion::P1 & get() const
Definition CameraIntrinsics.h:1517
bool operator!=(const Distortion &other) const
Inequality operator.
const P1 & p1() const
Get P1.
Definition CameraIntrinsics.h:1453
const K3 & k3() const
Get K3.
Definition CameraIntrinsics.h:1434
Distortion & set(const P1 &value)
Set P1.
Definition CameraIntrinsics.h:1465
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:1562
const CameraIntrinsics::Distortion::K1 & get() const
Definition CameraIntrinsics.h:1493
const K1 & k1() const
Get K1.
Definition CameraIntrinsics.h:1396
Distortion & set(const P2 &value)
Set P2.
Definition CameraIntrinsics.h:1484
Distortion & set(const K1 &value)
Set K1.
Definition CameraIntrinsics.h:1408
P2 & p2()
Get P2.
Definition CameraIntrinsics.h:1478
K2 & k2()
Get K2.
Definition CameraIntrinsics.h:1421
friend std::ostream & operator<<(std::ostream &stream, const Distortion &value)
Operator to send the value as string to a stream.
Definition CameraIntrinsics.h:1592
Information about the intrinsic parameters of the camera (OpenCV model)
Definition CameraIntrinsics.h:78
CameraIntrinsics & set(const Distortion::K3 &value)
Set Distortion::K3.
Definition CameraIntrinsics.h:1855
CameraMatrix & cameraMatrix()
Get CameraMatrix.
Definition CameraIntrinsics.h:1781
const CameraIntrinsics::CameraMatrix::CX & get() const
Definition CameraIntrinsics.h:1886
const CameraIntrinsics::Distortion::K1 & get() const
Definition CameraIntrinsics.h:1926
std::string serialize() const
Serialize to a string.
bool operator!=(const CameraIntrinsics &other) const
Inequality operator.
const CameraIntrinsics::CameraMatrix::FY & get() const
Definition CameraIntrinsics.h:1910
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:1977
CameraIntrinsics(Args &&...args)
Constructor taking variadic number of arguments.
Definition CameraIntrinsics.h:1677
std::string toString() const
Get the value as string.
CameraIntrinsics & set(const Distortion::P1 &value)
Set Distortion::P1.
Definition CameraIntrinsics.h:1862
const Distortion & distortion() const
Get Distortion.
Definition CameraIntrinsics.h:1822
void set(Args &&...args)
Set multiple arguments.
Definition CameraIntrinsics.h:1714
CameraIntrinsics & set(const Distortion::K1 &value)
Set Distortion::K1.
Definition CameraIntrinsics.h:1841
const CameraIntrinsics::Distortion::K3 & get() const
Definition CameraIntrinsics.h:1942
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:1756
void forEach(const F &f)
Run the given function on each direct member with the value of the member as parameter.
Definition CameraIntrinsics.h:1985
CameraIntrinsics()
Default constructor.
CameraIntrinsics & set(const CameraMatrix::FY &value)
Set CameraMatrix::FY.
Definition CameraIntrinsics.h:1815
void load(const std::string &fileName)
Load from the given file.
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:1613
const CameraIntrinsics::Distortion::P1 & get() const
Definition CameraIntrinsics.h:1950
bool operator==(const CameraIntrinsics &other) const
Equality operator.
static CameraIntrinsics fromSerialized(const std::string &value)
Construct a new CameraIntrinsics instance from a previously serialized string.
CameraIntrinsics & set(const CameraMatrix::CY &value)
Set CameraMatrix::CY.
Definition CameraIntrinsics.h:1801
CameraIntrinsics(const std::string &fileName)
Construct CameraIntrinsics by loading from file.
CameraIntrinsics & set(const CameraMatrix &value)
Set CameraMatrix.
Definition CameraIntrinsics.h:1787
CameraIntrinsics & set(const Distortion::P2 &value)
Set Distortion::P2.
Definition CameraIntrinsics.h:1869
CameraIntrinsics & set(const Distortion &value)
Set Distortion.
Definition CameraIntrinsics.h:1834
const CameraIntrinsics::CameraMatrix::CY & get() const
Definition CameraIntrinsics.h:1894
CameraIntrinsics & set(const CameraMatrix::CX &value)
Set CameraMatrix::CX.
Definition CameraIntrinsics.h:1794
void save(const std::string &fileName) const
Save to the given file.
CameraIntrinsics & set(const CameraMatrix::FX &value)
Set CameraMatrix::FX.
Definition CameraIntrinsics.h:1808
const CameraIntrinsics::CameraMatrix & get() const
Definition CameraIntrinsics.h:1878
const CameraIntrinsics::Distortion::K2 & get() const
Definition CameraIntrinsics.h:1934
const CameraMatrix & cameraMatrix() const
Get CameraMatrix.
Definition CameraIntrinsics.h:1775
const CameraIntrinsics::Distortion::P2 & get() const
Definition CameraIntrinsics.h:1958
const CameraIntrinsics::Distortion & get() const
Definition CameraIntrinsics.h:1918
friend std::ostream & operator<<(std::ostream &stream, const CameraIntrinsics &value)
Operator to send the value as string to a stream.
Definition CameraIntrinsics.h:2001
const CameraIntrinsics::CameraMatrix::FX & get() const
Definition CameraIntrinsics.h:1902
Distortion & distortion()
Get Distortion.
Definition CameraIntrinsics.h:1828
CameraIntrinsics & set(const Distortion::K2 &value)
Set Distortion::K2.
Definition CameraIntrinsics.h:1848
Class describing a range of values for a given type T.
Definition Range.h:75
NodeType
Definition NodeType.h:49
Definition EnvironmentInfo.h:74
The main Zivid namespace. All Zivid code is found here.
Definition Application.h:84