fedassa / shot Goto Github PK
View Code? Open in Web Editor NEWC++ implementation of the SHOT 3D descriptor
License: GNU General Public License v3.0
C++ implementation of the SHOT 3D descriptor
License: GNU General Public License v3.0
Thank you very much for making the descriptor open source!
I'm running it on the TOSCA dataset (highly descriptive meshes with over 10000 vertices)
and I'm having an assertion error on some of them:
void SHOTDescriptor::interpolateSingleChannel(vtkPolyData*, vtkIdList*, const std::vector<double>&, const double*, float*, std::vector<double>&, int, double*): Assertion
(desc_index - 1) * (nr_bins+1) + step_index >= 0 && (desc_index - 1) * (nr_bins+1) + step_index < m_descLength' failed.`
I know that the dataset is valid, and the meshes are fine(I'm able to display them properly using pyMesh.
What can be the problem? what's the logic behind the assertion?
Thanks a lot.
Hi Samuele,
Was using your code for experiments and found a failing case. Thought I should let you know.
In the shot.h file you have used these floating point defines
#define DEG_45_TO_RAD 0.78539816339744830961566084581988f
#define DEG_90_TO_RAD 1.5707963267948966192313216916398f
#define DEG_135_TO_RAD 2.3561944901923449288469825374596f
#define DEG_168_TO_RAD 2.7488935718910690836548129603696f
but in the function SHOTDescriptor::interpolateSingleChannel in shot.cpp you use 1e-30 as the width of imprecise region at e.g. line 705. This causes an error for inclination values close to pi/2 degree and cause the assertion on 724 to be falsified.
See https://en.wikipedia.org/wiki/IEEE_754#/media/File:IEEE754.svg for relation between floating point values and their precision. In the given case the imprecise should be about 1e-6 or use double precision constants and imprecise region of 1e-15.
Best regards,
Abhishek
Error: no color array found in the processed 3D data..
terminate called after throwing an instance of 'std::runtime_error'
what(): no color array found in the processed 3D data
Aborted (core dumped)
I want to generate SHOT feature on .ply files, and got an error.
Is color array necessary?
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.