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

qgar::LinDilatedImage Class Reference
[Mathematical Morphology]

#include <qgarlib/LinDilatedImage.H>

Inheritance diagram for qgar::LinDilatedImage:

qgar::GenImage< unsigned char > qgar::GenImage_NoCheck< unsigned char > List of all members.

Detailed Description

Grey-level image dilated using a segment.

The length of the segment is 2 * aDilSize + 1. The algorithm is derived from [van Herk, 1992].

Author:
Mathieu Baeumler
Date:
August 5, 2002 16:52
Since:
Qgar 2.0

Definition at line 76 of file LinDilatedImage.H.

Public Types

Types
typedef GreyLevelImage::value_type value_type
 Type of the elements stored in the pixel map.
typedef value_typereference
 Reference to qgar::LinDilatedImage::value_type.
typedef const value_typeconst_reference
 Constant reference to qgar::LinDilatedImage::value_type.
typedef value_typepointer
 Pointer to qgar::LinDilatedImage::value_type.
typedef const value_typeconst_pointer
 Constant pointer to qgar::LinDilatedImage::value_type.

Public Member Functions

 GenImage ()
 Default constructor.
 GenImage (unsigned int aWidth, unsigned int aHeight)
 Initialize with given width and height.
 GenImage (unsigned int aWidth, unsigned int aHeight, pointer aPtPixMap) throw (QgarErrorInvalidArg)
 Initialize from a pixmap.
 GenImage (const GenImage &anImg)
 Copy constructor.
 GenImage (const GenImage< value_type, OtherCheckPolicy > &anImg)
 Conversion of an image of the same type, using policies.
 GenImage (const GenImage< U, UCheckPolicy > &anImg)
 Initialize from an image with pixels of a type different from T.
 GenImage (const GenImage< value_type, OtherCheckPolicy > &anImg, const BoundingBox &aBox, value_type aPixVal=static_cast< value_type >(0))
 Initialize by copying a rectangular area, defined by a bounding box, of a given image.
 GenImage (const GenImage< value_type, OtherCheckPolicy > &anImg, unsigned int aXTopLeft, unsigned int aYTopLeft, unsigned int aXBottomRight, unsigned int aYBottomRight, value_type aPixVal=static_cast< value_type >(0))
 Initialize by copying a rectangular area, defined by the coordinates of its top left and bottom right corners, of a given image.
 GenImage (AbstractPbmPlusFile &aPbmPlusFile)
 Initialize with an image in a PBM+ file.
int width () const
 Get the image width.
int height () const
 Get the image height.
int bytesPerPixel () const
 Get the number of bytes per pixel.
value_type pixel (unsigned int aX, unsigned int aY) const
 Get a pixel value.
void row (unsigned int aRowIdx, pointer aRow) const
 Get a row of pixels.
void column (unsigned int aColIdx, pointer aCol) const
 Get a column of pixels.
pointer pPixel (unsigned int aRowIdx, unsigned int aColIdx) const
 Get a pointer on a given pixel of the image.
pointer pRow (unsigned int aRowIdx) const
 Get a pointer on a row of pixels.
pointer pColumn (unsigned int aColIdx) const
 Get a pointer on a column of pixels.
pointer pPixMap () const
 Get the pointer to the pixel map.
void setPixel (unsigned int aX, unsigned int aY, value_type aPixVal)
 Set a pixel value.
void setRow (unsigned int aRowIdx, const_pointer const aRow)
 Set a given row of pixels.
void setColumn (unsigned int aColIdx, const_pointer const aCol)
 Set a given column of pixels.
void draw (const Segment &aSeg, value_type aPixVal=(value_type) 1)
 Draw a segment in the pixel map.
GenImage shallowCopy ()
 Shallow copy: The pixel map of the current image is not duplicated.
GenImage< value_type, GenImage_NoCheckoperator+ (const GenImage< value_type, OtherCheckPolicy > &anImg) const
 Same as function qgar::GenImage::plus.
GenImageoperator+= (const GenImage< value_type, OtherCheckPolicy > &anImg)
 Same as function qgar::GenImage::plusEqual.
GenImage< value_type, GenImage_NoCheckoperator- (const GenImage< value_type, OtherCheckPolicy > &anImg) const
 Same as function qgar::GenImage::minus.
GenImageoperator-= (const GenImage< value_type, OtherCheckPolicy > &anImg)
 Same as function qgar::GenImage::minusEqual.
