added enums for corner and pixel indexes

This commit is contained in:
bergamaschi 2023-05-24 17:59:42 +02:00
parent 7bdbd14a14
commit 4a820d10fe
2 changed files with 22 additions and 2 deletions

20
enums.py Normal file
View File

@ -0,0 +1,20 @@
from enum import Enum
class corner(Enum):
cBottomLeft=0
cBottomRight=1
cTopLeft=2
cTopRight=3
class pixel(Enum):
pBottomLeft=0
pBottom=1
pBottomRight=2
pLeft=3
pCenter=4
pRight=5
pTopLeft=6
pTop=7
pTopRight=8

View File

@ -25,14 +25,14 @@ typedef enum {
pRight=5,
pTopLeft=6,
pTop=7,
qTopRight=8
pTopRight=8
} pixel;
typedef struct {
int32_t tot2;
int32_t tot3;
int8_t c;
uint32_t c;
} ClusterAnalysis ;