1 | /* ---------------- */ |
---|
2 | /* --- nrio2x.h --- */ |
---|
3 | /* ---------------- */ |
---|
4 | |
---|
5 | /* |
---|
6 | * Copyright (c) 2000-2014, Lionel Lacassagne, All rights reserved |
---|
7 | * Univ Paris Sud XI, CNRS |
---|
8 | */ |
---|
9 | |
---|
10 | #ifndef __NRIO2X_H__ |
---|
11 | #define __NRIO2X_H__ |
---|
12 | |
---|
13 | #ifdef __cplusplus |
---|
14 | #pragma message ("C++") |
---|
15 | extern "C" { |
---|
16 | #endif |
---|
17 | |
---|
18 | #ifdef VERBOSE_PRAGMA |
---|
19 | //#pragma message ("- *** include nrio2x.h ***") |
---|
20 | #endif |
---|
21 | |
---|
22 | IMAGE_EXPORT(void) display_matrix_endline (byte **m, long i0, long i1, long j0, long j1, char *format, char *name); |
---|
23 | IMAGE_EXPORT(void) display_i16matrix_endline (int16 **m, long i0, long i1, long j0, long j1, char *format, char *name); |
---|
24 | IMAGE_EXPORT(void) display_ui16matrix_endline(uint16 **m, long i0, long i1, long j0, long j1, char *format, char *name); |
---|
25 | IMAGE_EXPORT(void) display_i32matrix_endline (int32 **m, long i0, long i1, long j0, long j1, char *format, char *name); |
---|
26 | IMAGE_EXPORT(void) display_ui32matrix_endline(uint32 **m, long i0, long i1, long j0, long j1, char *format, char *name); |
---|
27 | IMAGE_EXPORT(void) display_i64matrix_endline (int64 **m, long i0, long i1, long j0, long j1, char *format, char *name); |
---|
28 | IMAGE_EXPORT(void) display_imatrix_endline (int **m, long i0, long i1, long j0, long j1, char *format, char *name); |
---|
29 | |
---|
30 | /* ------------------------------- */ |
---|
31 | /* --- display_matrix_endline0 --- */ |
---|
32 | |
---|
33 | IMAGE_EXPORT(void) display_bmatrix_endline0 (byte **m, long i0, long i1, char *format, char *name); |
---|
34 | IMAGE_EXPORT(void) display_i16matrix_endline0 (int16 **m, long i0, long i1, char *format, char *name); |
---|
35 | IMAGE_EXPORT(void) display_ui16matrix_endline0(uint16 **m, long i0, long i1, char *format, char *name); |
---|
36 | IMAGE_EXPORT(void) display_i32matrix_endline0 (int32 **m, long i0, long i1, char *format, char *name); |
---|
37 | IMAGE_EXPORT(void) display_ui32matrix_endline0(uint32 **m, long i0, long i1, char *format, char *name); |
---|
38 | IMAGE_EXPORT(void) display_i64matrix_endline0 (int64 **m, long i0, long i1, char *format, char *name); |
---|
39 | IMAGE_EXPORT(void) display_imatrix_endline0 (int **m, long i0, long i1, char *format, char *name); |
---|
40 | |
---|
41 | /* ------------------------------- */ |
---|
42 | /* --- display_matrix_endline1 --- */ |
---|
43 | /* ------------------------------- */ |
---|
44 | IMAGE_EXPORT(void) display_bmatrix_endline1 (byte **m,long i0, long i1, long j0, long j1, char *format, char *name); |
---|
45 | IMAGE_EXPORT(void) display_i16matrix_endline1 (int16 **m,long i0, long i1, long j0, long j1, char *format, char *name); |
---|
46 | IMAGE_EXPORT(void) display_ui16matrix_endline1(uint16 **m,long i0, long i1, long j0, long j1, char *format, char *name); |
---|
47 | IMAGE_EXPORT(void) display_i32matrix_endline1 (int32 **m,long i0, long i1, long j0, long j1, char *format, char *name); |
---|
48 | IMAGE_EXPORT(void) display_ui32matrix_endline1(uint32 **m,long i0, long i1, long j0, long j1, char *format, char *name); |
---|
49 | IMAGE_EXPORT(void) display_i64matrix_endline1 (int64 **m,long i0, long i1, long j0, long j1, char *format, char *name); |
---|
50 | IMAGE_EXPORT(void) display_imatrix_endline1 (int **m,long i0, long i1, long j0, long j1, char *format, char *name); |
---|
51 | |
---|
52 | /* -------------------------------------- */ |
---|
53 | /* --- display_matrix_number_endline0 --- */ |
---|
54 | /* -------------------------------------- */ |
---|
55 | |
---|
56 | IMAGE_EXPORT(void) display_bmatrix_number_endline0 (byte **m,long i0, long i1, long j0, long j1, char *format, char *name); |
---|
57 | IMAGE_EXPORT(void) display_i16matrix_number_endline0 (int16 **m,long i0, long i1, long j0, long j1, char *format, char *name); |
---|
58 | IMAGE_EXPORT(void) display_ui16matrix_number_endline0(uint16 **m,long i0, long i1, long j0, long j1, char *format, char *name); |
---|
59 | IMAGE_EXPORT(void) display_i32matrix_number_endline0 (int32 **m,long i0, long i1, long j0, long j1, char *format, char *name); |
---|
60 | IMAGE_EXPORT(void) display_ui32matrix_number_endline0(uint32 **m,long i0, long i1, long j0, long j1, char *format, char *name); |
---|
61 | IMAGE_EXPORT(void) display_i64matrix_number_endline0 (int64 **m,long i0, long i1, long j0, long j1, char *format, char *name); |
---|
62 | IMAGE_EXPORT(void) display_imatrix_number_endline0 (int **m,long i0, long i1, long j0, long j1, char *format, char *name); |
---|
63 | |
---|
64 | /* -------------------------------------- */ |
---|
65 | /* --- display_matrix_number_endline1 --- */ |
---|
66 | /* -------------------------------------- */ |
---|
67 | |
---|
68 | IMAGE_EXPORT(void) display_bmatrix_number_endline1 (byte **m,long i0, long i1, long j0, long j1, char *format, char *name); |
---|
69 | IMAGE_EXPORT(void) display_i16matrix_number_endline1 (int16 **m,long i0, long i1, long j0, long j1, char *format, char *name); |
---|
70 | IMAGE_EXPORT(void) display_ui16matrix_number_endline1(uint16 **m,long i0, long i1, long j0, long j1, char *format, char *name); |
---|
71 | IMAGE_EXPORT(void) display_i32matrix_number_endline1 (int32 **m,long i0, long i1, long j0, long j1, char *format, char *name); |
---|
72 | IMAGE_EXPORT(void) display_ui32matrix_number_endline1(uint32 **m,long i0, long i1, long j0, long j1, char *format, char *name); |
---|
73 | IMAGE_EXPORT(void) display_i64matrix_number_endline1 (int64 **m,long i0, long i1, long j0, long j1, char *format, char *name); |
---|
74 | IMAGE_EXPORT(void) display_imatrix_number_endline1 (int **m,long i0, long i1, long j0, long j1, char *format, char *name); |
---|
75 | |
---|
76 | /* ------------------------- */ |
---|
77 | /* --- display_trimatrix --- */ |
---|
78 | /* ------------------------- */ |
---|
79 | |
---|
80 | IMAGE_EXPORT(void) display_btrimatrix (byte **m, long i0, long i1, long j0, long j1, long step, char *format, char *name); |
---|
81 | IMAGE_EXPORT(void) display_i16trimatrix (int16 **m, long i0, long i1, long j0, long j1, long step, char *format, char *name); |
---|
82 | IMAGE_EXPORT(void) display_ui16trimatrix(uint16 **m, long i0, long i1, long j0, long j1, long step, char *format, char *name); |
---|
83 | IMAGE_EXPORT(void) display_itrimatrix (int **m, long i0, long i1, long j0, long j1, long step, char *format, char *name); |
---|
84 | IMAGE_EXPORT(void) display_i32trimatrix (int32 **m, long i0, long i1, long j0, long j1, long step, char *format, char *name); |
---|
85 | IMAGE_EXPORT(void) display_f32trimatrix (float32 **m, long i0, long i1, long j0, long j1, long step, char *format, char *name); |
---|
86 | IMAGE_EXPORT(void) display_f64trimatrix (float64 **m, long i0, long i1, long j0, long j1, long step, char *format, char *name); |
---|
87 | |
---|
88 | /* ----------------------- */ |
---|
89 | /* --- write_trimatrix --- */ |
---|
90 | /* ----------------------- */ |
---|
91 | |
---|
92 | IMAGE_EXPORT(void) write_btrimatrix (byte **m,long i0,long i1,long j0, long j1, long step, char *format, char *filename); |
---|
93 | IMAGE_EXPORT(void) write_i16trimatrix (int16 **m,long i0,long i1,long j0, long j1, long step, char *format, char *filename); |
---|
94 | IMAGE_EXPORT(void) write_ui16trimatrix(uint16 **m,long i0,long i1,long j0, long j1, long step, char *format, char *filename); |
---|
95 | IMAGE_EXPORT(void) write_itrimatrix (int **m,long i0,long i1,long j0, long j1, long step, char *format, char *filename); |
---|
96 | IMAGE_EXPORT(void) write_i32trimatrix (int32 **m,long i0,long i1,long j0, long j1, long step, char *format, char *filename); |
---|
97 | IMAGE_EXPORT(void) write_f32trimatrix (float32 **m,long i0,long i1,long j0, long j1, long step, char *format, char *filename); |
---|
98 | IMAGE_EXPORT(void) write_f64trimatrix (float64 **m,long i0,long i1,long j0, long j1, long step, char *format, char *filename); |
---|
99 | |
---|
100 | /* ---------------------------- */ |
---|
101 | /* --- write_matrix_endline --- */ |
---|
102 | /* ---------------------------- */ |
---|
103 | |
---|
104 | IMAGE_EXPORT(void) write_bmatrix_endline (byte **m,long i0, long i1, long j0, long j1, char *format, char *filename); |
---|
105 | IMAGE_EXPORT(void) write_i16matrix_endline (int16 **m,long i0, long i1, long j0, long j1, char *format, char *filename); |
---|
106 | IMAGE_EXPORT(void) write_ui16matrix_endline(uint16 **m,long i0, long i1, long j0, long j1, char *format, char *filename); |
---|
107 | IMAGE_EXPORT(void) write_i32matrix_endline (int32 **m,long i0, long i1, long j0, long j1, char *format, char *filename); |
---|
108 | IMAGE_EXPORT(void) write_ui32matrix_endline(uint32 **m,long i0, long i1, long j0, long j1, char *format, char *filename); |
---|
109 | IMAGE_EXPORT(void) write_i64matrix_endline (int64 **m,long i0, long i1, long j0, long j1, char *format, char *filename); |
---|
110 | IMAGE_EXPORT(void) write_imatrix_endline (int **m,long i0, long i1, long j0, long j1, char *format, char *filename); |
---|
111 | |
---|
112 | /* ------------------------------ */ |
---|
113 | /* --- write_imatrix_endline0 --- */ |
---|
114 | /* ------------------------------ */ |
---|
115 | |
---|
116 | IMAGE_EXPORT(void) write_bmatrix_endline0 (byte **m,long i0, long i1, long j0, long j1, char *format, char *filename); |
---|
117 | IMAGE_EXPORT(void) write_i16matrix_endline0 (int16 **m,long i0, long i1, long j0, long j1, char *format, char *filename); |
---|
118 | IMAGE_EXPORT(void) write_ui16matrix_endline0(uint16 **m,long i0, long i1, long j0, long j1, char *format, char *filename); |
---|
119 | IMAGE_EXPORT(void) write_i32matrix_endline0 (int32 **m,long i0, long i1, long j0, long j1, char *format, char *filename); |
---|
120 | IMAGE_EXPORT(void) write_i64matrix_endline0 (int64 **m,long i0, long i1, long j0, long j1, char *format, char *filename); |
---|
121 | IMAGE_EXPORT(void) write_ui32matrix_endline0(uint32 **m,long i0, long i1, long j0, long j1, char *format, char *filename); |
---|
122 | IMAGE_EXPORT(void) write_imatrix_endline0 (int **m,long i0, long i1, long j0, long j1, char *format, char *filename); |
---|
123 | |
---|
124 | /* ------------------------------ */ |
---|
125 | /* --- write_imatrix_endline1 --- */ |
---|
126 | /* ------------------------------ */ |
---|
127 | |
---|
128 | IMAGE_EXPORT(void) write_bmatrix_endline1 (byte **m,long i0, long i1, long j0, long j1, char *format, char *filename); |
---|
129 | IMAGE_EXPORT(void) write_i16matrix_endline1 (int16 **m,long i0, long i1, long j0, long j1, char *format, char *filename); |
---|
130 | IMAGE_EXPORT(void) write_ui16matrix_endline1(uint16 **m,long i0, long i1, long j0, long j1, char *format, char *filename); |
---|
131 | IMAGE_EXPORT(void) write_i32matrix_endline1 (int32 **m,long i0, long i1, long j0, long j1, char *format, char *filename); |
---|
132 | IMAGE_EXPORT(void) write_ui32matrix_endline1(uint32 **m,long i0, long i1, long j0, long j1, char *format, char *filename); |
---|
133 | IMAGE_EXPORT(void) write_i64matrix_endline1 (int64 **m,long i0, long i1, long j0, long j1, char *format, char *filename); |
---|
134 | IMAGE_EXPORT(void) write_imatrix_endline1 (int **m,long i0, long i1, long j0, long j1, char *format, char *filename); |
---|
135 | |
---|
136 | /* ------------------------------------- */ |
---|
137 | /* --- write_imatrix_number_endline0 --- */ |
---|
138 | /* ------------------------------------- */ |
---|
139 | |
---|
140 | IMAGE_EXPORT(void) write_bmatrix_number_endline0 (byte **m, long i0, long i1, long j0, long j1, char *format, char *filename); |
---|
141 | IMAGE_EXPORT(void) write_i16matrix_number_endline0 (int16 **m, long i0, long i1, long j0, long j1, char *format, char *filename); |
---|
142 | IMAGE_EXPORT(void) write_ui16matrix_number_endline0(uint16 **m, long i0, long i1, long j0, long j1, char *format, char *filename); |
---|
143 | IMAGE_EXPORT(void) write_i32matrix_number_endline0 (int32 **m, long i0, long i1, long j0, long j1, char *format, char *filename); |
---|
144 | IMAGE_EXPORT(void) write_ui32matrix_number_endline0(uint32 **m, long i0, long i1, long j0, long j1, char *format, char *filename); |
---|
145 | IMAGE_EXPORT(void) write_i64matrix_number_endline0 (int64 **m, long i0, long i1, long j0, long j1, char *format, char *filename); |
---|
146 | IMAGE_EXPORT(void) write_imatrix_number_endline0 (int **m, long i0, long i1, long j0, long j1, char *format, char *filename); |
---|
147 | |
---|
148 | /* ------------------------------------- */ |
---|
149 | /* --- write_imatrix_number_endline1 --- */ |
---|
150 | /* ------------------------------------- */ |
---|
151 | |
---|
152 | IMAGE_EXPORT(void) write_bmatrix_number_endline1 (byte **m,long i0, long i1, long j0, long j1, char *format, char *filename); |
---|
153 | IMAGE_EXPORT(void) write_i16matrix_number_endline1 (int16 **m,long i0, long i1, long j0, long j1, char *format, char *filename); |
---|
154 | IMAGE_EXPORT(void) write_ui16matrix_number_endline1(uint16 **m,long i0, long i1, long j0, long j1, char *format, char *filename); |
---|
155 | IMAGE_EXPORT(void) write_i32matrix_number_endline1 (int32 **m,long i0, long i1, long j0, long j1, char *format, char *filename); |
---|
156 | IMAGE_EXPORT(void) write_ui32matrix_number_endline1(uint32 **m,long i0, long i1, long j0, long j1, char *format, char *filename); |
---|
157 | IMAGE_EXPORT(void) write_i64matrix_number_endline1 (int64 **m,long i0, long i1, long j0, long j1, char *format, char *filename); |
---|
158 | IMAGE_EXPORT(void) write_imatrix_number_endline1 (int **m,long i0, long i1, long j0, long j1, char *format, char *filename); |
---|
159 | |
---|
160 | /* ---------------------- */ |
---|
161 | /* -- fwrite_trimatrix -- */ |
---|
162 | /* ---------------------- */ |
---|
163 | |
---|
164 | IMAGE_EXPORT(void) fwrite_btrimatrix (byte **m,long i0,long i1,long j0, long j1, long step, char *filename); |
---|
165 | IMAGE_EXPORT(void) fwrite_i16trimatrix (int16 **m,long i0,long i1,long j0, long j1, long step, char *filename); |
---|
166 | IMAGE_EXPORT(void) fwrite_ui16trimatrix(uint16 **m,long i0,long i1,long j0, long j1, long step, char *filename); |
---|
167 | IMAGE_EXPORT(void) fwrite_i32trimatrix (int32 **m,long i0,long i1,long j0, long j1, long step, char *filename); |
---|
168 | IMAGE_EXPORT(void) fwrite_f32trimatrix (float32 **m,long i0,long i1,long j0, long j1, long step, char *filename); |
---|
169 | IMAGE_EXPORT(void) fwrite_f64trimatrix (float64 **m,long i0,long i1,long j0, long j1, long step, char *filename); |
---|
170 | |
---|
171 | /* --------------------- */ |
---|
172 | /* -- fread_trimatrix -- */ |
---|
173 | /* --------------------- */ |
---|
174 | |
---|
175 | IMAGE_EXPORT(void) fread_btrimatrix (char *filename, byte **m,long i0,long i1,long j0, long j1, long step); |
---|
176 | IMAGE_EXPORT(void) fread_i16trimatrix (char *filename, int16 **m,long i0,long i1,long j0, long j1, long step); |
---|
177 | IMAGE_EXPORT(void) fread_ui16trimatrix(char *filename, uint16 **m,long i0,long i1,long j0, long j1, long step); |
---|
178 | IMAGE_EXPORT(void) fread_itrimatrix (char *filename, int **m,long i0,long i1,long j0, long j1, long step); |
---|
179 | IMAGE_EXPORT(void) fread_i32trimatrix (char *filename, int32 **m,long i0,long i1,long j0, long j1, long step); |
---|
180 | IMAGE_EXPORT(void) fread_f32trimatrix (char *filename, float32 **m,long i0,long i1,long j0, long j1, long step); |
---|
181 | IMAGE_EXPORT(void) fread_f64trimatrix (char *filename, float64 **m,long i0,long i1,long j0, long j1, long step); |
---|
182 | |
---|
183 | #ifdef __cplusplus |
---|
184 | } |
---|
185 | #endif |
---|
186 | |
---|
187 | #endif /* __NRIO2X_H__ */ |
---|