GenImage< value_type, GenImage_NoCheckoperator * (const GenImage< value_type, OtherCheckPolicy > &anImg) const
 Same as function qgar::GenImage::times.
GenImageoperator *= (const GenImage< value_type, OtherCheckPolicy > &anImg)
 Same as function qgar::GenImage::timesEqual.
GenImage< value_type, GenImage_NoCheckplus (const GenImage< value_type, OtherCheckPolicy > &anImg) const
 Add each pixel of the given image to the corresponding pixel of the current image and store each result in a new pixel map.
GenImageplusEqual (const GenImage< value_type, OtherCheckPolicy > &anImg) throw (QgarErrorDomain)
 Add a given image to the current image.
GenImage< value_type, GenImage_NoCheckminus (const GenImage< value_type, OtherCheckPolicy > &anImg) const
 Subtract each pixel of the given image to the corresponding pixel of the current image and store each result in a new pixel map.
GenImageminusEqual (const GenImage< value_type, OtherCheckPolicy > &anImg) throw (QgarErrorDomain)
 Subtract a given image to the current image.
GenImage< value_type, GenImage_NoChecktimes (const GenImage< value_type, OtherCheckPolicy > &anImg) const
 Multiply each pixel of the given image to the corresponding pixel of the current image and store each result in a new pixel map.
GenImagetimesEqual (const GenImage< value_type, OtherCheckPolicy > &anImg) throw (QgarErrorDomain)
 Multiply a given image by the current image.
void save (AbstractPbmPlusFile &aPbmPlusFile) const
 Store current image into a PBM+ file.
int borderRows (int aRowIdx) const
 Mirror border rows for convolutions.
int borderCols (int aColIdx) const
 Mirror border columns for convolutions.
void checkRange (const unsigned char *const aPPixmap, int aWidth, const BoundingBox &aRange) const
 Check a range.
Constructors
 LinDilatedImage (GreyLevelImage &anImg, QGEorientation anOrient=QGE_ORIENTATION_HOR, unsigned int aDilSize=1) throw (QgarErrorDomain)
 Construct from a binary image.

Static Public Member Functions

Linear dilation
static void perform (GreyLevelImage *anImg, QGEorientation anOrient, unsigned int aDilSize=1)
 Perform a linear dilation on the given grey-level image.

Protected Member Functions

 GenImage (unsigned int aBytesCnt, int *aPtRefCnt, unsigned int aWidth, unsigned int aHeight, pointer aPtPixMap)
 Initialize from all data.
void copyBox (const GenImage< value_type, GenImage_NoCheck > &anImg, unsigned int aXTopLeft, unsigned int aYTopLeft, unsigned int aXBottomRight, unsigned int aYBottomRight, value_type aPixVal=static_cast< value_type >(0))
 Copy a rectangular area of the given image into the current image.

Protected Attributes

unsigned int _bytesPerPixel
 Number of bytes per pixel.
int * _pRefCnt
 Reference counter.
int _width
 Image width.
int _height
 Image height.
pointer _pPixMap
 Pointer to the pixel map, organized as consecutive rows.

Static Private Member Functions

Oriented dilations
static void dilateHor (GreyLevelImage *anImg, unsigned int aDilSize) throw (QgarErrorDomain)
 Horizontal dilation.
static void dilateVer (GreyLevelImage *anImg, unsigned int aDilSize) throw (QgarErrorDomain)
 Vertical dilation.
static void dilatePdiag (GreyLevelImage *anImg, unsigned int aDilSize) throw (QgarErrorDomain)
 NE-SW dilation.
static void dilateNdiag (GreyLevelImage *anImg, unsigned int aDilSize) throw (QgarErrorDomain)
 NW-SE dilation.
static void dilateAll (GreyLevelImage *anImg, unsigned int aDilSize) throw (QgarErrorDomain)
 Maximum of the 4 possible dilations.


Member Typedef Documentation

typedef const value_type* qgar::LinDilatedImage::const_pointer
 

Constant pointer to qgar::LinDilatedImage::value_type.

Reimplemented from qgar::GenImage< unsigned char >.

Definition at line 113 of file LinDilatedImage.H.

typedef const value_type& qgar::LinDilatedImage::const_reference
 

Constant reference to qgar::LinDilatedImage::value_type.

Reimplemented from qgar::GenImage< unsigned char >.

Definition at line 103 of file LinDilatedImage.H.

typedef value_type* qgar::LinDilatedImage::pointer
 

Pointer to qgar::LinDilatedImage::value_type.

