source: soft/giet_vm/applications/rosenfeld/include/lutNR.h @ 827

Last change on this file since 827 was 772, checked in by meunier, 9 years ago
  • Ajout de l'application rosenfeld
  • Changement du nom du flag O_CREATE en O_CREAT
File size: 1.3 KB
Line 
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
14extern "C" {
15#endif
16
17
18uint8* alloc_ui8lut(void);
19void free_ui8lut(uint8 *L);
20void zero_ui8lut(uint8 *L);   
21
22void display_ui8lut(uint8 *L, char *format, char *name);
23
24void init_ui8lut(uint8 *L, uint8 threshold, uint8 value);
25void apply_ui8lut(uint8 **X, int i0, int i1, int j0, int j1, uint8 *L, uint8 **Y);
26
27   
28void binary_threshold_ui8matrix(uint8 **X, int i0, int i1, int j0, int j1, uint8 threshold, uint8 **Y);
29void        threshold_ui8matrix(uint8 **X, int i0, int i1, int j0, int j1, uint8 threshold, uint8 value, uint8 **Y);
30
31void 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
35void double_intensity_ui8matrix(uint8 **X, int i0, int i1, int j0, int j1, uint8 **Y); 
36
37void gray2bin_ui8matrix(uint8 **X, int i0, int i1, int j0, int j1, uint8 **Y);// [0..255] -> [0..1]
38void 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__
Note: See TracBrowser for help on using the repository browser.