1 | |
---|
2 | /* |
---|
3 | * Copyright (c) 2000-2014, Lionel Lacassagne, All rights reserved |
---|
4 | * Univ Paris Sud XI, CNRS |
---|
5 | */ |
---|
6 | |
---|
7 | #ifndef _NRMEM2XX_H_ |
---|
8 | #define _NRMEM2XX_H_ |
---|
9 | |
---|
10 | #ifdef __cplusplus |
---|
11 | #ifdef PRAGMA_VERBOSE |
---|
12 | #pragma message ("C++") |
---|
13 | #endif |
---|
14 | extern "C" { |
---|
15 | #endif |
---|
16 | |
---|
17 | /* ----------------------- */ |
---|
18 | /* -- Rotation and Flip -- */ |
---|
19 | /* ----------------------- */ |
---|
20 | // no check performed on size, S and D must be different |
---|
21 | IMAGE_EXPORT(void) lrotate_bmatrix (byte **S, long nrl,long nrh,long ncl, long nch, byte **D); |
---|
22 | IMAGE_EXPORT(void) lrotate_smatrix (short **S, long nrl,long nrh,long ncl, long nch, short **D); |
---|
23 | IMAGE_EXPORT(void) lrotate_usmatrix (ushort **S, long nrl,long nrh,long ncl, long nch, ushort **D); |
---|
24 | IMAGE_EXPORT(void) lrotate_si16matrix(sint16 **S, long nrl,long nrh,long ncl, long nch, sint16 **D); |
---|
25 | IMAGE_EXPORT(void) lrotate_ui16matrix(uint16 **S, long nrl,long nrh,long ncl, long nch, uint16 **D); |
---|
26 | IMAGE_EXPORT(void) lrotate_imatrix (int **S, long nrl,long nrh,long ncl, long nch, int **D); |
---|
27 | IMAGE_EXPORT(void) lrotate_uimatrix (uint **S, long nrl,long nrh,long ncl, long nch, uint **D); |
---|
28 | IMAGE_EXPORT(void) lrotate_i32matrix (int32 **S, long nrl,long nrh,long ncl, long nch, int32 **D); |
---|
29 | IMAGE_EXPORT(void) lrotate_ui32matrix(uint32 **S, long nrl,long nrh,long ncl, long nch, uint32 **D); |
---|
30 | IMAGE_EXPORT(void) lrotate_matrix (float **S, long nrl,long nrh,long ncl, long nch, float **D); |
---|
31 | IMAGE_EXPORT(void) lrotate_dmatrix (double **S, long nrl,long nrh,long ncl, long nch, double **D); |
---|
32 | IMAGE_EXPORT(void) lrotate_rgb8matrix(rgb8 **S, long nrl,long nrh,long ncl, long nch, rgb8 **D); |
---|
33 | |
---|
34 | IMAGE_EXPORT(void) rrotate_bmatrix (byte **S, long nrl,long nrh,long ncl, long nch, byte **D); |
---|
35 | IMAGE_EXPORT(void) rrotate_smatrix (short **S, long nrl,long nrh,long ncl, long nch, short **D); |
---|
36 | IMAGE_EXPORT(void) rrotate_usmatrix (ushort **S, long nrl,long nrh,long ncl, long nch, ushort **D); |
---|
37 | IMAGE_EXPORT(void) rrotate_si16matrix(sint16 **S, long nrl,long nrh,long ncl, long nch, sint16 **D); |
---|
38 | IMAGE_EXPORT(void) rrotate_ui16matrix(uint16 **S, long nrl,long nrh,long ncl, long nch, uint16 **D); |
---|
39 | IMAGE_EXPORT(void) rrotate_imatrix (int **S, long nrl,long nrh,long ncl, long nch, int **D); |
---|
40 | IMAGE_EXPORT(void) rrotate_uimatrix (uint **S, long nrl,long nrh,long ncl, long nch, uint **D); |
---|
41 | IMAGE_EXPORT(void) rrotate_i32matrix (int32 **S, long nrl,long nrh,long ncl, long nch, int32 **D); |
---|
42 | IMAGE_EXPORT(void) rrotate_ui32matrix(uint32 **S, long nrl,long nrh,long ncl, long nch, uint32 **D); |
---|
43 | IMAGE_EXPORT(void) rrotate_matrix (float **S, long nrl,long nrh,long ncl, long nch, float **D); |
---|
44 | IMAGE_EXPORT(void) rrotate_dmatrix (double **S, long nrl,long nrh,long ncl, long nch, double **D); |
---|
45 | IMAGE_EXPORT(void) rrotate_rgb8matrix(rgb8 **S, long nrl,long nrh,long ncl, long nch, rgb8 **D); |
---|
46 | |
---|
47 | IMAGE_EXPORT(void) lrotate1_bmatrix (byte **S, long nrl,long nrh,long ncl, long nch); |
---|
48 | IMAGE_EXPORT(void) lrotate1_smatrix (short **S, long nrl,long nrh,long ncl, long nch); |
---|
49 | IMAGE_EXPORT(void) lrotate1_usmatrix (ushort **S, long nrl,long nrh,long ncl, long nch); |
---|
50 | IMAGE_EXPORT(void) lrotate1_si16matrix(sint16 **S, long nrl,long nrh,long ncl, long nch); |
---|
51 | IMAGE_EXPORT(void) lrotate1_ui16matrix(uint16 **S, long nrl,long nrh,long ncl, long nch); |
---|
52 | IMAGE_EXPORT(void) lrotate1_imatrix (int **S, long nrl,long nrh,long ncl, long nch); |
---|
53 | IMAGE_EXPORT(void) lrotate1_uimatrix (uint **S, long nrl,long nrh,long ncl, long nch); |
---|
54 | IMAGE_EXPORT(void) lrotate1_i32matrix (int32 **S, long nrl,long nrh,long ncl, long nch); |
---|
55 | IMAGE_EXPORT(void) lrotate1_ui32matrix(uint32 **S, long nrl,long nrh,long ncl, long nch); |
---|
56 | IMAGE_EXPORT(void) lrotate1_matrix (float **S, long nrl,long nrh,long ncl, long nch); |
---|
57 | IMAGE_EXPORT(void) lrotate1_dmatrix (double **S, long nrl,long nrh,long ncl, long nch); |
---|
58 | IMAGE_EXPORT(void) lrotate1_rgb8matrix(rgb8 **S, long nrl,long nrh,long ncl, long nch); |
---|
59 | |
---|
60 | IMAGE_EXPORT(void) rrotate1_bmatrix (byte **S, long nrl,long nrh,long ncl, long nch); |
---|
61 | IMAGE_EXPORT(void) rrotate1_smatrix (short **S, long nrl,long nrh,long ncl, long nch); |
---|
62 | IMAGE_EXPORT(void) rrotate1_usmatrix (ushort **S, long nrl,long nrh,long ncl, long nch); |
---|
63 | IMAGE_EXPORT(void) rrotate1_si16matrix(sint16 **S, long nrl,long nrh,long ncl, long nch); |
---|
64 | IMAGE_EXPORT(void) rrotate1_ui16matrix(uint16 **S, long nrl,long nrh,long ncl, long nch); |
---|
65 | IMAGE_EXPORT(void) rrotate1_imatrix (int **S, long nrl,long nrh,long ncl, long nch); |
---|
66 | IMAGE_EXPORT(void) rrotate1_uimatrix (uint **S, long nrl,long nrh,long ncl, long nch); |
---|
67 | IMAGE_EXPORT(void) rrotate1_i32matrix (int32 **S, long nrl,long nrh,long ncl, long nch); |
---|
68 | IMAGE_EXPORT(void) rrotate1_ui32matrix(uint32 **S, long nrl,long nrh,long ncl, long nch); |
---|
69 | IMAGE_EXPORT(void) rrotate1_matrix (float **S, long nrl,long nrh,long ncl, long nch); |
---|
70 | IMAGE_EXPORT(void) rrotate1_dmatrix (double **S, long nrl,long nrh,long ncl, long nch); |
---|
71 | IMAGE_EXPORT(void) rrotate1_rgb8matrix(rgb8 **S, long nrl,long nrh,long ncl, long nch); |
---|
72 | |
---|
73 | IMAGE_EXPORT(void) hflip_bmatrix (byte **S, long nrl,long nrh,long ncl, long nch, byte **D); |
---|
74 | IMAGE_EXPORT(void) hflip_smatrix (short **S, long nrl,long nrh,long ncl, long nch, short **D); |
---|
75 | IMAGE_EXPORT(void) hflip_usmatrix (ushort **S, long nrl,long nrh,long ncl, long nch, ushort **D); |
---|
76 | IMAGE_EXPORT(void) hflip_i16matrix (int16 **S, long nrl,long nrh,long ncl, long nch, int16 **D); |
---|
77 | IMAGE_EXPORT(void) hflip_ui16matrix(uint16 **S, long nrl,long nrh,long ncl, long nch, uint16 **D); |
---|
78 | IMAGE_EXPORT(void) hflip_imatrix (int **S, long nrl,long nrh,long ncl, long nch, int **D); |
---|
79 | IMAGE_EXPORT(void) hflip_uimatrix (uint **S, long nrl,long nrh,long ncl, long nch, uint **D); |
---|
80 | IMAGE_EXPORT(void) hflip_i32matrix (int32 **S, long nrl,long nrh,long ncl, long nch, int32 **D); |
---|
81 | IMAGE_EXPORT(void) hflip_ui32matrix(uint32 **S, long nrl,long nrh,long ncl, long nch, uint32 **D); |
---|
82 | IMAGE_EXPORT(void) hflip_matrix (float **S, long nrl,long nrh,long ncl, long nch, float **D); |
---|
83 | IMAGE_EXPORT(void) hflip_dmatrix (double **S, long nrl,long nrh,long ncl, long nch, double **D); |
---|
84 | IMAGE_EXPORT(void) hflip_rgb8matrix(rgb8 **S, long nrl,long nrh,long ncl, long nch, rgb8 **D); |
---|
85 | |
---|
86 | IMAGE_EXPORT(void) vflip_bmatrix (byte **S, long nrl,long nrh,long ncl, long nch, byte **D); |
---|
87 | IMAGE_EXPORT(void) vflip_smatrix (short **S, long nrl,long nrh,long ncl, long nch, short **D); |
---|
88 | IMAGE_EXPORT(void) vflip_usmatrix (ushort **S, long nrl,long nrh,long ncl, long nch, ushort **D); |
---|
89 | IMAGE_EXPORT(void) vflip_si16matrix(sint16 **S, long nrl,long nrh,long ncl, long nch, int16 **D); |
---|
90 | IMAGE_EXPORT(void) vflip_ui16matrix(uint16 **S, long nrl,long nrh,long ncl, long nch, uint16 **D); |
---|
91 | IMAGE_EXPORT(void) vflip_imatrix (int **S, long nrl,long nrh,long ncl, long nch, int **D); |
---|
92 | IMAGE_EXPORT(void) vflip_uimatrix (uint **S, long nrl,long nrh,long ncl, long nch, uint **D); |
---|
93 | IMAGE_EXPORT(void) vflip_i32matrix (int32 **S, long nrl,long nrh,long ncl, long nch, int32 **D); |
---|
94 | IMAGE_EXPORT(void) vflip_ui32matrix(uint32 **S, long nrl,long nrh,long ncl, long nch, uint32 **D); |
---|
95 | IMAGE_EXPORT(void) vflip_matrix (float **S, long nrl,long nrh,long ncl, long nch, float **D); |
---|
96 | IMAGE_EXPORT(void) vflip_dmatrix (double **S, long nrl,long nrh,long ncl, long nch, double **D); |
---|
97 | IMAGE_EXPORT(void) vflip_rgb8matrix(rgb8 **S, long nrl,long nrh,long ncl, long nch, rgb8 **D); |
---|
98 | |
---|
99 | IMAGE_EXPORT(void) hflip1_bmatrix (byte **S, long nrl,long nrh,long ncl, long nch); |
---|
100 | IMAGE_EXPORT(void) hflip1_smatrix (short **S, long nrl,long nrh,long ncl, long nch); |
---|
101 | IMAGE_EXPORT(void) hflip1_usmatrix (ushort **S, long nrl,long nrh,long ncl, long nch); |
---|
102 | IMAGE_EXPORT(void) hflip1_si16matrix(sint16 **S, long nrl,long nrh,long ncl, long nch); |
---|
103 | IMAGE_EXPORT(void) hflip1_ui16matrix(uint16 **S, long nrl,long nrh,long ncl, long nch); |
---|
104 | IMAGE_EXPORT(void) hflip1_imatrix (int **S, long nrl,long nrh,long ncl, long nch); |
---|
105 | IMAGE_EXPORT(void) hflip1_uimatrix (uint **S, long nrl,long nrh,long ncl, long nch); |
---|
106 | IMAGE_EXPORT(void) hflip1_i32matrix (int32 **S, long nrl,long nrh,long ncl, long nch); |
---|
107 | IMAGE_EXPORT(void) hflip1_ui32matrix(uint32 **S, long nrl,long nrh,long ncl, long nch); |
---|
108 | IMAGE_EXPORT(void) hflip1_matrix (float **S, long nrl,long nrh,long ncl, long nch); |
---|
109 | IMAGE_EXPORT(void) hflip1_dmatrix (double **S, long nrl,long nrh,long ncl, long nch); |
---|
110 | IMAGE_EXPORT(void) hflip1_rgb8matrix(rgb8 **S, long nrl,long nrh,long ncl, long nch); |
---|
111 | |
---|
112 | IMAGE_EXPORT(void) vflip1_bmatrix (byte **S, long nrl,long nrh,long ncl, long nch); |
---|
113 | IMAGE_EXPORT(void) vflip1_smatrix (short **S, long nrl,long nrh,long ncl, long nch); |
---|
114 | IMAGE_EXPORT(void) vflip1_usmatrix (ushort **S, long nrl,long nrh,long ncl, long nch); |
---|
115 | IMAGE_EXPORT(void) vflip1_si16matrix(sint16 **S, long nrl,long nrh,long ncl, long nch); |
---|
116 | IMAGE_EXPORT(void) vflip1_ui16matrix(uint16 **S, long nrl,long nrh,long ncl, long nch); |
---|
117 | IMAGE_EXPORT(void) vflip1_imatrix (int **S, long nrl,long nrh,long ncl, long nch); |
---|
118 | IMAGE_EXPORT(void) vflip1_uimatrix (uint **S, long nrl,long nrh,long ncl, long nch); |
---|
119 | IMAGE_EXPORT(void) vflip1_i32matrix (int32 **S, long nrl,long nrh,long ncl, long nch); |
---|
120 | IMAGE_EXPORT(void) vflip1_ui32matrix(uint32 **S, long nrl,long nrh,long ncl, long nch); |
---|
121 | IMAGE_EXPORT(void) vflip1_matrix (float **S, long nrl,long nrh,long ncl, long nch); |
---|
122 | IMAGE_EXPORT(void) vflip1_dmatrix (double **S, long nrl,long nrh,long ncl, long nch); |
---|
123 | IMAGE_EXPORT(void) vflip1_rgb8matrix(rgb8 **S, long nrl,long nrh,long ncl, long nch); |
---|
124 | |
---|
125 | #ifdef __cplusplus |
---|
126 | } |
---|
127 | #endif |
---|
128 | |
---|
129 | #else |
---|
130 | //#pragma message(" Warning : attemp to re-include nrmem2x.h") |
---|
131 | #endif /* _NRMEM2XX_H_ */ |
---|