image_u8x4.h
Go to the documentation of this file.
1 /* Copyright (C) 2013-2016, The Regents of The University of Michigan.
2 All rights reserved.
3 
4 This software was developed in the APRIL Robotics Lab under the
5 direction of Edwin Olson, ebolson@umich.edu. This software may be
6 available under alternative licensing terms; contact the address above.
7 
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12 
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17 
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, see <http://www.gnu.org/licenses/>.
20 */
21 
22 #ifndef _IMAGE_U8X4_H
23 #define _IMAGE_U8X4_H
24 
25 #include <stdint.h>
26 #include "common/image_types.h"
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
32 
34 // IMPORTANT NOTE ON BYTE ORDER
35 //
36 // Format conversion routines will (unless otherwise specified) assume
37 // R, G, B, A ordering of bytes.
38 //
40 
41 // Create or load an image. returns NULL on failure
42 image_u8x4_t *image_u8x4_create(unsigned int width, unsigned int height);
43 image_u8x4_t *image_u8x4_create_alignment(unsigned int width, unsigned int height, unsigned int alignment);
44 image_u8x4_t *image_u8x4_create_from_pnm(const char *path);
45 
47 
49 
50 // Write a pnm. Return 0 on success.
51 // Currently supports GRAY and RGB
52 int image_u8x4_write_pnm(const image_u8x4_t *im, const char *path);
53 
54 image_u8x4_t *image_u8x4_create_from_pam(const char *path);
55 
56  void image_u8x4_write_pam(const image_u8x4_t *im, const char *path);
57 
58 #ifdef __cplusplus
59 }
60 #endif
61 
62 #endif
void image_u8x4_write_pam(const image_u8x4_t *im, const char *path)
Definition: image_u8x4.c:211
image_u8x4_t * image_u8x4_create(unsigned int width, unsigned int height)
Definition: image_u8x4.c:35
int image_u8x4_write_pnm(const image_u8x4_t *im, const char *path)
Definition: image_u8x4.c:175
image_u8x4_t * image_u8x4_create_alignment(unsigned int width, unsigned int height, unsigned int alignment)
Definition: image_u8x4.c:40
void image_u8x4_destroy(image_u8x4_t *im)
Definition: image_u8x4.c:70
image_u8x4_t * image_u8x4_create_from_pam(const char *path)
Definition: image_u8x4.c:80
image_u8x4_t * image_u8x4_create_from_pnm(const char *path)
Definition: image_u8x4.c:117
image_u8x4_t * image_u8x4_copy(const image_u8x4_t *in)
Definition: image_u8x4.c:57


apriltags2
Author(s): Danylo Malyuta
autogenerated on Fri Oct 19 2018 04:02:32