cost.h
Go to the documentation of this file.
1 // License: Apache 2.0. See LICENSE file in root directory.
2 // Copyright(c) 2020 Intel Corporation. All Rights Reserved.
3 
4 #pragma once
5 
6 #include "uvmap.h"
7 #include "frame-data.h"
8 
9 
10 namespace librealsense {
11 namespace algo {
12 namespace depth_to_rgb_calibration {
13 
14 
15  std::vector< double > calc_cost_per_vertex(
16  std::vector<double> const & d_vals,
17  z_frame_data const & z_data,
18  yuy2_frame_data const & yuy_data,std::function< void( size_t i, double d_val, double weight, double vertex_cost ) > fn
19  );
20 
22  z_frame_data const & z_data,
23  yuy2_frame_data const & yuy_data,
24  const uvmap_t & uvmap_old,
25  const uvmap_t & uvmap_new
26  );
27 
28  double calc_cost(
29  const z_frame_data & z_data,
30  const yuy2_frame_data & yuy_data,
31  const uvmap_t & uvmap,
32  std::vector< double > * p_interpolated_edges = nullptr
33  );
34 
35 
36 }
37 }
38 }
std::vector< double2 > uvmap_t
Definition: uvmap.h:22
std::vector< double > calc_cost_per_vertex(std::vector< double > const &d_vals, z_frame_data const &z_data, yuy2_frame_data const &yuy_data, std::function< void(size_t i, double d_val, double weight, double vertex_cost) > fn)
Definition: cost.cpp:12
GLuint GLuint GLfloat weight
Definition: glext.h:10534
double calc_cost_per_vertex_diff(z_frame_data const &z_data, yuy2_frame_data const &yuy_data, const uvmap_t &uvmap_old, const uvmap_t &uvmap_new)
Definition: cost.cpp:37
double calc_cost(const z_frame_data &z_data, const yuy2_frame_data &yuy_data, const std::vector< double2 > &uv, std::vector< double > *p_interpolated_edges)
Definition: cost.cpp:75
int i


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:47:12