GithubHelp home page GithubHelp logo

shot's People

Contributors

alessandro-gentilini avatar brunoeducsantos avatar chenxiao86 avatar fedassa avatar samuelesalti 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

Watchers

 avatar  avatar  avatar

shot's Issues

Assertion error on TOSCA mesh dataset

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.

Floating point precision

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

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?

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.