Git Product home page Git Product logo

Comments (4)

anirudhtopiwala avatar anirudhtopiwala commented on June 26, 2024 1

So I took a look at the pcd file you provided. There are a couple of things to take into account.

  1. The point cloud you provided is not 360 degrees. Here, the yaw values ranges from -90 to 90 degrees for the provided point cloud. Therefore to shift the origin to the left side as I have mentioned in the blog, you need add pi to the values you get. Therefore then the yaw values will range from [0, pi], which can be normalized by dividing by pi or the length of the range.
    tl:dr
    Change line 74 of Spherical_View_Projection.cpp to:
    double v = (yaw+ M_PI/2) / M_PI ;

  2. The intensity value in the provided point cloud ranges from [0, 255]. You to need to normalized it by dividing intensity by 255, as the values are in float, opencv expects values between range [0,1].
    Note: after normalizing it will be difficult to visually understand whats happening in the image, so just for visualizing you can skip this step. Although, if training a deep learning network don't forget to normalize.

The final output looks like this
Intensity Image_screenshot_06 05 2020

from opensource_problems.

anirudhtopiwala avatar anirudhtopiwala commented on June 26, 2024

Hi, I was not able to replicate a similar image. I have attached the output I get with the parameters you have mentioned. It will be difficult to visualize the image though, as it has only 16 rows or 16 pixels in length. Are you loading test.pcd file in assets?
Intensity Image_screenshot_05 05 2020

from opensource_problems.

poornimajd avatar poornimajd commented on June 26, 2024

Thankyou for the response.
The image which is shown by you,is it from a vlp-16 pcd file?
Yes I am loading it in pcd format.I have actually converted a .npy file to a .pcd format.
This is the npy ,the corresponding pcd format file and the image.
https://github.com/poornimajd/show/tree/master
These are the samples from the IDD dataset.

from opensource_problems.

poornimajd avatar poornimajd commented on June 26, 2024

Thanks alot for the detailed answer!

from opensource_problems.

Related Issues (4)

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.