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_COLOUR_CHANNELS, GAN_ALL_CHANNELS } |
Image channel types for extracting individual channels. More... | |
Functions | |
Gan_Image * | gan_image_extract_channel_q (const 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_insert_channel (const Gan_Image *source, Gan_ImageChannelType schannel, Gan_Image *dest, Gan_ImageChannelType dchannel) |
Inserts a specific channel from one image into another. | |
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_Bool | gan_image_get_minimum_channel_value (Gan_Image *image, Gan_Image *mask, Gan_ImageChannelType channel, Gan_Pixel *minval) |
Finds the minimum value in the specified channel of an image. | |
Gan_Bool | gan_image_get_maximum_channel_value (Gan_Image *image, Gan_Image *mask, Gan_ImageChannelType channel, Gan_Pixel *maxval) |
Finds the maximum value in the specified channel of an image. | |
Gan_Image * | gan_image_threshold_channel_q (const Gan_Image *source, const Gan_Image *mask, Gan_ImageChannelType channel, float threshold, Gan_Image *dest) |
Thresholds a channel of an image. | |
Gan_Image * | gan_image_extract_channel_s (const 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_Image * | gan_image_fill_channel_zero (Gan_Image *image, Gan_ImageChannelType channel) |
Macro: Sets a single channel of an image to zero. | |
Gan_Image * | gan_image_threshold_channel_s (const Gan_Image *source, const Gan_Image *mask, Gan_ImageChannelType channel, float threshold) |
Macro: Thresholds a channel of an image. | |
Gan_Bool | gan_image_has_alpha_channel (const Gan_Image *img) |
Returns value indicating whether an image has an alpha channel. |
|
|
Extracts a specific channel from part of an image.
|
|
Macro: Extracts a specific channel from part of an image.
|
|
Sets a single channel of an image to a constant value.
NULL , the channel is filled with zeros.
|
|
Macro: Sets a single channel of an image to zero.
|
|
Finds the maximum value in the specified channel of an image.
|
|
Finds the minimum value in the specified channel of an image.
|
|
Returns value indicating whether an image has an alpha channel.
|
|
Inserts a specific channel from one image into another.
|
|
Thresholds a channel of an image.
|
|
Macro: Thresholds a channel of an image.
This is a macro call to gan_image_threshold_channel_q().
|