We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e1580b commit 2e45055Copy full SHA for 2e45055
src/python/gui.cpp
@@ -17,7 +17,7 @@ size_t pointcloud_wrapper(const robot_dart::gui::DepthImage& depth_image, const
17
size_t N = in_results.shape()[0];
18
size_t M = in_results.shape()[1];
19
20
- if (N != 3 || (depth_image.width * depth_image.height) != M)
+ if (M != 3 || (depth_image.width * depth_image.height) != N)
21
throw std::runtime_error("Wrong size of Numpy array!");
22
23
std::vector<double> v_p = robot_dart::gui::point_cloud_from_depth_array_vector(depth_image, intrinsic_matrix, tf, far_plane);
0 commit comments