| 35 | { |
| 36 | |
| 37 | DepthPacketProcessor::Parameters::Parameters() |
| 38 | { |
| 39 | ab_multiplier = 0.6666667f; |
| 40 | ab_multiplier_per_frq[0] = 1.322581f; |
| 41 | ab_multiplier_per_frq[1] = 1.0f; |
| 42 | ab_multiplier_per_frq[2] = 1.612903f; |
| 43 | ab_output_multiplier = 16.0f; |
| 44 | |
| 45 | phase_in_rad[0] = 0.0f; |
| 46 | phase_in_rad[1] = 2.094395f; |
| 47 | phase_in_rad[2] = 4.18879f; |
| 48 | |
| 49 | joint_bilateral_ab_threshold = 3.0f; |
| 50 | joint_bilateral_max_edge = 2.5f; |
| 51 | joint_bilateral_exp = 5.0f; |
| 52 | |
| 53 | gaussian_kernel[0] = 0.1069973f; |
| 54 | gaussian_kernel[1] = 0.1131098f; |
| 55 | gaussian_kernel[2] = 0.1069973f; |
| 56 | gaussian_kernel[3] = 0.1131098f; |
| 57 | gaussian_kernel[4] = 0.1195716f; |
| 58 | gaussian_kernel[5] = 0.1131098f; |
| 59 | gaussian_kernel[6] = 0.1069973f; |
| 60 | gaussian_kernel[7] = 0.1131098f; |
| 61 | gaussian_kernel[8] = 0.1069973f; |
| 62 | |
| 63 | phase_offset = 0.0f; |
| 64 | unambigious_dist = 2083.333f; |
| 65 | individual_ab_threshold = 3.0f; |
| 66 | ab_threshold = 10.0f; |
| 67 | ab_confidence_slope = -0.5330578f; |
| 68 | ab_confidence_offset = 0.7694894f; |
| 69 | min_dealias_confidence = 0.3490659f; |
| 70 | max_dealias_confidence = 0.6108653f; |
| 71 | |
| 72 | edge_ab_avg_min_value = 50.0f; |
| 73 | edge_ab_std_dev_threshold = 0.05f; |
| 74 | edge_close_delta_threshold = 50.0f; |
| 75 | edge_far_delta_threshold = 30.0f; |
| 76 | edge_max_delta_threshold = 100.0f; |
| 77 | edge_avg_delta_threshold = 0.0f; |
| 78 | max_edge_count = 5.0f; |
| 79 | |
| 80 | /* |
| 81 | * These are parameters for the method described in "Efficient Phase Unwrapping |
| 82 | * using Kernel Density Estimation", ECCV 2016, Felix Järemo Lawin, Per-Erik Forssen and |
| 83 | * Hannes Ovren, see http://www.cvl.isy.liu.se/research/datasets/kinect2-dataset/. |
| 84 | */ |
| 85 | |
| 86 | kde_sigma_sqr = 0.0239282226563f; //the scale of the kernel in the KDE, h in eq (13). |
| 87 | unwrapping_likelihood_scale = 2.0f; //scale parameter for the unwrapping likelihood, s_1^2 in eq (15). |
| 88 | phase_confidence_scale = 3.0f; //scale parameter for the phase likelihood, s_2^2 in eq (23) |
| 89 | kde_threshold = 0.5f; //threshold on the KDE output in eq (25), defines the inlier/outlier rate trade-off |
| 90 | |
| 91 | kde_neigborhood_size = 5; //spatial support of the KDE, defines a filter size of (2*kde_neigborhood_size+1 x 2*kde_neigborhood_size+1) |
| 92 | num_hyps = 2; //number of phase unwrapping hypothesis considered by the KDE in each pixel. Implemented values are 2 and 3. |
| 93 | //a large kde_neigborhood_size improves performance but may remove fine structures and makes the processing slower. |
| 94 | //setting num_hyp to 3 improves the performance slightly but makes processing slower |
nothing calls this directly
no outgoing calls
no test coverage detected