1 | /* ------------- */ |
---|
2 | /* --- nrlut --- */ |
---|
3 | /* ------------- */ |
---|
4 | |
---|
5 | /* |
---|
6 | * Copyright (c) 2000-2014, Lionel Lacassagne, All rights reserved |
---|
7 | * Univ Paris Sud XI, CNRS |
---|
8 | */ |
---|
9 | |
---|
10 | #ifndef _NRLUT_H_ |
---|
11 | #define _NRLUT_H_ |
---|
12 | |
---|
13 | #define init_type_lut(t) \ |
---|
14 | void short_name(t,init_,lut)(t * v, int32_t nl, int32_t nh, int32_t n0, int32_t n1, t k); \ |
---|
15 | void short_name(t,lut_,matrix)(t ** S, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, t * L, t ** D); |
---|
16 | |
---|
17 | init_type_lut(int8_t); |
---|
18 | init_type_lut(uint8_t); |
---|
19 | init_type_lut(int16_t); |
---|
20 | init_type_lut(uint16_t); |
---|
21 | init_type_lut(int32_t); |
---|
22 | init_type_lut(uint32_t); |
---|
23 | init_type_lut(rgb8); |
---|
24 | |
---|
25 | |
---|
26 | void lut_si16matrix_si8matrix(int16_t ** S, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, int8_t * L, int8_t ** D); |
---|
27 | void lut_ui16matrix_ui8matrix(uint16_t ** S, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, uint8_t * L, uint8_t ** D); |
---|
28 | void lut_si32matrix_si16matrix(int32_t ** S, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, int16_t * L, int16_t ** D); |
---|
29 | void lut_ui32matrix_ui16matrix(uint32_t ** S, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, uint16_t * L, uint16_t ** D); |
---|
30 | |
---|
31 | |
---|
32 | #define histogram_type_matrix(t) \ |
---|
33 | void short_name(t,histogram_,matrix)(t ** S, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, t * H); |
---|
34 | |
---|
35 | histogram_type_matrix(int8_t); |
---|
36 | histogram_type_matrix(uint8_t); |
---|
37 | histogram_type_matrix(int16_t); |
---|
38 | histogram_type_matrix(uint16_t); |
---|
39 | histogram_type_matrix(int32_t); |
---|
40 | histogram_type_matrix(uint32_t); |
---|
41 | void histogram_rgb8matrix(rgb8 ** S, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, rgb32 * H); |
---|
42 | |
---|
43 | |
---|
44 | #endif /* _NRLUT_H_ */ |
---|
45 | |
---|