Main Page   Modules   Compound List   File List   Compound Members   File Members  

image_channel.h File Reference

#include <gandalf/image/image_defs.h>

Go to the source code of this file.

Enumerations

enum  Gan_ImageChannelType {
  GAN_INTENSITY_CHANNEL, GAN_RED_CHANNEL, GAN_GREEN_CHANNEL, GAN_BLUE_CHANNEL,
  GAN_ALPHA_CHANNEL, GAN_X_CHANNEL, GAN_Y_CHANNEL, GAN_Z_CHANNEL,
  GAN_ALL_CHANNELS
}
 Image channel types for extracting individual channels. More...


Functions

Gan_Imagegan_image_extract_channel_q (Gan_Image *source, Gan_ImageChannelType channel, unsigned r0, unsigned c0, unsigned height, unsigned width, Gan_Image *dest)
 Extracts a specific channel from part of an image.

Gan_Bool gan_image_fill_channel_const (Gan_Image *image, Gan_ImageChannelType channel, Gan_Pixel *pixel)
 Sets a single channel of an image to a constant value.

Gan_Imagegan_image_extract_channel_s (Gan_Image *source, Gan_ImageChannelType channel, unsigned r0, unsigned c0, unsigned height, unsigned width)
 Macro: Extracts a specific channel from part of an image.

Gan_Imagegan_image_fill_channel_zero (Gan_Image *image, Gan_ImageChannelType channel)
 Macro: Sets a single channel of an image to zero.


Detailed Description

Module: Extract/fill selected channel(s) of image

Part of: Gandalf Library

Revision: Last edited: Author:

Copyright: (c) 2000 Imagineer Software Limited


Function Documentation

Gan_Image* gan_image_extract_channel_q Gan_Image   source,
Gan_ImageChannelType    channel,
unsigned    r0,
unsigned    c0,
unsigned    height,
unsigned    width,
Gan_Image   dest
 

Extracts a specific channel from part of an image.

Parameters:
source The input image
channel The channel to extract from the image
r0 Vertical offset of start of region
c0 Horizontal offset of start of region
height Height of region in pixels
width Width of region in pixels
dest The destination image
Returns:
A pointer to the extracted image, or NULL on failure.
Extracts a specific channel in a sub-part of an image,

See also:
gan_image_extract_channel_s().

Gan_Bool gan_image_fill_channel_const Gan_Image   image,
Gan_ImageChannelType    channel,
Gan_Pixel   pixel
 

Sets a single channel of an image to a constant value.

Parameters:
image The input image
channel The channel to set to constant value
pixel Pointer to grey-level pixel value
Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Sets a single channel of an image to a constant value. The channel should correspond to one of the available channels in the image. The type of the pixel structure should be the same as the image, and the format should be GAN_GREY_LEVEL_IMAGE. If pixel is passed as NULL, the channel is filled with zeros.

See also:
gan_image_fill_channel_zero().


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