Open3d color texture classification
Open3D is an open-source library that supports rapid development of software that deals with 3D data. The Open3D frontend exposes a set of carefully selected data structures and algorithms in both C++ and Python. The backend is highly optimized and is set up for parallelization. We welcome contributions from the open-source community.
git clone --recursive https://github.com/scifiswapnil/Open3d-homeWork Open3d
cd Open3d
.util/scripts/install-deps-ubuntu.sh
util/scripts/install-deps-os
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=<open3d_install_directory> -DPYTHON_EXECUTABLE=<python_executable_directory> -DPYTHON_LIBRARIES=<python_library_directory> ..
make-j$(nproc)
make -j$(sysctl -n hw.physicalcpu)
sudo make install
make install-pip-package
- getConnectComponentSearch()
- read the mesh file
- check the size and color of vertices in mesh file
- initialize an array 'visited' of size as same vertices in mesh file and set every element to false
- traverse each element 'v' in the array and do :
- if 'v' is not visited before, call DepthFirstSearchConnectedComponentSearch(v,vertex_color(v))
- sort the results of DFSCCSearch(v,vertex_color(v)) and pushback to result
- return result
- DFSCCSearch(v,vertex_color(v))
- Mark 'v' as visited.
- pusback element to queue
- get the adjacent elements
- visit each adjacent elements and check the color as of root element
- If adjacent elements is not visited, then recursively call DFSCCSearch(v,vertex_color(v))
- cd ~/Open3D/build/bin/examples
- ./solution
or
- ./solution <input_mesh_file> <output_result_file>
~/Open3d/examples/TestData
and writes the results.txt
in the same directory. ./Open3d/build/bin/unitTests
pytest ~/Open3d/src/UnitTest/Python
BUILD_UNIT_TESTS
flag to true during the cmake for the build system to make the executablesPlease cite our work if you use Open3D.
@article{Zhou2018,
author = {Qian-Yi Zhou and Jaesik Park and Vladlen Koltun},
title = {{Open3D}: {A} Modern Library for {3D} Data Processing},
journal = {arXiv:1801.09847},
year = {2018},
}