mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-07 00:31:11 +00:00
New C++ jozov. Preliminary work before rewrite of the watershed transform algorithm.
This commit is contained in:
parent
f1bfdadd01
commit
9b7a931db9
2 changed files with 732 additions and 0 deletions
31
c_tools/zobov2/zobov.hpp
Normal file
31
c_tools/zobov2/zobov.hpp
Normal file
|
@ -0,0 +1,31 @@
|
|||
#ifndef __ZOBOV_HPP
|
||||
#define __ZOBOV_HPP
|
||||
|
||||
typedef struct Particle {
|
||||
float dens;
|
||||
int nadj;
|
||||
int ncnt;
|
||||
int *adj;
|
||||
} PARTICLE;
|
||||
|
||||
typedef struct Zone {
|
||||
int core; /* Identity of peak particle */
|
||||
int np; /* Number of particles in zone */
|
||||
int npjoin; /* Number of particles in the joined void */
|
||||
int nadj; /* Number of adjacent zones */
|
||||
int nhl; /* Number of zones in final joined void */
|
||||
float leak; /* Volume of last leak zone*/
|
||||
int *adj; /* Each adjacent zone, with ... */
|
||||
float *slv; /* Smallest Linking Volume */
|
||||
float denscontrast; /* density contrast */
|
||||
double vol; /* Total volume of all particles in the zone */
|
||||
double voljoin; /* Total volume of all particles in the joined void */
|
||||
} ZONE;
|
||||
|
||||
typedef struct ZoneT {
|
||||
int nadj; /* Number of zones on border */
|
||||
int *adj; /* Each adjacent zone, with ... */
|
||||
float *slv; /* Smallest Linking Volume */
|
||||
} ZONET;
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue