1 | /* --------------------- */ |
---|
2 | /* --- histogramNR.h --- */ |
---|
3 | /* --------------------- */ |
---|
4 | |
---|
5 | /* |
---|
6 | * Copyright (c) 2011 Lionel Lacassagne, all rights reserved |
---|
7 | * University Paris Sud 11 |
---|
8 | */ |
---|
9 | |
---|
10 | #ifndef __HISTOGRAM_NR_H__ |
---|
11 | #define __HISTOGRAM_NR_H__ |
---|
12 | |
---|
13 | #ifdef __cplusplus |
---|
14 | extern "C" { |
---|
15 | #endif |
---|
16 | |
---|
17 | uint32* alloc_ui32histogram( int i0, int i1); |
---|
18 | void free_ui32histogram(uint32* H, int i0, int i1); |
---|
19 | |
---|
20 | void zero_ui32histogram(uint32 *H, int i0, int i1); |
---|
21 | void display_ui32histogram(uint32 *H, int i0, int i1, char *format, char *name); |
---|
22 | |
---|
23 | void ui32histogram_ui8matrix(uint8 **X, int i0, int i1, int j0, int j1, uint32 *H); |
---|
24 | |
---|
25 | void ui32histogram_equalize_ui8matrix(uint8 **X, int i0, int i1, int j0, int j1, uint8 **Y); |
---|
26 | |
---|
27 | int calc_otsu_threshold_ui8matrix (uint8 **X, int i0, int i1, int j0, int j1); |
---|
28 | int calc_otsu_threshold_ui32vector(uint32 *H, int i0, int i1); |
---|
29 | |
---|
30 | #ifdef __cplusplus |
---|
31 | } |
---|
32 | #endif |
---|
33 | |
---|
34 | #endif // __LUT_NR_H__ |
---|