Reimplemented from qgar::GenImage< unsigned char >.

Definition at line 108 of file LinDilatedImage.H.

typedef value_type& qgar::LinDilatedImage::reference
 

Reference to qgar::LinDilatedImage::value_type.

Reimplemented from qgar::GenImage< unsigned char >.

Definition at line 98 of file LinDilatedImage.H.

typedef GreyLevelImage::value_type qgar::LinDilatedImage::value_type
 

Type of the elements stored in the pixel map.

Reimplemented from qgar::GenImage< unsigned char >.

Definition at line 93 of file LinDilatedImage.H.


Constructor & Destructor Documentation

qgar::LinDilatedImage::LinDilatedImage GreyLevelImage anImg,
QGEorientation  anOrient = QGE_ORIENTATION_HOR,
unsigned int  aDilSize = 1
throw (QgarErrorDomain)
 

Construct from a binary image.

Orientation qgar::QGE_ORIENTATION_ALL corresponds to the maximum of the 4 possible dilations.

Parameters:
anImg image to be dilated
anOrient dilation orientation (default qgar::QGE_ORIENTATION_HOR)
aDilSize dilation size
Exceptions:
qgar::QgarErrorDomain (dilation size too large for image)

Definition at line 58 of file LinDilatedImage.C.


Member Function Documentation

int qgar::GenImage< unsigned char , GenImage_NoCheck >::borderCols int  aColIdx  )  const [inherited]
 

Mirror border columns for convolutions.

Parameters:
aColIdx index of the column

int qgar::GenImage< unsigned char , GenImage_NoCheck >::borderRows int  aRowIdx  )  const [inherited]
 

Mirror border rows for convolutions.

Parameters:
aRowIdx index of the row

int qgar::GenImage< unsigned char , GenImage_NoCheck >::bytesPerPixel  )  const [inline, inherited]
 

Get the number of bytes per pixel.

void qgar::GenImage_NoCheck< unsigned char >::checkRange const unsigned char *const   aPPixmap,
int  aWidth,
const BoundingBox aRange
const [inline, inherited]
 

Check a range.

Parameters:
aPPixmap a pointer to the pixel map of an image
aWidth 
aRange 
Exceptions:
qgar::QgarErrorDomain (pixel value out of range)

Definition at line 110 of file GenImage.H.

void qgar::GenImage< unsigned char , GenImage_NoCheck >::column unsigned int  aColIdx,
pointer  aCol
const [inherited]
 

Get a column of pixels.

Parameters:
aColIdx column index in image
aCol buffer to store the column of pixels
Warning:
The behavior of the function is undefined if the buffer size is smaller than the column size.

void qgar::GenImage< unsigned char , GenImage_NoCheck >::copyBox const GenImage< value_type, GenImage_NoCheck > &  anImg,
unsigned int  aXTopLeft,
unsigned int  aYTopLeft,
unsigned int  aXBottomRight,
unsigned int  aYBottomRight,
value_type  aPixVal = static_cast<value_type>(0)
[protected, inherited]
 

Copy a rectangular area of the given image into the current image.

The sides of the rectangle are parallel to the coordinate axis.

Parameters:
anImg initial image
aXTopLeft X coordinate of the area top left corner
aYTopLeft Y coordinate of the area left corner
aXBottomRight X coordinate of the area bottom right corner
aYBottomRight Y coordinate of the area bottom right corner
aPixVal pixel value to fill non-overlaping zones (default (T)0)
Warning:
The intersection between the rectangle and the given image must be non-empty. If the overlaping zone is only partial, the non-overlaping zone(s) are filled with pixels having value aPixVal.
Todo:
To be reimplemented.

void qgar::LinDilatedImage::dilateAll GreyLevelImage anImg,
unsigned int  aDilSize
throw (QgarErrorDomain) [static, private]
 

Maximum of the 4 possible dilations.

Parameters:
anImg image to be dilated
aDilSize dilation size
Exceptions:
qgar::QgarErrorDomain (dilation size too large for image)

Definition at line 813 of file LinDilatedImage.C.

References qgar::GenImage< T, CheckPolicy >::row(), and qgar::GenImage< T, CheckPolicy >::setRow().

Referenced by perform().

void qgar::LinDilatedImage::dilateHor GreyLevelImage anImg,
unsigned int  aDilSize
throw (QgarErrorDomain) [static, private]
 

Horizontal dilation.

Parameters:
anImg image to be dilated
aDilSize dilation size
Exceptions:
qgar::QgarErrorDomain (dilation size too large for image)

