This project is a fork from https://github.com/MarcusVLMA/nosetip_finder and was developed during my undergraduate thesis.
To run this project you will need:
- Point Cloud Library
- CMake to build the output.
If you intend to generate the .node
file, you will also need:
This project is divided into four parts.
- nan-module: adapted to include algorithms other than nose tip location.
- nan-module-pipeline: responsible for compiling the algorithm that performs filtering in c++ and that will be used in nodejs.
- pipeline-experiments: experiments used on my undergraduate thesis.
- regular: command line to execute the nose tip algorithm.
Each folder has a README explaining how to build and run the project. In general, projects can be compiled as follows:
Once you have installed Point Cloud Library and CMake, just get into cmd/regular
or cmd/pipeline-experiments
and run:
cmake .
make
The executable output file can be found inside of cmd/regular/build
or cmd/pipeline-experiments/build
folders.
You may want to use this algorithm with a web application, like I did in this repository. A way to do this is generating the .node
build, to use as a dependency in Node.js code.
As mencioned earlier, you will need Node.js 10. If you are using nvm
, you can set Node version to 10 by running:
nvm install 10.23.0
nvm use 10
Note that this will set your Node version only in the current terminal.
After that, install cmake-js
globally with:
npm install -g cmake-js
Now, go into cmd/nan-module
or cmd/nan-module-pipeline
and run:
npm run compile
This will install any necessary dependencies and compile the code with cmake-js
.
The output file can be found inside of cmd/nan-module/build/Release
or cmd/nan-module-pipeline/build/Release
folders.