Header Header

gximgext.h File Reference


Detailed Description

Extended image handling interface

The GX is the base system for the majority of the Adaptive Recognition products. It is a collection of loadable modules and library functions and gives an easy to program interface to the hardware devices.

This file contains the descriptions of classes and functions of the image handling module with extended image manipulating functions that are not used in the normal image operations.

Go to the source code of this file.

Enumerations

enum  GX_COLORADJUST_FLAGS {
  GX_COLORADJUST_BRIGHTNESS_BASIC = 1,
  GX_COLORADJUST_BRIGHTNESS_ADVANCED = 2,
  GX_COLORADJUST_CONTRAST_BASIC = 4,
  GX_COLORADJUST_CONTRAST_ADVANCED = 8
}
 Flags for color adjust functions. More...
enum  GX_COMPOSE_FLAGS {
  GX_COMPOSE_DONT_ENLARGE_IMAGE = 0x01,
  GX_COMPOSE_ENLARGE_IMAGE = 0x02,
  GX_COMPOSE_ALPHA = 0x04,
  GX_COMPOSE_WEIGHTING = 0x08
}
 Flags for image compose functions. More...
enum  GX_TEXT_FLAGS {
  GX_TEXT_ITALIC = 0x01,
  GX_TEXT_STRAIGHT = 0x02,
  GX_TEXT_BOLD = 0x10,
  GX_TEXT_NORMAL = 0x20,
  GX_TEXT_THIN = 0x30
}
 Flags for text draw functions. More...

Functions

static int gx_coloradjust (gxHANDLE imgexthandle, gxIMAGE *image, float contrast, float brightness, float saturation, float gamma, int flags)
 Makes contrast, brightness, saturation and gamma correction on the image.
static int gx_colormixer (gxHANDLE imgexthandle, gxIMAGE *target, gxIMAGE *source, int r1, int g1, int b1, int r2, int g2, int b2, int r3, int g3, int b3)
 Changes the colors of the source image based on the weight parameters.
static int gx_imagedifference (gxHANDLE imgexthandle, gxIMAGE *target, gxIMAGE *source1, gxIMAGE *source2)
 Generates a differential image from two images.
static int gx_imagetransform (gxHANDLE imgexthandle, gxIMAGE *target, gxIMAGE *source, gxPG4 area, void *bgcolor)
 Transforms a general area from the source image in the target image.
static int gx_imageftransform (gxHANDLE imgexthandle, gxIMAGE *target, gxIMAGE *source, gxTRAFO *trafo, void *bgcolor)
 Fine transforms an image with the transformation described by the trafo.
static int gx_imagecompose (gxHANDLE imgexthandle, gxIMAGE *target, gxIMAGE *upper, gxIMAGE *lower, gxPNT position, float alpha_u, float alpha_l, int flags, void *bgcolor)
 Composes two images.
static int gx_drawtext (gxHANDLE imgexthandle, gxIMAGE *image, const char *text, gxPNT position, const char *fonttype, int fontheight, int fontwidth, void *txtcolor, unsigned int flags)
 Draw text on an image.


Enumeration Type Documentation

Flags for color adjust functions.

Enumerator:
GX_COLORADJUST_BRIGHTNESS_BASIC  Basic brightness manipulating method.
GX_COLORADJUST_BRIGHTNESS_ADVANCED  Advanced brightness manipulating method.
GX_COLORADJUST_CONTRAST_BASIC  Basic contrast manipulating method.
GX_COLORADJUST_CONTRAST_ADVANCED  Advanced contrast manipulating method.

Flags for image compose functions.

Enumerator:
GX_COMPOSE_DONT_ENLARGE_IMAGE  Do not enlarge image if the upper image is larger the the other.

GX_COMPOSE_ENLARGE_IMAGE  Enlarge image if the upper image is larger the the other.

GX_COMPOSE_ALPHA  Basic composing when one image is over the other one, and alpha chanel is defined.

GX_COMPOSE_WEIGHTING  Weighting of two images.

Flags for text draw functions.

Enumerator:
GX_TEXT_ITALIC  The characters of the text are italic.

GX_TEXT_STRAIGHT  The characters of the text are straight.

GX_TEXT_BOLD  The characters of the text are bold.

GX_TEXT_NORMAL  The characters of the text are normal.

GX_TEXT_THIN  The characters of the text are thin.


Generated  for GX
(c) Adaptive Recognition