source: soft/giet_vm/applications/rosenfeld/nrc2/include/nrlut.h @ 823

Last change on this file since 823 was 823, checked in by meunier, 8 years ago
  • Improved scripts for simulations and graphes
  • Continued to clean up the lib nrc2 (from nrio2x.x to nrmem1.c)
  • Added a version (Fast - Parmerge - No stats)
File size: 1.5 KB
Line 
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) \
14void short_name(t,init_,lut)(t * v, int32_t nl, int32_t nh, int32_t n0, int32_t n1, t k); \
15void short_name(t,lut_,matrix)(t ** S, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, t * L, t ** D);
16
17init_type_lut(int8_t);
18init_type_lut(uint8_t);
19init_type_lut(int16_t);
20init_type_lut(uint16_t);
21init_type_lut(int32_t);
22init_type_lut(uint32_t);
23init_type_lut(rgb8);
24
25
26void lut_si16matrix_si8matrix(int16_t ** S, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, int8_t * L, int8_t ** D);
27void lut_ui16matrix_ui8matrix(uint16_t ** S, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, uint8_t * L, uint8_t ** D);
28void lut_si32matrix_si16matrix(int32_t ** S, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, int16_t * L, int16_t ** D);
29void 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) \
33void short_name(t,histogram_,matrix)(t ** S, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, t * H);
34
35histogram_type_matrix(int8_t);
36histogram_type_matrix(uint8_t);
37histogram_type_matrix(int16_t);
38histogram_type_matrix(uint16_t);
39histogram_type_matrix(int32_t);
40histogram_type_matrix(uint32_t);
41void 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
Note: See TracBrowser for help on using the repository browser.