Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

image.H File Reference


Detailed Description

Definitions of global utilities for image processing.

Author:
Gérald Masini
Date:
December 07 2004 17:48
Since:
Qgar 2.2

Definition in file image.H.

Go to the source code of this file.

Namespaces

namespace  qgar

Types related to image processing

enum  qgar::QGEaxis {
  qgar::QGE_AXIS_X,
  qgar::QGE_AXIS_Y
}
 Coordinate axes. More...
enum  qgar::QGEbw {
  qgar::QGE_BW_WHITE,
  qgar::QGE_BW_BLACK
}
 Binary pixel type (black & white). More...
enum  qgar::QGEdirection {
  qgar::QGE_DIRECTION_N,
  qgar::QGE_DIRECTION_NE,
  qgar::QGE_DIRECTION_E,
  qgar::QGE_DIRECTION_SE,
  qgar::QGE_DIRECTION_S,
  qgar::QGE_DIRECTION_SW,
  qgar::QGE_DIRECTION_W,
  qgar::QGE_DIRECTION_NW
}
 The 8 cardinal directions. More...
enum  qgar::QGEorientation {
  qgar::QGE_ORIENTATION_HOR,
  qgar::QGE_ORIENTATION_DIAG_POS,
  qgar::QGE_ORIENTATION_VER,
  qgar::QGE_ORIENTATION_DIAG_NEG,
  qgar::QGE_ORIENTATION_ALL
}
 Orientations (of a line/segment). More...
enum  qgar::QGEposition {
  qgar::QGE_POSITION_TOP,
  qgar::QGE_POSITION_RIGHT,
  qgar::QGE_POSITION_BOTTOM,
  qgar::QGE_POSITION_LEFT
}
 Relative positions. More...

Global functions for black & white.

int qgar::qgBWtoInt (QGEbw aBW)
 Conversion from qgar::QGEbw (black & white) to integer. Return 1 for qgar::QGE_BW_BLACK,.
int qgar::qgBWrevInt (QGEbw aBW)
 Dual-conversion from qgar::QGEbw (black & white) to integer.
QGEbw qgar::qgIntToBW (int anInt)
 Conversion from integer to qgar::QGEbw (black & white).
QGEbw qgar::qgIntToWB (int anInt)
 Dual-conversion from integer to qgar::QGEbw (black & white).
QGEbw qgar::qgBWswitch (QGEbw aBW)
 Switch between black and white.

Global functions for directions

  (0,0) +--------------------------------------------->  X
        |
        |                 QGE_DIRECTION_N
        |                        |  
        |     QGE_DIRECTION_NW \ | / QGE_DIRECTION_NE
        |                       \|/
        |   QGE_DIRECTION_W -----+----- QGE_DIRECTION_E
        |                       /|\
        |     QGE_DIRECTION_SW / | \ QGE_DIRECTION_SE
        |                        |
        |                 QGE_DIRECTION_S
     Y  V


QGEdirection qgar::qgDirection (int aDx, int aDy) throw (QgarErrorDomain)
 Return the direction corresponding to a (X,Y) translation.
qgar::QGEdirection qgar::qgOpposite (qgar::QGEdirection aDir) throw (qgar::QgarErrorInvalidArg)
 Return the opposite direction of a given direction.