summaryrefslogtreecommitdiff
path: root/im/include/im_lib.h
blob: b72b646a618b7b802cf9412a6d2fd479f84b8ba6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
/** \file
 * \brief Library Management and Main Documentation
 *
 * See Copyright Notice in this file.
 */

#ifndef __IM_LIB_H
#define __IM_LIB_H

#if	defined(__cplusplus)
extern "C" {
#endif

      
/** \defgroup lib Library Management
 * \ingroup util 
 * \par
 * Usefull definitions for about dialogs and 
 * for comparing the compiled version with the linked version of the library.
 * \par
 * \verbatim im._AUTHOR [in Lua 5] \endverbatim
 * \verbatim im._COPYRIGHT [in Lua 5] \endverbatim
 * \verbatim im._VERSION [in Lua 5] \endverbatim
 * \verbatim im._VERSION_DATE [in Lua 5] \endverbatim
 * \verbatim im._VERSION_NUMBER [in Lua 5] \endverbatim
 * \verbatim im._DESCRIPTION [in Lua 5] \endverbatim
 * \verbatim im._NAME [in Lua 5] \endverbatim
 * \par
 * See \ref im_lib.h
 * @{
 */
#define IM_AUTHOR "Antonio Scuri"
#define IM_COPYRIGHT "Copyright (C) 1994-2009 Tecgraf, PUC-Rio."
#define IM_VERSION "3.5"      /* bug fixes are reported only by imVersion functions */
#define IM_VERSION_NUMBER 305000
#define IM_VERSION_DATE "2009/10/02"
#define IM_DESCRIPTION "Image Representation, Storage, Capture and Processing"
#define IM_NAME "IM - An Imaging Toolkit"
/** @} */


/** Returns the library current version. Returns the definition IM_VERSION plus the bug fix number.
 *
 * \verbatim im.Version() -> version: string [in Lua 5] \endverbatim
 * \ingroup lib */
const char* imVersion(void);

/** Returns the library current version release date. Returns the definition IM_VERSION_DATE.
 *
 * \verbatim im.VersionDate() -> date: string [in Lua 5] \endverbatim
 * \ingroup lib */
const char* imVersionDate(void);

/** Returns the library current version number. Returns the definition IM_VERSION_NUMBER plus the bug fix number. \n
 * Can be compared in run time with IM_VERSION_NUMBER to compare compiled and linked versions of the library.
 *
 * \verbatim im.VersionNumber() -> version: number [in Lua 5] \endverbatim
 * \ingroup lib */
int imVersionNumber(void);


#if defined(__cplusplus)
}
#endif


/*! \mainpage IM
 * <CENTER>
 * <H3> Image Representation, Storage, Capture and Processing </H3>
 * Tecgraf: Computer Graphics Technology Group, PUC-Rio, Brazil \n
 * http://www.tecgraf.puc-rio.br/im \n
 * mailto:im@tecgraf.puc-rio.br
 * </CENTER>
 *
 * \section over Overview
 * \par
 * IM is a toolkit for Digital Imaging. 
 * \par
 * It provides support for image capture, several image file formats and many image processing operations. 
 * \par
 * Image representation includes scientific data types (like IEEE floating point data) 
 * and attributes (or metadata like GeoTIFF and Exif tags).
 * Animation, video and volumes are supported as image sequences, 
 * but there is no digital audio support.
 * \par
 * The main goal of the library is to provide a simple API and abstraction
 * of images for scientific applications.
 * \par
 * The toolkit API is written in C. 
 * The core library source code is implemented in C++ and it is very portable, 
 * it can be compiled in Windows and UNIX with no modifications. 
 * New image processing operations can be implemented in C or in C++.
 * \par
 * IM is free software, can be used for public and commercial applications.
 * \par
 * This work was developed at Tecgraf/PUC-Rio 
 * by means of the partnership with PETROBRAS/CENPES.
 *
 * \section author Author
 * \par
 * Basic Software Group @ Tecgraf/PUC-Rio
 * - Antonio Scuri scuri@tecgraf.puc-rio.br
 *
 * \section copyright Copyright Notice
\verbatim

****************************************************************************
Copyright (C) 1994-2009 Tecgraf, PUC-Rio.                                
                                                                         
Permission is hereby granted, free of charge, to any person obtaining    
a copy of this software and associated documentation files (the          
"Software"), to deal in the Software without restriction, including      
without limitation the rights to use, copy, modify, merge, publish,      
distribute, sublicense, and/or sell copies of the Software, and to       
permit persons to whom the Software is furnished to do so, subject to    
the following conditions:                                                
                                                                         
The above copyright notice and this permission notice shall be           
included in all copies or substantial portions of the Software.          
                                                                         
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,          
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF       
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.   
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY     
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,     
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE        
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.                   
****************************************************************************
\endverbatim
 */


/** \defgroup imagerep Image Representation
 * \par
 * See \ref im.h
 */


/** \defgroup file Image Storage
 * \par
 * See \ref im.h
 */


/** \defgroup format File Formats
 * \par
 * See \ref im.h
 *
 * Internal Predefined File Formats:
 * \li "BMP" - Windows Device Independent Bitmap
 * \li "PCX" - ZSoft Picture
 * \li "GIF" - Graphics Interchange Format
 * \li "TIFF" - Tagged Image File Format
 * \li "RAS" - Sun Raster File
 * \li "SGI" - Silicon Graphics Image File Format
 * \li "JPEG" - JPEG File Interchange Format
 * \li "LED" - IUP image in LED
 * \li "TGA" - Truevision Targa
 * \li "RAW" - RAW File
 * \li "PNM" - Netpbm Portable Image Map 
 * \li "ICO" - Windows Icon 
 * \li "PNG" - Portable Network Graphic Format 
 *
 * Other Supported File Formats:
 * \li "JP2" - JPEG-2000 JP2 File Format 
 * \li "AVI" - Windows Audio-Video Interleaved RIFF
 * \li "WMV" -  Windows Media Video Format
 *          
 * Some Known Compressions:
 * \li "NONE" - No Compression.
 * \li "RLE"  - Run Lenght Encoding.
 * \li "LZW"  - Lempel, Ziff and Welsh.
 * \li "JPEG" - Join Photographics Experts Group.
 * \li "DEFLATE" - LZ77 variation (ZIP)
 *          
 * \ingroup file */

 
/* Library Names Convention
 *
 *   Global Functions and Types - "im[Object][Action]"  using first capitals (imFileOpen)
 *   Local Functions and Types  -  "i[Object][Action]"  using first capitals (iTIFFGetCompIndex)
 *   Local Static Variables - same as local functions and types (iFormatCount)
 *   Local Static Tables - same as local functions and types with "Table" suffix (iTIFFCompTable)
 *   Variables and Members - no prefix, all lower case (width)
 *   Defines and Enumerations - all capitals (IM_ERR_NONE)
 *
 */


#endif