Main Page   Modules   Compound List   File List   Compound Members   File Members  

Extract a Part of an Image
[Image Package]


Functions

Gan_Bool gan_image_get_active_subwindow_b (Gan_Image *image, Gan_Alignment alignment, Gan_ImageWindow *subwin)
 Computes bounding box of non-zero pixels in binary image.

Gan_Imagegan_image_extract_q (Gan_Image *source, int r0, int c0, unsigned height, unsigned width, Gan_ImageFormat format, Gan_Type type, Gan_Bool copy_pixels, Gan_Image *dest)
 Extracts part of an image.

Gan_Imagegan_image_extract_s (Gan_Image *source, int r0, int c0, unsigned height, unsigned width, Gan_ImageFormat format, Gan_Type type, Gan_Bool copy_pixels)
 Macro: Extracts part of an image.

Gan_Imagegan_image_convert_q (Gan_Image *source, Gan_ImageFormat format, Gan_Type type, Gan_Image *dest)
 Macro: Converts an image from one format/type to another.

Gan_Imagegan_image_convert_s (Gan_Image *source, Gan_ImageFormat format, Gan_Type type)
 Macro: Converts an image from one format/type to another.

Gan_Bool gan_image_get_active_subwindow_gl_d (Gan_Image *image, Gan_ImageWindow *subwin)
 Computes bounding box of non-zero pixels in grey-level image.

Gan_Bool gan_image_get_active_subwindow_gl_f (Gan_Image *image, Gan_ImageWindow *subwin)
 Computes bounding box of non-zero pixels in grey-level image.

Gan_Bool gan_image_get_active_subwindow_gl_i (Gan_Image *image, Gan_ImageWindow *subwin)
 Computes bounding box of non-zero pixels in grey-level image.

Gan_Bool gan_image_get_active_subwindow_gl_s (Gan_Image *image, Gan_ImageWindow *subwin)
 Computes bounding box of non-zero pixels in grey-level image.

Gan_Bool gan_image_get_active_subwindow_gl_uc (Gan_Image *image, Gan_ImageWindow *subwin)
 Computes bounding box of non-zero pixels in grey-level image.

Gan_Bool gan_image_get_active_subwindow_gl_ui (Gan_Image *image, Gan_ImageWindow *subwin)
 Computes bounding box of non-zero pixels in grey-level image.

Gan_Bool gan_image_get_active_subwindow_gl_us (Gan_Image *image, Gan_ImageWindow *subwin)
 Computes bounding box of non-zero pixels in grey-level image.

Gan_Bool gan_image_get_active_subwindow_p (Gan_Image *image, Gan_ImageWindow *subwin)
 Computes bounding box of non-zero pixels in grey-level image.


Function Documentation

Gan_Image* gan_image_convert_q Gan_Image   source,
Gan_ImageFormat    format,
Gan_Type    type,
Gan_Image   dest
 

Macro: Converts an image from one format/type to another.

Parameters:
source The input image
format The format of the output image
type The type of the output image
dest Destination image
Returns:
Pointer to the converted image, or NULL on failure.
Applies the relevant pixel-by-pixel conversion to convert an image from one format/type to another. This is a macro call to gan_image_extract_q().

See also:
gan_image_convert_s().

Gan_Image* gan_image_convert_s Gan_Image   source,
Gan_ImageFormat    format,
Gan_Type    type
 

Macro: Converts an image from one format/type to another.

Parameters:
source The input image
format The format of the output image
type The type of the output image
Returns:
Pointer to the converted image, or NULL on failure.
Applies the relevant pixel-by-pixel conversion to convert an image from one format/type to another. This is a macro call to gan_image_convert_q().

See also:
gan_image_convert_q().

Gan_Image* gan_image_extract_q Gan_Image   source,
int    r0,
int    c0,
unsigned    height,
unsigned    width,
Gan_ImageFormat    format,
Gan_Type    type,
Gan_Bool    copy_pixels,
Gan_Image   dest
 

Extracts part of an image.

