Main Page   Modules   Compound List   File List   Compound Members   File Members  

image_channel.h

Go to the documentation of this file.
00001 
00014 /* This library is free software; you can redistribute it and/or
00015    modify it under the terms of the GNU Lesser General Public
00016    License as published by the Free Software Foundation; either
00017    version 2.1 of the License, or (at your option) any later version.
00018 
00019    This library is distributed in the hope that it will be useful,
00020    but WITHOUT ANY WARRANTY; without even the implied warranty of
00021    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00022    Lesser General Public License for more details.
00023 
00024    You should have received a copy of the GNU Lesser General Public
00025    License along with this library; if not, write to the Free Software
00026    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00027 */
00028 
00029 #ifndef _GAN_IMAGE_CHANNEL_H
00030 #define _GAN_IMAGE_CHANNEL_H
00031 
00032 #include <gandalf/image/image_defs.h>
00033 
00034 #ifdef __cplusplus
00035 extern "C" {
00036 #endif
00037 
00051 typedef enum
00052 {
00054    GAN_INTENSITY_CHANNEL,
00055 
00057    GAN_RED_CHANNEL, GAN_GREEN_CHANNEL, GAN_BLUE_CHANNEL,
00058 
00060    GAN_ALPHA_CHANNEL,
00061 
00063    GAN_X_CHANNEL,
00064 
00066    GAN_Y_CHANNEL,
00067 
00069    GAN_Z_CHANNEL,
00070 
00072    GAN_ALL_CHANNELS
00073 } Gan_ImageChannelType;
00074 
00075 Gan_Image *gan_image_extract_channel_q ( Gan_Image *source,
00076                                          Gan_ImageChannelType channel,
00077                                          unsigned r0,     unsigned c0,
00078                                          unsigned height, unsigned width,
00079                                          Gan_Image *dest );
00080 Gan_Bool gan_image_fill_channel_const ( Gan_Image *image,
00081                                         Gan_ImageChannelType channel,
00082                                         Gan_Pixel *pixel );
00083 
00099 Gan_Image *gan_image_extract_channel_s ( Gan_Image *source,
00100                                          Gan_ImageChannelType channel,
00101                                          unsigned r0,     unsigned c0,
00102                                          unsigned height, unsigned width );
00103 
00115 Gan_Image *gan_image_fill_channel_zero ( Gan_Image *image,
00116                                          Gan_ImageChannelType channel );
00117 
00126 #ifdef __cplusplus
00127 }
00128 #endif
00129 
00130 #endif /* #ifndef _GAN_IMAGE_CHANNEL_H */

Generated on Mon Oct 13 16:14:32 2003 by doxygen1.3-rc1