loicland / cut-pursuit

C++ implementation for the cut pursuit algorithm, with Matlab interfaces
MIT License
77 stars 24 forks source link

Spatial flag does not seem to do anything #20

Closed nicolas-chaulet closed 5 years ago

nicolas-chaulet commented 5 years ago

@loicland I don't see any difference between the two calls in this if/then/else is that correct? https://github.com/loicland/cut-pursuit/blob/bb4afadab531aca825cc2e7ebd250e1da5e9a5da/src/cutpursuit.cpp#L94-L105

loicland commented 5 years ago

I fixed it.

spatial==1 is an experimental mode, in which some values of the vertex variables (the last 3, which should be xyz) are treated differently when performing the reduction phase. It helps a little bit for superpoints oversegmentation, but is not extensively tested yet.