Skip to content

Commit

Permalink
incorperating video package changes
Browse files Browse the repository at this point in the history
  • Loading branch information
efahnestock committed Dec 10, 2024
1 parent d8a53a3 commit 0513473
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions experimental/overhead_matching/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ cc_test(
":spectacular_log",
"@com_google_googletest//:gtest_main",
"@fmt",
"//common:video",
"//common/video:image_compare",
]
)

Expand Down Expand Up @@ -69,7 +69,7 @@ cc_test(
deps = [
":kimera_spectacular_data_provider",
"@com_google_googletest//:gtest_main",
"//common:video",
"//common/video:image_compare",
]
)
cc_test(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <iostream>
#include <sstream>

#include "common/video.hh"
#include "common/video/image_compare.hh"
#include "experimental/overhead_matching/spectacular_log.hh"
#include "fmt/format.h"
#include "gtest/gtest.h"
Expand Down Expand Up @@ -64,7 +64,7 @@ bool compare_bgr_frame(const std::unique_ptr<VIO::Frame>& kimera_frame, const cv
} else {
grey_image = spec_bgr;
}
if (!common::images_equal(kimera_frame->img_, grey_image)) {
if (!common::video::images_equal(kimera_frame->img_, grey_image)) {
return false;
}
// check timestamps
Expand All @@ -81,7 +81,7 @@ bool compare_depth_frame(const std::unique_ptr<VIO::DepthFrame>& kimera_depth,
const cv::Mat& spec_depth, const time::RobotTimestamp& spec_time,
const int& sequence_index) {
// check image
if (!common::images_equal(kimera_depth->depth_img_, spec_depth)) {
if (!common::video::images_equal(kimera_depth->depth_img_, spec_depth)) {
return false;
}
// check timestamps
Expand Down
6 changes: 3 additions & 3 deletions experimental/overhead_matching/spectacular_log_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <sstream>

#include "common/matplotlib.hh"
#include "common/video.hh"
#include "common/video/image_compare.hh"
#include "fmt/format.h"
#include "gtest/gtest.h"
#include "opencv2/opencv.hpp"
Expand Down Expand Up @@ -83,8 +83,8 @@ TEST(SpectacularLogTest, happy_case) {
fmt::format("frames2/{:08d}.png", frame_id));
const cv::Mat depth_frame = cv::imread(depth_path, cv::IMREAD_GRAYSCALE);

EXPECT_TRUE(common::images_equal(expected_frame, frame.bgr_frame));
EXPECT_TRUE(common::images_equal(depth_frame, frame.depth_frame));
EXPECT_TRUE(common::video::images_equal(expected_frame, frame.bgr_frame));
EXPECT_TRUE(common::video::images_equal(depth_frame, frame.depth_frame));

for (int i = 0; i < FRAME_SKIP - 1; i++) {
video.grab();
Expand Down

0 comments on commit 0513473

Please sign in to comment.