Skip to content

Commit

Permalink
smearing passed after autocal7 integration
Browse files Browse the repository at this point in the history
  • Loading branch information
nohayassin committed May 14, 2020
1 parent 85c8e3b commit f8bd9b1
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions unit-tests/algo/depth-to-rgb-calibration/compare-scene.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,17 +106,13 @@ void compare_scene( std::string const & scene_dir )
CHECK(compare_to_bin_file< double >(depth_data.valid_edge_sub_pixel_x, scene_dir, "xim", 1, 4259, "double_00", compare_same_vectors));
CHECK(compare_to_bin_file< double >(depth_data.valid_edge_sub_pixel_y, scene_dir, "yim", 1, 4259, "double_00", compare_same_vectors));
CHECK(compare_to_bin_file< double>(depth_data.sub_points, scene_dir, "subPoints", 3, 4259, "double_00", compare_same_vectors));
//CHECK(compare_to_bin_file< algo::double3>(depth_data.vertices_all, scene_dir, "vertices_all", 3, 4259, "double_00", compare_same_vectors));
//CHECK(compare_to_bin_file< algo::double2>(depth_data.uvmap, scene_dir, "uv", 2, 4259, "double_00", compare_same_vectors));
CHECK(compare_to_bin_file< algo::double2 >(depth_data.uvmap, scene_dir, bin_file("uv", 2, 4259, "double_00") + ".bin", 4259, 2, compare_same_vectors));
CHECK(compare_to_bin_file< algo::double2 >(depth_data.uvmap, scene_dir, bin_file("uv", 2, 4259, "double_00") + ".bin", 4259, 1, compare_same_vectors));
CHECK(compare_to_bin_file< double >(depth_data.is_inside, scene_dir, "isInside", 1, 4259, "double_00", compare_same_vectors));
CHECK(compare_to_bin_file< double >(depth_data.subpixels_x, scene_dir, "Z_xim", 1, 2506, "double_00", compare_same_vectors));
CHECK(compare_to_bin_file< double >(depth_data.subpixels_y, scene_dir, "Z_yim", 1, 2506, "double_00", compare_same_vectors));

CHECK(compare_to_bin_file< double >(depth_data.closest, scene_dir, "Z_valuesForSubEdges", 1, 2506, "double_00", compare_same_vectors));
CHECK(compare_to_bin_file< double >(depth_data.grad_in_direction_inside, scene_dir, "zGradInDirection", 1, 2506, "double_00", compare_same_vectors));
CHECK(compare_to_bin_file< double >(depth_data.directions, scene_dir, "directionIndexInside", 1, 2506, "double_00", compare_same_vectors));
//CHECK(compare_to_bin_file< algo::double3 >(depth_data.vertices, scene_dir, "vertices", 3, 2506, "double_00", compare_same_vectors));
CHECK(compare_to_bin_file< algo::double3 >(depth_data.vertices, scene_dir, bin_file("vertices", 3, 2506, "double_00") + ".bin", 2506, 1, compare_same_vectors));
//CHECK(compare_to_bin_file< uint8_t >(depth_data.section_map_depth_inside, scene_dir, "sectionMapDepthInside", 1, 2506, "uint8_00", compare_same_vectors));
#endif
Expand Down Expand Up @@ -151,7 +147,7 @@ void compare_scene( std::string const & scene_dir )
CHECK( compare_to_bin_file< double >( yuy_data.gaussian_diff_masked, scene_dir, "IDiffMasked", rgb_w, rgb_h, "double_00", compare_same_vectors ) );
CHECK( compare_to_bin_file< uint8_t >( yuy_data.move_suspect, scene_dir, "ixMoveSuspect", rgb_w, rgb_h, "uint8_00", compare_same_vectors ) );
#endif
#if 0
#if 1
//--
TRACE( "\nOptimizing:" );
auto cb = [&]( algo::iteration_data_collect const & data )
Expand Down

0 comments on commit f8bd9b1

Please sign in to comment.