yurithefury / forestmetrics Goto Github PK
View Code? Open in Web Editor NEWIndividual tree segmentation from LiDAR-derived point clouds
License: GNU General Public License v3.0
Individual tree segmentation from LiDAR-derived point clouds
License: GNU General Public License v3.0
Hello, I am a master student from Beijing Normal University, China. I have compiled these codes successfully thanks to your detailed instruction. Then I used acquired TLS trunks as input seeds to run the GUI program. However, I got some segments/clusters which do not belong to any seed(ie. some trees are split in two or more). Having read the proposed paper, I know each point should be associated to a trunk from equation(8). So I wonder how to solve this problem.
I am getting following linking error. I am unable to link tviewer. I am gone throgh the procedure given by you.
Thanks in advance !!
In function `main':
view_point_cloud_graph.cpp:(.text.startup+0x2f7): undefined reference to `tviewer::create(int, char**)'
view_point_cloud_graph.cpp:(.text.startup+0x43a): undefined reference to `tviewer::CreatePointCloudObject<pcl::PointXYZRGBA>::operator std::shared_ptr<tviewer::PointCloudObject<pcl::PointXYZRGBA> >()'
view_point_cloud_graph.cpp:(.text.startup+0x5e0): undefined reference to `tviewer::CreatePointCloudObject<pcl::PointXYZRGBA>::operator std::shared_ptr<tviewer::PointCloudObject<pcl::PointXYZRGBA> >()'
view_point_cloud_graph.cpp:(.text.startup+0x7c8): undefined reference to `tviewer::CreateNormalCloudObject::operator std::shared_ptr<tviewer::NormalCloudObject>()'
view_point_cloud_graph.cpp:(.text.startup+0x9e3): undefined reference to `tviewer::CreatePolyDataObject::operator std::shared_ptr<tviewer::PolyDataObject>()'
Hi,
has it to be PCL1.8? my PCL is 1.11, belowed error occured when running with "make" command.
In file included from /usr/include/pcl-1.11/pcl/io/impl/pcd_io.hpp:47:0,
from /usr/include/pcl-1.11/pcl/io/pcd_io.h:788,
from /home/zsq/Downloads/ForestMetrics/src/create_seeds.cpp:9:
/usr/include/pcl-1.11/pcl/common/io.h:65:39: note: candidate: pcl::getFieldIndex(const pcl::PCLPointCloud2&, const string&)::<lambda(int)>
[&field_name](const auto field) { return field.name == field_name; });
^
/usr/include/pcl-1.11/pcl/common/io.h:65:39: note: no known conversion for argument 1 from ‘const pcl::PCLPointField’ to ‘int’
CMakeFiles/create_seeds.dir/build.make:62: recipe for target 'CMakeFiles/create_seeds.dir/src/create_seeds.cpp.o' failed
make[2]: *** [CMakeFiles/create_seeds.dir/src/create_seeds.cpp.o] Error 1
CMakeFiles/Makefile2:97: recipe for target 'CMakeFiles/create_seeds.dir/all' failed
make[1]: *** [CMakeFiles/create_seeds.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
Could you please give some advice about how to solve this question, thanks a lot!
I am able to run the source code with PCL 1.8 but mostly I use latest PCL-trunk version. I am getting following linking error. I tried myself but I am unable to resolve it. I am getting linking error for copyPointCloud function. I tried with header file of copyPointCloud function but error still there.
Could you please into this issue ?
home/tan/pcl16_work/ForestMetrics/gui/delineation/trunk_detection_form.cpp: In member function ‘virtual void TrunkDetectionForm::enter()’:
/home/tan/pcl16_work/ForestMetrics/gui/delineation/trunk_detection_form.cpp:54:72: error: no matching function for call to ‘copyPointCloud(pipeline::Input<pcl::PointCloud<pcl::PointXYZRGB> >&, pipeline::Input<std::vector<int> >&, pcl::PointCloud<pcl::PointXYZRGB>&)’
pcl::copyPointCloud<Point> (input_cloud_, input_indices_, *input_);
^
This error occured when running "make" command. "cmake .." has run successfully.
[ 11%] Building CXX object CMakeFiles/tviewer.dir/tviewer/tviewer.cpp.o
In file included from /home/zsq/Downloads/树木语义分割/ForestMetrics-master/build/third-party/tviewer/tviewer-prefix/src/tviewer/tviewer/tviewer.cpp:32:0:
/usr/local/include/pcl-1.8/pcl/common/utils.h: In instantiation of ‘bool pcl::utils::equal(T, T, T) [with T = float]’:
/home/zsq/Downloads/树木语义分割/ForestMetrics-master/build/third-party/tviewer/tviewer-prefix/src/tviewer/tviewer/tviewer.cpp:375:29: required from here
/usr/local/include/pcl-1.8/pcl/common/utils.h:57:20: error: ‘fabs’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
return (fabs (val1 - val2) < eps);
~~~~~^~~~~~~~~~~~~
In file included from /usr/include/c++/7/math.h:36:0,
from /usr/local/include/pcl-1.8/pcl/pcl_macros.h:75,
from /usr/local/include/pcl-1.8/pcl/point_types.h:42,
from /home/zsq/Downloads/树木语义分割/ForestMetrics-master/build/third-party/tviewer/tviewer-prefix/src/tviewer/tviewer/tviewer_interface.h:32,
from /home/zsq/Downloads/树木语义分割/ForestMetrics-master/build/third-party/tviewer/tviewer-prefix/src/tviewer/tviewer/tviewer.h:72,
from /home/zsq/Downloads/树木语义分割/ForestMetrics-master/build/third-party/tviewer/tviewer-prefix/src/tviewer/tviewer/tviewer.cpp:35:
/usr/include/c++/7/cmath:253:5: note: ‘template constexpr typename __gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type std::fabs(_Tp)’ declared here, later in the translation unit
fabs(_Tp __x)
^~~~
cc1plus: warning: unrecognized command line option ‘-Wno-extra-semi’
CMakeFiles/tviewer.dir/build.make:105: recipe for target 'CMakeFiles/tviewer.dir/tviewer/tviewer.cpp.o' failed
make[5]: *** [CMakeFiles/tviewer.dir/tviewer/tviewer.cpp.o] Error 1
CMakeFiles/Makefile2:76: recipe for target 'CMakeFiles/tviewer.dir/all' failed
make[4]: *** [CMakeFiles/tviewer.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make[3]: *** [all] Error 2
third-party/tviewer/CMakeFiles/tviewer.dir/build.make:111: recipe for target 'third-party/tviewer/tviewer-prefix/src/tviewer-stamp/tviewer-build' failed
make[2]: *** [third-party/tviewer/tviewer-prefix/src/tviewer-stamp/tviewer-build] Error 2
CMakeFiles/Makefile2:335: recipe for target 'third-party/tviewer/CMakeFiles/tviewer.dir/all' failed
make[1]: *** [third-party/tviewer/CMakeFiles/tviewer.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
could you please help me with that, thanks!
I've downloaded tiviewer from https://github.com/taketwo/tviewer/tree/coloring and put it in ForestMetrics root directory,
command cmake works fine, but make command produced an error as picture showed:
then i check the tviewer directories:
no "arrow_array_object.h" shows up, what should I do? Could you please give me some advice, thanks a lot
Hello, I would like to ask if this system can be implemented on Win10? Or is it only available on Ubuntu?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.