Parameters:
source The input 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
format The format of the output image
type The type of the output image
copy_pixels Whether to copy the pixels from the source image
dest Destination image
Returns:
Pointer to the extracted/converted image, or NULL on failure.
Extracts a sub-part of an image, converting the image to a different format and type if desired. If the copy_pixels flag is set to GAN_TRUE, the pixel data is copied into the destination image; otherwise the destination image is set to point into the source image.

See also:
gan_image_extract_s().

Gan_Image* gan_image_extract_s Gan_Image   source,
int    r0,
int    c0,
unsigned    height,
unsigned    width,
Gan_ImageFormat    format,
Gan_Type    type,
Gan_Bool    copy_pixels
 

Macro: Extracts part of an image.

Parameters:
source The input 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
format The format of the output image
type The type of the output image
copy_pixels Whether to copy the pixels from the source image
Returns:
Pointer to the extracted/converted image, or NULL on failure.
Extracts a sub-part of an image, converting the image to a different format and type if desired. This is a macro call to gan_image_extract_q().

See also:
gan_image_extract_q().

Gan_Bool gan_image_get_active_subwindow_b Gan_Image   image,
Gan_Alignment    alignment,
Gan_ImageWindow   subwin
 

Computes bounding box of non-zero pixels in binary image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Computes image window which covers all bits in the binary image which have the value one (true). The value of the c0 and width fields of subwin will be provided with precision indicated by the given alignment, one of word, byte or bit alignment, the last being the slowest to compute. If image is zero everywhere the fields of the subwin structure will be set to zero.

Gan_Bool gan_image_get_active_subwindow_gl_d Gan_Image   image,
Gan_ImageWindow   subwin
 

Computes bounding box of non-zero pixels in grey-level image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Computes image window which covers all pixels in given grey-level image which are non-zero. If image is zero everywhere the fields of the subwin structure will be set to zero.

Gan_Bool gan_image_get_active_subwindow_gl_f Gan_Image   image,
Gan_ImageWindow   subwin
 

Computes bounding box of non-zero pixels in grey-level image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Computes image window which covers all pixels in given grey-level image which are non-zero. If image is zero everywhere the fields of the subwin structure will be set to zero.

Gan_Bool gan_image_get_active_subwindow_gl_i Gan_Image   image,
Gan_ImageWindow   subwin
 

Computes bounding box of non-zero pixels in grey-level image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Computes image window which covers all pixels in given grey-level image which are non-zero. If image is zero everywhere the fields of the subwin structure will be set to zero.

Gan_Bool gan_image_get_active_subwindow_gl_s Gan_Image   image,
Gan_ImageWindow   subwin
 

Computes bounding box of non-zero pixels in grey-level image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Computes image window which covers all pixels in given grey-level image which are non-zero. If image is zero everywhere the fields of the subwin structure will be set to zero.

Gan_Bool gan_image_get_active_subwindow_gl_uc Gan_Image   image,
Gan_ImageWindow   subwin
 

Computes bounding box of non-zero pixels in grey-level image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Computes image window which covers all pixels in given grey-level image which are non-zero. If image is zero everywhere the fields of the subwin structure will be set to zero.

Gan_Bool gan_image_get_active_subwindow_gl_ui Gan_Image   image,
Gan_ImageWindow   subwin
 

Computes bounding box of non-zero pixels in grey-level image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Computes image window which covers all pixels in given grey-level image which are non-zero. If image is zero everywhere the fields of the subwin structure will be set to zero.

Gan_Bool gan_image_get_active_subwindow_gl_us Gan_Image   image,
Gan_ImageWindow   subwin
 

Computes bounding box of non-zero pixels in grey-level image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Computes image window which covers all pixels in given grey-level image which are non-zero. If image is zero everywhere the fields of the subwin structure will be set to zero.

Gan_Bool gan_image_get_active_subwindow_p Gan_Image   image,
Gan_ImageWindow   subwin
 

Computes bounding box of non-zero pixels in grey-level image.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
Computes image window which covers all pixels in given grey-level image which are non-zero. If image is zero everywhere the fields of the subwin structure will be set to zero.


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