Classes | |
struct | Gan_ImagePyramid |
Structure to hold image and mask at a single pyramid level. More... | |
Typedefs | |
typedef Gan_ImagePyramid | Gan_ImagePyramid |
Structure to hold image and mask at a single pyramid level. | |
typedef enum Gan_ImagePyramidAverage | Gan_ImagePyramidAverage |
Type of averaging used when combining four pixels into one. | |
Enumerations | |
enum | Gan_ImagePyramidAverage { GAN_AVERAGE_ALL, GAN_AVERAGE_IN_MASK } |
Type of averaging used when combining four pixels into one. More... | |
Functions | |
Gan_Image * | gan_image_halve_size (Gan_Image *image, Gan_Image *himage) |
Halve the size of an image. | |
Gan_Bool | gan_image_pyramid_build_preallocated (Gan_Image *img, Gan_Image *mask, unsigned no_levels, Gan_ImagePyramidAverage average_type, unsigned no_neighbours, Gan_Image **imgarray, Gan_Image **maskarray, Gan_ImagePyramid **pyramid) |
Builds an image pyramid.using preallocated image buffers passed in. | |
void | gan_image_pyramid_free (Gan_ImagePyramid *pyramid, unsigned no_levels, Gan_Bool free_top_level) |
Frees an image pyramid. | |
Gan_Bool | gan_image_pyramid_build (Gan_Image *img, Gan_Image *mask, unsigned no_levels, Gan_ImagePyramidAverage average_type, unsigned no_neighbours, Gan_ImagePyramid **pyramid) |
Macro: Builds an image pyramid. |
|
Type of averaging used when combining four pixels into one.
|
|
Halve the size of an image.
|
|
Macro: Builds an image pyramid.
NULL , the pyramid is built without masks, i.e. assuming that all the pixels are valid.no_neighbours is the least number of number of pixels in any four-pixel neighbourhood of mask pixels needed to be one in order for the lower resolution mask to be set to one. This is a macro call to gan_image_pyramid_build_preallocated().
|
|
Builds an image pyramid.using preallocated image buffers passed in.
NULL , the pyramid is built without masks, i.e. assuming that all the pixels are valid.no_neighbours is the least number of number of pixels in any four-pixel neighbourhood of mask pixels needed to be one in order for the lower resolution mask to be set to one.
|
|
Frees an image pyramid.
|