Giter Site home page Giter Site logo

ros_pointcloud_recolor's People

Contributors

fengziyue avatar tonirv avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

germal zlg9folira

ros_pointcloud_recolor's Issues

Sparse pointcloud not supported?

Hi Toni,

I see in your code that you resize the image to match the pointcloud if they have a different size.
I have a sparse point cloud as an input to the pointcloud_recolor node. So my pointcloud is 1d and its size is smaller than my image. Even though, it doesn't crash, I believe the code doesn't support a sparse pointcloud yet. Could you confirm?

A little bit down further in the code, the "is_dense" is set to false to account for the invalid points. What is the reason to have set it to false in the case of a dense point cloud?

Sorry, I have some knowledge gap. Thank you for your help :)

// Check that sizes agree, aka that the pointcloud given is ordered
if (image_msg.cols != pointcloud->width ||
image_msg.rows != pointcloud->height) {
ROS_WARN_STREAM("Pointcloud width does not match with image width. "
"The pointcloud is assumed to be ordered.\n"
"image.width =" << image_msg.cols << '\n' <<
"image.height =" << image_msg.rows <<'\n'<<
"pointcloud.width =" << pointcloud->width <<'\n'<<
"pointcloud.height =" << pointcloud->height <<'\n'<<
"But should have Width Image == Width pointcloud && "
"Height Image == Height pointcloud.\n"
"RESIZING IMAGE INSTEAD.");
cv::resize(color, color,
cv::Size(pointcloud->width, pointcloud->height),
0, 0, CV_INTER_LINEAR);
}
CHECK(color.cols == pointcloud->width &&
color.rows == pointcloud->height);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.