Giter VIP home page Giter VIP logo

Comments (3)

MiguelMonteiro avatar MiguelMonteiro commented on July 17, 2024

Hello,
I am not familiar with point clouds.
This C++ code applies a CRF on a fully connected graph, it is not required that it is an image.
That being said the way the graph is defined, the function that calculates the affinity between the nodes, is specific to images in the sense that it uses distance in space as well as the channel values.
This can be changed by changing the functions that computes this affinity compute_kernel to make the rest of the code applicable to the new type of graph.
I don't know how easy/hard this is for point clouds though.

Best Regards,

Miguel

from permutohedral_lattice.

jgsimard avatar jgsimard commented on July 17, 2024

Hi,
The point cloud is list of N different 3D points with 1D or 3D features. So I have a matrix of dimension Nx4 or Nx6. I want to do the CRF on a fully connected graph, but I struggle to see how to change your code.
Thanks

from permutohedral_lattice.

MiguelMonteiro avatar MiguelMonteiro commented on July 17, 2024

The 'compute_kernel' function does nothing more than converting an image to an array of sequential vectors [x_1, y_1, r_1, g_1, b_1, x_2, y_2, r_2, g_2, b_2 ...] so if you already have your data in this format you can just bypass this function and feed the data straight into the CRF.

Best,

Miguel

from permutohedral_lattice.

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.