@kv  0.0.4
Library for graph problems in C and Python
seed.h
1 
18 #if !defined(AT_IMGPROC_H_INSIDE)
19 #error "Only <at/imgproc.h> can be included directly."
20 #endif
21 #ifndef AT_SEED_H
22 #define AT_SEED_H
23 #include<at/core.h>
24 AT_BEGIN_DECLS
25 
26 /*=============================================================================
27  STRUCTURE
28  ============================================================================*/
32 typedef struct AtSeeds{
33  uint64_t* s; //00+8: seeds
34  uint8_t* l; //08+8: labels
35  uint64_t n; //16+8: number of seeds
36  AtArrayU8 * m; //24+8: mask
37 }AtSeeds; //32
38 
39 /*=============================================================================
40  FUNCTIONS
41  ============================================================================*/
49 AtSeeds*
50 at_seeds_from_list(uint64_t num_seeds, uint64_t* slist, uint8_t* labels);
56 AtSeeds*
57 at_seeds_from_mask(AtArrayU8* mask);
64 void
65 at_seeds_mask_generate(AtSeeds* seeds, uint8_t dim, uint64_t* shape);
66 
74 void
75 at_seeds_split(AtSeeds* seeds, AtSeeds** sbackp, AtSeeds** sobjp, uint64_t lblback);
83 AtSeeds*
84 at_seeds_new(uint64_t n, uint64_t* seeds, uint8_t* labels);
85 
86 void
87 at_seeds_destroy(AtSeeds** seeds);
88 
89 AT_END_DECLS
90 #endif
Seeds (being a compact list or mask)
Definition: seed.h:32