Definition at line 100 of file LinDilatedImage.C.

Referenced by perform().

void qgar::LinDilatedImage::dilateNdiag GreyLevelImage anImg,
unsigned int  aDilSize
throw (QgarErrorDomain) [static, private]
 

NW-SE dilation.

Parameters:
anImg image to be dilated
aDilSize dilation size
Exceptions:
qgar::QgarErrorDomain (dilation size too large for image)

Definition at line 613 of file LinDilatedImage.C.

Referenced by perform().

void qgar::LinDilatedImage::dilatePdiag GreyLevelImage anImg,
unsigned int  aDilSize
throw (QgarErrorDomain) [static, private]
 

NE-SW dilation.

Parameters:
anImg image to be dilated
aDilSize dilation size
Exceptions:
qgar::QgarErrorDomain (dilation size too large for image)

Definition at line 413 of file LinDilatedImage.C.

Referenced by perform().

void qgar::LinDilatedImage::dilateVer GreyLevelImage anImg,
unsigned int  aDilSize
throw (QgarErrorDomain) [static, private]
 

Vertical dilation.

Parameters:
anImg image to be dilated
aDilSize dilation size
Exceptions:
qgar::QgarErrorDomain (dilation size too large for image)

Definition at line 256 of file LinDilatedImage.C.

Referenced by perform().

void qgar::GenImage< unsigned char , GenImage_NoCheck >::draw const Segment aSeg,
value_type  aPixVal = (value_type)1
[inherited]
 

Draw a segment in the pixel map.

The segment pixels are set using Bresenham's algorithm. See W.M. Newman and R.F. Sproull, Principles of Interactive Computer Graphics, pp. 25-26.

Parameters:
aSeg segment to be drawn
aPixVal value to set pixels with (default (T)1)

qgar::GenImage< unsigned char , GenImage_NoCheck >::GenImage unsigned int  aBytesCnt,
int *  aPtRefCnt,
unsigned int  aWidth,
unsigned int  aHeight,
pointer  aPtPixMap
[protected, inherited]
 

Initialize from all data.

Parameters:
aBytesCnt bytes per pixel
aPtRefCnt pointer to a reference counter
aWidth width of the image
aHeight height of the image
aPtPixMap pointer to a pixel map
Warning:
Using this constructor may lead to serious bugs due to dynamic memory space management. Be sure that the value of the given reference counter (pointed by aPtRefCnt) is correct: If the given pixel map (pointed by aPtPixMap) is not shared by another object, this value must be 0. Otherwise, one must add 1 to the value, before using the constructor:
(*_pRefCnt)++;

qgar::GenImage< unsigned char , GenImage_NoCheck >::GenImage AbstractPbmPlusFile aPbmPlusFile  )  [explicit, inherited]
 

Initialize with an image in a PBM+ file.

The given PBM+ file is opened (in READ ONLY mode) at the call, and closed before returning.

Parameters:
aPbmPlusFile a PBM+ file containing an image
Warning:
This kind of conversion must be explicitely specified by the client.
Todo:
Constructor qgar::GenImage::GenImage(AbstractPbmPlusFile&) should just work when T is instantiated by an unsigned char because function qgar::AbstractPbmPlusFile::readRow only works with rows of unsigned integers whereas the first argument of function qgar::GenImage::setRow is a pointer to a row of type T!

qgar::GenImage< unsigned char , GenImage_NoCheck >::GenImage const GenImage< value_type, OtherCheckPolicy > &  anImg,
unsigned int  aXTopLeft,
unsigned int  aYTopLeft,
unsigned int  aXBottomRight,
unsigned int  aYBottomRight,
value_type  aPixVal = static_cast<value_type>(0)
[inherited]
 

Initialize by copying a rectangular area, defined by the coordinates of its top left and bottom right corners, of a given image.

The rectangle sides are parallel to the coordinate axis.

Parameters:
anImg initial image
aXTopLeft X coordinate of the area top left corner
aYTopLeft Y coordinate of the area top left corner
aXBottomRight X coordinate of the area bottom right corner
aYBottomRight Y coordinate of the area bottom right corner
aPixVal pixel value to fill non-overlaping zones (default (T)0)
Warning:
The intersection between the rectangle and the given image must be non-empty. If the overlaping zone is only partial, the non-overlaping zone(s) are filled with pixels having value aPixVal.

