Skip to content

Commit

Permalink
autoformat
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Apr 3, 2020
1 parent 2dffb54 commit 33bf4ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/surface_normal.cu
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ __global__ void d_depth_to_normals_rgb(const float *depth, uint8_t *normals, int
Eigen::Vector3f mid{(x_center - cx) * center_depth * f_inv,
(y_center - cy) * center_depth * f_inv, center_depth};
int n = 0;
Eigen::Vector3f centroid = Eigen::Vector3f::Zero();
Eigen::Vector3f centroid = Eigen::Vector3f::Zero();
Eigen::Matrix3f outer_prod_sum = Eigen::Matrix3f::Zero();
for (int i = -r; i <= r; i++) {
for (int j = -r; j <= r; j++) {
Expand Down Expand Up @@ -96,8 +96,8 @@ __global__ void d_depth_to_normals_rgb(const float *depth, uint8_t *normals, int
normals[y_center * output_step + 3 * x_center + 2] = f2b(normal(1));
}

cv::Mat3b normals_from_depth_cuda(const cv::Mat1f &depth, CameraIntrinsics intrinsics, int window_size,
float max_rel_depth_diff) {
cv::Mat3b normals_from_depth_cuda(const cv::Mat1f &depth, CameraIntrinsics intrinsics,
int window_size, float max_rel_depth_diff) {
cv::Mat output(depth.size(), CV_8UC3);

// Calculate total number of bytes of input and output image
Expand Down

0 comments on commit 33bf4ea

Please sign in to comment.