00001 /* --------------------------------------------------------------------------- 00002 Phission : 00003 Realtime Vision Processing System 00004 00005 Copyright (C) 2003-2006 Philip D.S. Thoren (pthoren@cs.uml.edu) 00006 University of Massachusetts at Lowell, 00007 Laboratory for Artificial Intelligence and Robotics 00008 00009 This file is part of Phission. 00010 00011 Phission is free software; you can redistribute it and/or modify 00012 it under the terms of the GNU Lesser General Public License as published by 00013 the Free Software Foundation; either version 2 of the License, or 00014 (at your option) any later version. 00015 00016 Phission is distributed in the hope that it will be useful, 00017 but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 GNU Lesser General Public License for more details. 00020 00021 You should have received a copy of the GNU Lesser General Public License 00022 along with Phission; if not, write to the Free Software 00023 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00024 00025 ---------------------------------------------------------------------------*/ 00026 /* ---------------------------------------------------------------------------- 00027 * phFilePPM.h -- Portable Pixmap image library 00028 * ---------------------------------------------------------------------------- 00029 * John R. Watson (jwatson@cs.uml.edu) 00030 * 91.549 Robotics II, Vision Project 1 00031 * DUE 11/13/03 00032 * ---------------------------------------------------------------------------- 00033 * This code is part of IPL, and is released under version 2 of the GPL. 00034 * Copyright (c) 2003 John R. Watson. See README and COPYING for more 00035 * information. 00036 * ---------------------------------------------------------------------------- 00037 * This is a libary for reading & writing PPM files 00038 */ 00039 00040 #ifndef _IMAGEPPM_H 00041 #define _IMAGEPPM_H 00042 00043 #include <phStandard.h> 00044 #include <phStdint.h> 00045 00046 #ifdef __cplusplus 00047 extern "C" { 00048 #endif 00049 00064 typedef struct ph_ppm_image_s* phPPM_image; 00065 00071 PHAPI(int) ph_ppm_create_raw ( phPPM_image *ppm, 00072 uint8_t *data, 00073 const int w, 00074 const int h ); 00080 PHAPI(int) ph_ppm_load ( phPPM_image *ppm, 00081 const char *file); 00091 PHAPI(int) ph_ppm_save ( const phPPM_image ppm, 00092 const char *file); 00099 PHAPI(void) ph_ppm_destroy ( phPPM_image *ppm); 00100 00105 PHAPI(int) ph_ppm_get_width ( const phPPM_image ppm); 00110 PHAPI(int) ph_ppm_get_height ( const phPPM_image ppm); 00115 PHAPI(uint8_t) *ph_ppm_get_data ( const phPPM_image ppm); 00116 /* end \addtogroup PPM */ /* end \addtogroup Image_FileFormats */ /* end \addtogroup Image */ 00120 00121 #ifdef __cplusplus 00122 } 00123 #endif 00124 00125 #endif /* _IMAGEPPM_H */
Copyright (C) 2002 - 2007 |
Philip D.S. Thoren ( pthoren@users.sourceforge.net ) University Of Massachusetts at Lowell Robotics Lab |