qgar::GenImage< unsigned char , GenImage_NoCheck >::GenImage const GenImage< value_type, OtherCheckPolicy > &  anImg,
const BoundingBox aBox,
value_type  aPixVal = static_cast<value_type>(0)
[inherited]
 

Initialize by copying a rectangular area, defined by a bounding box, of a given image.

The rectangle sides are parallel to the coordinate axis.

Parameters:
anImg initial image
aBox box defining the rectangular area to copy
aPixVal pixel value to fill non-overlaping zones (default (T)0)
Warning:
The intersection between the rectangle and the given image must be non-empty. If the overlaping zone is only partial, the non-overlaping zone(s) are filled with pixels having value aPixVal.

qgar::GenImage< unsigned char , GenImage_NoCheck >::GenImage const GenImage< U, UCheckPolicy > &  anImg  )  [explicit, inherited]
 

Initialize from an image with pixels of a type different from T.

Parameters:
anImg an image with pixels of type U (different from T)
Warning:
Perform a deep copy: The pixel map of the source image is duplicated. This kind of conversion must be explicitely specified by the client.

qgar::GenImage< unsigned char , GenImage_NoCheck >::GenImage const GenImage< value_type, OtherCheckPolicy > &  anImg  )  [inherited]
 

Conversion of an image of the same type, using policies.

Parameters:
anImg an image with the same pixel type having different policies

qgar::GenImage< unsigned char , GenImage_NoCheck >::GenImage const GenImage< unsigned char > &  anImg  )  [inherited]
 

Copy constructor.

Perform a deep copy: The pixel map of the source image is duplicated.

Parameters:
anImg image to be copied
See also:
qgar::GenImage::operator= and qgar::GenImage::shallowCopy

qgar::GenImage< unsigned char , GenImage_NoCheck >::GenImage unsigned int  aWidth,
unsigned int  aHeight,
pointer  aPtPixMap
throw (QgarErrorInvalidArg) [inherited]
 

Initialize from a pixmap.

Parameters:
aWidth width of the image (in pixels)
aHeight height of the image (in pixels)
aPtPixMap pointer to a pixel map
Warning:
This constructor takes the ownership of the given pixmap. The created instance will be responsible for deleting it.
Exceptions:
qgar::QgarErrorInvalidArg (pixel map not allocated)

qgar::GenImage< unsigned char , GenImage_NoCheck >::GenImage unsigned int  aWidth,
unsigned int  aHeight
[inherited]
 

Initialize with given width and height.

Parameters:
aWidth width of the image (in pixels)
aHeight height of the image (in pixels)
Warning:
The pixel map is allocated but is not initialized.

qgar::GenImage< unsigned char , GenImage_NoCheck >::GenImage  )  [inherited]
 

Default constructor.

Set 0 to width, to height, to pointer to pixel map, and to reference counter.

int qgar::GenImage< unsigned char , GenImage_NoCheck >::height  )  const [inline, inherited]
 

Get the image height.

Referenced by qgar::GeodesicRecEroBinaryImage::perform().

GenImage<value_type, GenImage_NoCheck> qgar::GenImage< unsigned char , GenImage_NoCheck >::minus const GenImage< value_type, OtherCheckPolicy > &  anImg  )  const [inherited]
 

Subtract each pixel of the given image to the corresponding pixel of the current image and store each result in a new pixel map.

Returns:
A new image constructed from this new pixel map
Parameters:
anImg image to be subtracted to the current image
Warning:
Given and current images must have the same width and height. The subtraction is not normalized: Each result is stored in the new pixel map without any checking.

GenImage& qgar::GenImage< unsigned char , GenImage_NoCheck >::minusEqual const GenImage< value_type, OtherCheckPolicy > &  anImg  )  throw (QgarErrorDomain) [inherited]
 

Subtract a given image to the current image.

Parameters:
anImg image to be subtracted to the current image
Subtract each pixel of the given image to the corresponding pixel of the current image and store each result in the pixel map of the current image.

Warning:
Given and current images must have the same width and height. The subtraction is not normalized: Each result is stored in the pixel map of the current image without any checking.
Exceptions:
qgar::QgarErrorDomain (image sizes do not match)

GenImage<value_type, GenImage_NoCheck> qgar::GenImage< unsigned char , GenImage_NoCheck >::operator * const GenImage< value_type, OtherCheckPolicy > &  anImg  )  const [inherited]
 

Same as function qgar::GenImage::times.

GenImage& qgar::GenImage< unsigned char , GenImage_NoCheck >::operator *= const GenImage< value_type, OtherCheckPolicy > &  anImg  )  [inherited]
 

