12 namespace depth_to_rgb_calibration {
22 :width( width ), height( height ),
23 ppx( k_mat.get_ppx() ),
ppy( k_mat.get_ppy()),
24 fx( k_mat.get_fx()),
fy( k_mat.get_fy()),
26 coeffs{ coeffs[0], coeffs[1], coeffs[2], coeffs[3], coeffs[4] }
41 float(
ppx ), float(
ppy ),
42 float(
fx ), float(
fy ),
81 translation{ other.translation[0], other.translation[1] , other.translation[2] }
109 for (
auto i = 0;
i < 12;
i++)
111 if (vals[
i] < other.
vals[
i])
113 if (vals[
i] > other.
vals[
i])
128 double matrix_norm()
const;
153 void copy_coefs(
calib &
obj )
const;
bool operator<(const p_matrix &other) const
float3 operator-(const float3 &a, const float3 &b)
rs2_distortion
Distortion model: defines how pixel coordinates should be mapped to sensor coordinates.
rs2_intrinsics_double()=default
float3 operator*(const float3 &a, float b)
calib decompose(p_matrix const &mat, calib const &)
rs2_intrinsics_double(const rs2_intrinsics &obj)
rs2_extrinsics_double(const rs2_extrinsics &other)
rs2_intrinsics_double(const int width, const int height, const k_matrix &k_mat, const rs2_distortion model, const double coeffs[5])
Cross-stream extrinsics: encodes the topology describing how the different devices are oriented...
GLint GLsizei GLsizei height
rs2_intrinsics normalize(const rs2_intrinsics &intr)
Cross-stream extrinsics: encodes the topology describing how the different devices are oriented...
struct rs2_intrinsics rs2_intrinsics
Video stream intrinsics.
struct rs2_extrinsics rs2_extrinsics
Cross-stream extrinsics: encodes the topology describing how the different devices are oriented...
float3 operator+(const float3 &a, const float3 &b)
def get_extrinsics(src, dst)
rs2_intrinsics operator/(const rs2_intrinsics &i, int f)
rs2_extrinsics_double(const matrix_3x3 &rot, const translation &trans)
double get_norma(const std::vector< double3 > &vec)