Changing size of points in point cloud created with cv::viz::WCloud()

I’m trying to display a 3D plot of triangulated points using OpenCV’s Viz module. An example of some code to display the point cloud is as follows:

cv::viz::Viz3d viewer("Point Cloud Viewer");
viewer.showWidget("Triangulated Points", cv::viz::WCloud(triangulated_points_vec, cv::viz::Color::red()));

where triangulated_points_vec is a std::vector<cv::Point3d> of triangulated feature points. However, when plotting the points, they are tiny and very difficult to see. As such, I was wondering if there is a way to make the points in the point cloud larger. Any help would be appreciated, thanks.

you could try cv::viz::Widget::setRenderingProperty

Thank you @berak, that worked like a charm.

Increasing the size of points in point cloud can be done like this:

cv::viz::WCloud cloud_widget = cv::viz::WCloud( pCloud, cv::viz::Color::green() );
    cloud_widget.setRenderingProperty( cv::viz::POINT_SIZE, 2 );

Example from old opencv forum: cv::viz Point Cloud - OpenCV Q&A Forum

1 Like