1 | /* --------------- */ |
---|
2 | /* --- lutNR.h --- */ |
---|
3 | /* --------------- */ |
---|
4 | |
---|
5 | /* |
---|
6 | * Copyright (c) 2011 Lionel Lacassagne, all rights reserved |
---|
7 | * University Paris Sud 11 |
---|
8 | */ |
---|
9 | |
---|
10 | #ifndef __LUT_NR_H__ |
---|
11 | #define __LUT_NR_H__ |
---|
12 | |
---|
13 | #ifdef __cplusplus |
---|
14 | extern "C" { |
---|
15 | #endif |
---|
16 | |
---|
17 | |
---|
18 | uint8* alloc_ui8lut(void); |
---|
19 | void free_ui8lut(uint8 *L); |
---|
20 | void zero_ui8lut(uint8 *L); |
---|
21 | |
---|
22 | void display_ui8lut(uint8 *L, char *format, char *name); |
---|
23 | |
---|
24 | void init_ui8lut(uint8 *L, uint8 threshold, uint8 value); |
---|
25 | void apply_ui8lut(uint8 **X, int i0, int i1, int j0, int j1, uint8 *L, uint8 **Y); |
---|
26 | |
---|
27 | |
---|
28 | void binary_threshold_ui8matrix(uint8 **X, int i0, int i1, int j0, int j1, uint8 threshold, uint8 **Y); |
---|
29 | void threshold_ui8matrix(uint8 **X, int i0, int i1, int j0, int j1, uint8 threshold, uint8 value, uint8 **Y); |
---|
30 | |
---|
31 | void ui32histogram_equalize_ui8matrix(uint8 **X, int i0, int i1, int j0, int j1, uint8 **Y); |
---|
32 | |
---|
33 | |
---|
34 | // double the value of each pixel: X[i][j] *= 2 |
---|
35 | void double_intensity_ui8matrix(uint8 **X, int i0, int i1, int j0, int j1, uint8 **Y); |
---|
36 | |
---|
37 | void gray2bin_ui8matrix(uint8 **X, int i0, int i1, int j0, int j1, uint8 **Y);// [0..255] -> [0..1] |
---|
38 | void bin2gray_ui8matrix(uint8 **X, int i0, int i1, int j0, int j1, uint8 **Y);// [0..1] -> [0..255] |
---|
39 | |
---|
40 | |
---|
41 | #ifdef __cplusplus |
---|
42 | } |
---|
43 | #endif |
---|
44 | |
---|
45 | #endif // __LUT_NR_H__ |
---|