Skip to content

Commit

Permalink
tidy includes
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Mar 29, 2020
1 parent 62ef678 commit d7a6b18
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 1 addition & 3 deletions include/surface_normal.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#pragma once

#include <vector>

#include <opencv2/core.hpp>

using Plane = cv::Vec4f;
Expand All @@ -18,6 +16,6 @@ cv::Mat3f normals_from_depth(const cv::Mat1f &depth, CameraIntrinsics intrinsics
cv::Mat3b normals_to_rgb(const cv::Mat3f &normals);

cv::Mat1f get_surrounding_points(const cv::Mat1f &depth, int i, int j, CameraIntrinsics intrinsics,
size_t window_size, float max_rel_depth_diff);
int window_size, float max_rel_depth_diff);

cv::Vec3f fit_plane(const cv::Mat &points);
5 changes: 3 additions & 2 deletions src/surface_normal.cpp
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
#include <vector>
#include <cmath>

#include <opencv2/core.hpp>

#include "surface_normal.h"

using namespace cv;
using std::abs;

// Returns a Nx3 matrix of 3D points surrounding the i,j pixel within the window_size window.
Mat1f get_surrounding_points(const Mat1f &depth, int i, int j, CameraIntrinsics intrinsics,
size_t window_size, float max_rel_depth_diff) {
int window_size, float max_rel_depth_diff) {
float f_inv = 1.f / intrinsics.f;
float cx = intrinsics.cx;
float cy = intrinsics.cy;
Expand Down

0 comments on commit d7a6b18

Please sign in to comment.