Mercurial > hg > wm
annotate Meerwald-dir/bruyn_common.h @ 25:5a57a145bccb default tip
Added tag v0.7 for changeset 9f20bce6184e
| author | Peter Meerwald-Stadler <pmeerw@pmeerw.net> |
|---|---|
| date | Fri, 20 Dec 2024 13:32:15 +0100 |
| parents | 9f20bce6184e |
| children |
| rev | line source |
|---|---|
| 0 | 1 #ifndef BRUYN_COMMON_H |
| 2 #define BRUYN_COMMON_H | |
| 3 | |
|
24
9f20bce6184e
move directories, support netpbm 11
Peter Meerwald-Stadler <pmeerw@pmeerw.net>
parents:
3
diff
changeset
|
4 #include "netpbm/pgm.h" |
| 0 | 5 |
| 6 // for block type classification | |
| 7 #define BLOCKTYPE_UNKNOWN 0 | |
| 8 #define BLOCKTYPE_HARD 1 | |
| 9 #define BLOCKTYPE_PROGRESSIVE 2 | |
| 10 #define BLOCKTYPE_NOISE 3 | |
| 11 | |
| 12 // thresholds | |
| 13 #define THRESHOLD_NOISE 10.0 | |
| 14 #define THRESHOLD_SLOPE 5.0 | |
| 15 #define THRESHOLD_NOISE_USAGE "10.0" | |
| 16 #define THRESHOLD_SLOPE_USAGE "5.0" | |
| 17 | |
| 18 // zone classification | |
| 19 #define ZONE_VOID 0 | |
| 20 #define ZONE_1 1 | |
| 21 #define ZONE_2 2 | |
| 22 | |
| 23 // category classification | |
| 24 #define CATEGORY_VOID 0 | |
| 25 #define CATEGORY_A 4 | |
| 26 #define CATEGORY_B 8 | |
| 27 | |
| 28 // classifiction = zone | category | |
| 29 #define CLASSIFICATION_1A (ZONE_1 | CATEGORY_A) | |
| 30 #define CLASSIFICATION_1B (ZONE_1 | CATEGORY_B) | |
| 31 #define CLASSIFICATION_2A (ZONE_2 | CATEGORY_A) | |
| 32 #define CLASSIFICATION_2B (ZONE_2 | CATEGORY_B) | |
| 33 #define CLASSIFICATION_A CATEGORY_A | |
| 34 #define CLASSIFICATION_B CATEGORY_B | |
| 35 | |
| 36 #define NPATTERN 3 | |
| 37 #define NPATTERN_USAGE "3" | |
| 38 | |
| 39 gray lookup_pattern(int pattern, int c, int r); | |
| 40 | |
| 3 | 41 #endif /* BRUYN_COMMON_H */ |
