Giter Site home page Giter Site logo

xmba15 / ransac_lines_fitting_gpu Goto Github PK

View Code? Open in Web Editor NEW
25.0 1.0 7.0 52 KB

simple GPU ransac fitting of multiple lines on 2d/3d point cloud

CMake 5.41% Makefile 0.77% C++ 93.81%
ransac-linefit gpu-ransac thrust multiple-linefit cuda-programming line-fitting

ransac_lines_fitting_gpu's Introduction

๐Ÿ“ gpu RANSAC fitting of 2D/3D multiple lines


๐ŸŽ‰ TODO


  • gpu multi-ransac fitting of multiple lines
  • test on 2d, 3d data

๐ŸŽ› Dependencies


sudo apt-get install \
    libpcl-dev \
    libopencv-dev

๐Ÿ”จ How to Build


make default # to build the library
make apps # to build the examples

๐Ÿƒ How to Run


# test 2d data
./build/examples/2d_lines_fitting_app ./data/sample_2d.pcd

# test 3d data
./build/examples/3d_lines_fitting_app ./data/sample_3d.pcd

ransac_lines_fitting_gpu's People

Contributors

xmba15 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ransac_lines_fitting_gpu's Issues

sacmodel_line coefficient

Hi bro! what are the coefficients of the sacmodel_line? I don't understand and how to solve it.

pcl::ModelCoefficients::Ptr coeffs(new pcl::ModelCoefficients);
coeffs->values.reserve(6);
std::copy(cudaLineSegment.coeffs.p.begin(), cudaLineSegment.coeffs.p.end(), std::back_inserter(coeffs->values));
std::copy(cudaLineSegment.coeffs.d.begin(), cudaLineSegment.coeffs.d.end(), std::back_inserter(coeffs->values));

perception::cuda::LineSegment lineSegment;
lineSegment.coeffs.p = {hostCoeffs.p.x, hostCoeffs.p.y, 0};
lineSegment.coeffs.d = {hostCoeffs.d.x, hostCoeffs.d.y, 0};
lineSegment.inlierIndices = std::move(hostInlierIndicesV[i]);
result.emplace_back(std::move(lineSegment));

code bug

Hello, I want to convert this code to the windows system, but in the sacmodel code of cuda, the array is out of bounds, in these two lines๏ผŒ่ฏท้—ฎๆ‚จ็Ÿฅ้“ๆ€Žไนˆๅ›žไบ‹ๅ—
samples.x = indices[(int)(rng() * trand)];
samples.y = indices[(int)(rng() * trand)];

consult

Hello brother, I would like to ask, why some lines are not fitted when this method is used to fit my own point cloud, how should I adjust

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.