GithubHelp home page GithubHelp logo

Comments (3)

mvieth avatar mvieth commented on July 24, 2024

I believe https://pcl.readthedocs.io/projects/tutorials/en/master/adding_custom_ptype.html should answer your question

from pcl.

QiuYilin avatar QiuYilin commented on July 24, 2024

In an ideal world, these 4 components would create a single structure, SSE-aligned. However, because the majority of point operations will either set the last component of the data[4] array (from the xyz union) to 0 or 1 (for transformations), we cannot make intensity a member of the same structure, as its contents will be overwritten. For example, a dot product between two points will set their 4th component to 0, otherwise the dot product doesn’t make sense, etc.

Therefore for SSE-alignment, we pad intensity with 3 extra floats. Inefficient in terms of storage, but good in terms of memory alignment.

Now I know why pcl::normal is designed to use 32 bytes. SIMD is a mechanism on the CPU, so it is not necessary to use it on the GPU, right?

from pcl.

mvieth avatar mvieth commented on July 24, 2024

SIMD is a mechanism on the CPU, so it is not necessary to use it on the GPU, right?

That is a very general question, and I don't know enough about GPUs to answer this.

Please use Stackoverflow or the Discord community chat for such questions in the future. The GitHub issues are intended mainly for bug reports and compile errors.

from pcl.

Related Issues (20)

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.