Mamba C API reference

Version 2.0

MB_Image.h
Go to the documentation of this file.
1 
2 /*
3  * Copyright (c) <2014>, <Nicolas BEUCHER and ARMINES for the Centre de
4  * Morphologie Mathématique(CMM), common research center to ARMINES and MINES
5  * Paristech>
6  *
7  * Permission is hereby granted, free of charge, to any person
8  * obtaining a copy of this software and associated documentation files
9  * (the "Software"), to deal in the Software without restriction, including
10  * without limitation the rights to use, copy, modify, merge, publish,
11  * distribute, sublicense, and/or sell copies of the Software, and to permit
12  * persons to whom the Software is furnished to do so, subject to the following
13  * conditions: The above copyright notice and this permission notice shall be
14  * included in all copies or substantial portions of the Software.
15  *
16  * Except as contained in this notice, the names of the above copyright
17  * holders shall not be used in advertising or otherwise to promote the sale,
18  * use or other dealings in this Software without their prior written
19  * authorization.
20  *
21  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
27  * THE SOFTWARE.
28  */
29 
30 #ifndef __MB_Image_H
31 #define __MB_Image_H
32 
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36 
48 extern MB_API_ENTRY MB_errcode MB_API_CALL
49 MB_Create(MB_Image *image, Uint32 width, Uint32 height, Uint32 depth);
55 extern MB_API_ENTRY MB_errcode MB_API_CALL
56 MB_Destroy(MB_Image *image);
60 extern MB_API_ENTRY Uint32 MB_API_CALL
61 MB_getImageCounter(void);
69 extern MB_API_ENTRY MB_errcode MB_API_CALL
70 MB_Load(MB_Image *image, PIX8 *indata, Uint32 len);
79 extern MB_API_ENTRY MB_errcode MB_API_CALL
80 MB_Extract(MB_Image *image, PIX8 **outdata, Uint32 *len);
88 extern MB_API_ENTRY MB_errcode MB_API_CALL
89 MB_Convert(MB_Image *src, MB_Image *dest);
97 extern MB_API_ENTRY MB_errcode MB_API_CALL
98 MB_Copy(MB_Image *src, MB_Image *dest);
107 extern MB_API_ENTRY MB_errcode MB_API_CALL
108 MB_CopyLine(MB_Image *src, MB_Image *dest, Uint32 insrc_pos, Uint32 indest_pos);
127 extern MB_API_ENTRY MB_errcode MB_API_CALL
128 MB_CropCopy(MB_Image *src, Uint32 x_src, Uint32 y_src,
129  MB_Image *dest, Uint32 x_dest, Uint32 y_dest,
130  Uint32 w, Uint32 h);
139 extern MB_API_ENTRY MB_errcode MB_API_CALL
140 MB_PutPixel(MB_Image *dest, Uint32 pixVal, Uint32 x, Uint32 y);
149 extern MB_API_ENTRY MB_errcode MB_API_CALL
150 MB_GetPixel(MB_Image *src, Uint32 *pixVal, Uint32 x, Uint32 y);
151 
159 extern MB_API_ENTRY MB_errcode MB_API_CALL
160 MB3D_Create(MB3D_Image *image, Uint32 length);
168 extern MB_API_ENTRY MB_errcode MB_API_CALL
169 MB3D_Stack(MB3D_Image *image, MB_Image *stacked, Uint32 position);
175 extern MB_API_ENTRY MB_errcode MB_API_CALL
176 MB3D_Destroy(MB3D_Image *image);
184 extern MB_API_ENTRY MB_errcode MB_API_CALL
185 MB3D_Convert(MB3D_Image *src, MB3D_Image *dest);
186 
187 #ifdef __cplusplus
188 }
189 #endif
190 
191 #endif /* __MB_Image_H */
192 
uint8_t PIX8
Definition: MB_Common.h:106
MB_API_ENTRY MB_errcode MB_API_CALL MB_Copy(MB_Image *src, MB_Image *dest)
uint32_t Uint32
Definition: MB_Common.h:93
MB_API_ENTRY MB_errcode MB_API_CALL MB3D_Create(MB3D_Image *image, Uint32 length)
MB_API_ENTRY MB_errcode MB_API_CALL MB_Convert(MB_Image *src, MB_Image *dest)
MB_API_ENTRY MB_errcode MB_API_CALL MB_Destroy(MB_Image *image)
MB_API_ENTRY Uint32 MB_API_CALL MB_getImageCounter(void)
MB_API_ENTRY MB_errcode MB_API_CALL MB_GetPixel(MB_Image *src, Uint32 *pixVal, Uint32 x, Uint32 y)
Definition: MB_Common.h:130
MB_API_ENTRY MB_errcode MB_API_CALL MB3D_Destroy(MB3D_Image *image)
Definition: MB_Common.h:116
MB_API_ENTRY MB_errcode MB_API_CALL MB_CropCopy(MB_Image *src, Uint32 x_src, Uint32 y_src, MB_Image *dest, Uint32 x_dest, Uint32 y_dest, Uint32 w, Uint32 h)
MB_API_ENTRY MB_errcode MB_API_CALL MB_Extract(MB_Image *image, PIX8 **outdata, Uint32 *len)
MB_API_ENTRY MB_errcode MB_API_CALL MB_Create(MB_Image *image, Uint32 width, Uint32 height, Uint32 depth)
MB_API_ENTRY MB_errcode MB_API_CALL MB3D_Convert(MB3D_Image *src, MB3D_Image *dest)
MB_errcode
Definition: MB_Error.h:37
MB_API_ENTRY MB_errcode MB_API_CALL MB_CopyLine(MB_Image *src, MB_Image *dest, Uint32 insrc_pos, Uint32 indest_pos)
MB_API_ENTRY MB_errcode MB_API_CALL MB_PutPixel(MB_Image *dest, Uint32 pixVal, Uint32 x, Uint32 y)
MB_API_ENTRY MB_errcode MB_API_CALL MB_Load(MB_Image *image, PIX8 *indata, Uint32 len)
MB_API_ENTRY MB_errcode MB_API_CALL MB3D_Stack(MB3D_Image *image, MB_Image *stacked, Uint32 position)