#include <gandalf/image/image_bit.h>
#include <string.h>
#include <gandalf/image/image_defs.h>
#include <gandalf/common/array.h>
#include <gandalf/common/allocate.h>
#include <gandalf/common/misc_error.h>
Defines | |
#define | GAN_PIXEL Gan_BitWord |
#define | GAN_PIXEL_FORMAT grey-level |
#define | GAN_PIXEL_TYPE Gan_Bool |
#define | GAN_PIXTYPE GAN_BOOL |
#define | GAN_IMTYPE b |
#define | GAN_IMAGE_FORM_GEN gan_image_form_gen_b |
#define | GAN_IMAGE_SET_GEN gan_image_set_gen_b |
#define | GAN_IMAGE_ALLOC gan_image_alloc_b |
#define | GAN_IMAGE_ALLOC_DATA gan_image_alloc_data_b |
#define | GAN_IMAGE_FORM gan_image_form_b |
#define | GAN_IMAGE_FORM_DATA gan_image_form_data_b |
#define | GAN_IMAGE_SET gan_image_set_b |
#define | GAN_IMAGE_SET_PIX gan_image_set_pix_b |
#define | GAN_IMAGE_GET_PIX gan_image_get_pix_b |
#define | GAN_IMAGE_FILL_CONST gan_image_fill_const_b |
#define | GAN_IMAGE_GET_ACTIVE_SUBWINDOW gan_image_get_active_subwindow_b |
#define | GAN_IMAGE_MASK_WINDOW gan_image_mask_window_b |
#define | GAN_IMAGE_CLEAR_WINDOW gan_image_clear_window_b |
#define | GAN_IMAGE_PIXEL_ZERO_VAL GAN_FALSE |
#define | GAN_FILL_ARRAY gan_fill_array_b |
#define | GAN_COPY_ARRAY gan_copy_array_b |
#define | GAN_BITMAP |
#define | GAN_PIXFMT GAN_GREY_LEVEL_IMAGE |
#define | GAN_IMFMT gl |
Functions | |
Gan_Image * | gan_image_set_gen_b (Gan_Image *img, unsigned long height, unsigned long width, unsigned long stride, Gan_Bool alloc_pix_data) |
Set format, type, dimension and stride attributes of an image. | |
Gan_Image * | gan_image_form_gen_b (Gan_Image *img, unsigned long height, unsigned long width, unsigned long stride, Gan_Bool alloc_pix_data, Gan_BitWord *pix_data, size_t pix_data_size, Gan_BitWord **row_data, size_t row_data_size) |
Form an image with specific format, type, dimensions and stride. | |
Gan_Bool | gan_image_get_active_subwindow_b (const Gan_Image *image, Gan_Alignment alignment, Gan_ImageWindow *subwin) |
Computes bounding box of non-zero pixels in binary image. | |
Gan_Bool | gan_image_mask_window_b (Gan_Image *img, unsigned r0, unsigned c0, unsigned height, unsigned width) |
Clear binary image except in specified rectangular region. | |
Gan_Bool | gan_image_clear_window_b (Gan_Image *img, unsigned r0, unsigned c0, unsigned height, unsigned width) |
Clear binary image in specified rectangular region. | |
Gan_Bool | gan_image_bit_get_pix_4group (const Gan_Image *image, unsigned row, unsigned col) |
Test local group of four binary pixels. | |
Gan_Bool | gan_image_bit_get_pix_5group (const Gan_Image *image, unsigned row, unsigned col) |
Test local group of five binary pixels. | |
Gan_Bool | gan_image_bit_get_pix_9group (const Gan_Image *image, unsigned row, unsigned col) |
Test local group of nine binary pixels. | |
Gan_Bool | gan_image_bit_get_pix_3group_horiz (const Gan_Image *image, unsigned row, unsigned col) |
Test local group of three binary pixels in a row. | |
Gan_Bool | gan_image_bit_get_pix_3group_vert (const Gan_Image *image, unsigned row, unsigned col) |
Test local group of three binary pixels in a column. | |
int | gan_image_get_pixel_count_b (const Gan_Image *image, Gan_Bool val, const Gan_ImageWindow *psubwin) |
Returns number of pixels set or unset in the given binary image. | |
Gan_Image * | gan_image_bit_invert_q (Gan_Image *image, Gan_Image *result_image) |
Invert binary image. | |
Gan_Image * | gan_image_bit_and_q (Gan_Image *image1, Gan_Image *image2, Gan_Image *result) |
Binary AND of all pixels in a binary image. | |
Gan_Image * | gan_image_bit_nand_q (Gan_Image *image1, Gan_Image *image2, Gan_Image *result) |
Binary NAND of all pixels in a binary image. | |
Gan_Image * | gan_image_bit_or_q (Gan_Image *image1, Gan_Image *image2, Gan_Image *result) |
Binary OR of all pixels in a binary image. | |
Gan_Image * | gan_image_bit_eor_q (Gan_Image *image1, Gan_Image *image2, Gan_Image *result) |
Binary EOR of all pixels in a binary image. | |
Gan_Image * | gan_image_bit_andnot_q (Gan_Image *image1, Gan_Image *image2, Gan_Image *result) |
Binary AND-NOT of all pixels in a binary image. | |
Gan_Bool | gan_image_bit_fill_row (Gan_Image *image, unsigned y, unsigned x, unsigned width, Gan_Bool pix) |
Fill part of a row of a binary image. | |
Gan_Bool | gan_image_bit_invert_row (Gan_Image *image, unsigned y, unsigned x, unsigned width) |
Invert part of a row of a binary image. | |
Gan_Bool | gan_image_bit_dilate_horiz (Gan_Image *image, int no_pixels, Gan_Image *restrict_mask) |
Dilate binary image horizontally. | |
Gan_Bool | gan_image_bit_dilate_vert (Gan_Image *image, int no_pixels, Gan_Image *restrict_mask) |
Dilate binary image vertically. | |
Gan_Bool | gan_image_bit_shift (const Gan_Image *image, int vshift, int hshift, Gan_Image *result_image) |
Shift binary image horizontally and vertically. |
Part of: Gandalf Library