Giter VIP home page Giter VIP logo

3dlinedetection's People

Contributors

chunibyo-wly avatar xiaohulugo avatar yhlleo 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  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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

3dlinedetection's Issues

undefined reference to `LineDetection3D::LineDetection3D()'

Could you please assist me to fix this issue?

'Starting build...
/usr/bin/g++ -fdiagnostics-color=always -g /home/amirabb/Desktop/3D_line_detection/3DLineDetection-1/src/main.cpp -o /home/amirabb/Desktop/3D_line_detection/3DLineDetection-1/src/main
/usr/bin/ld: /tmp/ccL2cPu8.o: in function main': /home/amirabb/Desktop/3D_line_detection/3DLineDetection-1/src/main.cpp:125: undefined reference to LineDetection3D::LineDetection3D()'
/usr/bin/ld: /home/amirabb/Desktop/3D_line_detection/3DLineDetection-1/src/main.cpp:129: undefined reference to LineDetection3D::run(PointCloud<double>&, int, std::vector<PLANE, std::allocator<PLANE> >&, std::vector<std::vector<cv::Point3_<double>, std::allocator<cv::Point3_<double> > >, std::allocator<std::vector<cv::Point3_<double>, std::allocator<cv::Point3_<double> > > > >&, std::vector<double, std::allocator<double> >&)' /usr/bin/ld: /home/amirabb/Desktop/3D_line_detection/3DLineDetection-1/src/main.cpp:135: undefined reference to LineDetection3D::~LineDetection3D()'
/usr/bin/ld: /home/amirabb/Desktop/3D_line_detection/3DLineDetection-1/src/main.cpp:135: undefined reference to `LineDetection3D::~LineDetection3D()'
collect2: error: ld returned 1 exit status

Build finished with error(s).

  • The terminal process terminated with exit code: -1.
  • Terminal will be reused by tasks, press any key to close it'

Error during make

Hi,

The project looks really cool so I tried to build it. I have not touched C/C++ before so excuse me but I have an error during the make process that I can't understand.

I am on ubuntu 18.04. Cmake version 3.10.2. OpenCV version 3.4.2. I installed the following packages through the ubuntu to package manager for OpenMPI dependency:

  • openmpi-bin
  • openmpi-common
  • openssh-client
  • openssh-server

The steps I take are as follows:

  1. Install dependencies
  2. Download sample file birdfountain_station1_xyz_intensity_rgb.7z and unziphere
  3. Update main.cpp line 117 to reflect absolute location of downloaded sample
  4. Update main.cpp line 118 to update the results destination
  5. run cmake at folder root
  6. run make at folder root

This produces the following error:

[ 25%] Building CXX object src/CMakeFiles/LineFromPointCloud.dir/main.cpp.o
/home/bigdoods/projects/3DLineDetection/src/main.cpp:115:11: error: ‘::main’ must return ‘int’
 void main() 
           ^
src/CMakeFiles/LineFromPointCloud.dir/build.make:110: recipe for target 'src/CMakeFiles/LineFromPointCloud.dir/main.cpp.o' failed
make[2]: *** [src/CMakeFiles/LineFromPointCloud.dir/main.cpp.o] Error 1
CMakeFiles/Makefile2:85: recipe for target 'src/CMakeFiles/LineFromPointCloud.dir/all' failed
make[1]: *** [src/CMakeFiles/LineFromPointCloud.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

Could you please advise how to get working please?

The results mess up

I tried the codes on Bremen TLS dataset (which should be similar to Semantic3D), however the results is strange. Those lines are not overlaid on the original point cloud. I'd like to figure it out.
Thanks.
bremen_dataset_result

bugs when make

error: ‘CV_RETR_LIST’ was not declared in this scope
cv::findContours(mask2, contours, hierarchy, CV_RETR_LIST, CV_CHAIN_APPROX_NONE);
^~~~~~~~~~~~

Reference usage

Inside this program line

bool LineDetection3D::maskFromPoint( std::vector<cv::Point2d> &pts2d, double radius, double &xmin, double &ymin, double &xmax, double &ymax, int &margin, cv::Mat &mask )
, why do you use reference instead of using normal variable or pointer? Is there any perk using that? Thanks.

关于点云地图的3d_line提取

感谢您提供的代码,但是我在运用过程中出现了如下结果

1HS62D~7 KZ41U)Z5A1AZN
有很多线段飞出了地图的范围,想请教您出现这样情况的问题所在。

What does the K value mean?

`void main()
{
string fileData = "D://Facade//data.txt";
string fileOut = "D://Facade//data";

// read in data
PointCloud<double> pointData; 
readDataFromFile( fileData, pointData );

int k = 20;
LineDetection3D detector;
std::vector<PLANE> planes;
std::vector<std::vector<cv::Point3d> > lines;
std::vector<double> ts;
detector.run( pointData, k, planes, lines, ts );
cout<<"lines number: "<<lines.size()<<endl;
cout<<"planes number: "<<planes.size()<<endl;

writeOutPlanes( fileOut, planes, detector.scale );
writeOutLines( fileOut, lines, detector.scale );

}`

What does the K value mean?
I have seen that the k value is used in other functions as well.
I'm curious about what k does and why it's set to 20.
And can better results be obtained by changing the value of k depending on the data used?

Could u please provided a demo?

I want to test your code.
Could u plz provided some data file?
In the main.cpp there are lines:
string fileData = "D://Facade//data.txt";
string fileOut = "D://Facade//data";
I do not know how to change it in linux OS.
Thx in advance.

How to visualize output files

hello,
thank you for sharing such a nice code in advance
it's working well in my laptop :-)

but when I got my output files which are line.txt, plane.txt
I just don't know how to visualize this file like a picture in README.md file

message called with incorrect number of arguments

Hello, Is it need to install openCV libraries? Beacuse they show me this message when I build with CMake.
CMake Error at CMakeLists.txt:11 (message):
message called with incorrect number of arguments

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.