Same as function qgar::GenImage::timesEqual.

GenImage<value_type, GenImage_NoCheck> qgar::GenImage< unsigned char , GenImage_NoCheck >::operator+ const GenImage< value_type, OtherCheckPolicy > &  anImg  )  const [inherited]
 

Same as function qgar::GenImage::plus.

GenImage& qgar::GenImage< unsigned char , GenImage_NoCheck >::operator+= const GenImage< value_type, OtherCheckPolicy > &  anImg  )  [inherited]
 

Same as function qgar::GenImage::plusEqual.

GenImage<value_type, GenImage_NoCheck> qgar::GenImage< unsigned char , GenImage_NoCheck >::operator- const GenImage< value_type, OtherCheckPolicy > &  anImg  )  const [inherited]
 

Same as function qgar::GenImage::minus.

GenImage& qgar::GenImage< unsigned char , GenImage_NoCheck >::operator-= const GenImage< value_type, OtherCheckPolicy > &  anImg  )  [inherited]
 

Same as function qgar::GenImage::minusEqual.

pointer qgar::GenImage< unsigned char , GenImage_NoCheck >::pColumn unsigned int  aColIdx  )  const [inline, inherited]
 

Get a pointer on a column of pixels.

Parameters:
aColIdx column index in image

void qgar::LinDilatedImage::perform GreyLevelImage anImg,
QGEorientation  anOrient,
unsigned int  aDilSize = 1
[static]
 

Perform a linear dilation on the given grey-level image.

To be used to perform a linear dilation without preserving the initial image.

Orientation qgar::QGE_ORIENTATION_ALL corresponds to the maximum of the 4 possible dilations.

Parameters:
anImg image to be dilated
anOrient dilation orientation
aDilSize dilation size

Definition at line 74 of file LinDilatedImage.C.

References dilateAll(), dilateHor(), dilateNdiag(), dilatePdiag(), dilateVer(), qgar::QGE_ORIENTATION_ALL, qgar::QGE_ORIENTATION_DIAG_NEG, qgar::QGE_ORIENTATION_DIAG_POS, qgar::QGE_ORIENTATION_HOR, and qgar::QGE_ORIENTATION_VER.

Referenced by qgar::DilatedImage::perform().

value_type qgar::GenImage< unsigned char , GenImage_NoCheck >::pixel unsigned int  aX,
unsigned int  aY
const [inherited]
 

Get a pixel value.

Parameters:
aX X coordinate (column index) of the pixel
aY Y coordinate (row index) of the pixel

GenImage<value_type, GenImage_NoCheck> qgar::GenImage< unsigned char , GenImage_NoCheck >::plus const GenImage< value_type, OtherCheckPolicy > &  anImg  )  const [inherited]
 

Add each pixel of the given image to the corresponding pixel of the current image and store each result in a new pixel map.

Parameters:
anImg image to be added to the current image
Returns:
A new image constructed from this new pixel map
Warning:
Given and current images must have the same width and height. The addition is not normalized: Each result is stored in the new pixel map without any checking.

GenImage& qgar::GenImage< unsigned char , GenImage_NoCheck >::plusEqual const GenImage< value_type, OtherCheckPolicy > &  anImg  )  throw (QgarErrorDomain) [inherited]
 

Add a given image to the current image.

Add each pixel of the given image to the corresponding pixel of the current image and store each result in the pixel map of the current image.

Parameters:
anImg image to be added to the current image
Warning:
Given and current images must have the same width and height. The addition is not normalized: Each result is stored in the pixel map of the current image without any checking.
Exceptions:
qgar::QgarErrorDomain (image sizes do not match)

pointer qgar::GenImage< unsigned char , GenImage_NoCheck >::pPixel unsigned int  aRowIdx,
unsigned int  aColIdx
const [inline, inherited]
 

Get a pointer on a given pixel of the image.

Parameters:
aRowIdx row index of the pixel
aColIdx column index of the pixel

pointer qgar::GenImage< unsigned char , GenImage_NoCheck >::pPixMap  )  const [inline, inherited]
 

Get the pointer to the pixel map.

Referenced by qgar::ThresBinaryImage::ThresBinaryImage(), and qgar::TTBinaryImage::TTBinaryImage().

pointer qgar::GenImage< unsigned char , GenImage_NoCheck >::pRow unsigned int  aRowIdx  )  const [inline, inherited]
 

Get a pointer on a row of pixels.

Parameters: