#include <qgarlib/GenMask2d.H>
Definition at line 63 of file GenMask2d.H.
Public Types | |
Types related to 2D masks | |
| typedef T | value_type |
| Type of the mask coefficients. | |
| typedef value_type & | reference |
| Reference to qgar::GenMask2d::value_type. | |
| typedef const value_type & | const_reference |
| Constant reference to qgar::GenMask2d::value_type. | |
| typedef value_type * | pointer |
| Pointer to qgar::GenMask2d::value_type. | |
| typedef const value_type * | const_pointer |
| Constant pointer to qgar::GenMask2d::value_type. | |
Public Member Functions | |
Constructors | |
| GenMask2d () | |
| Default constructor: Set 0 to mask width and height, to pointer to the coefficient map, and to reference counter. | |
| GenMask2d (const GenMask2d< value_type > &aMask) | |
| Copy constructor. | |
| GenMask2d (unsigned int aWidth, unsigned int aHeight, value_type aValue=static_cast< value_type >(0)) | |
| Initialize with given width, height and value. | |
| GenMask2d (unsigned int aWidth, unsigned int aHeight, const_pointer const valArray) | |
| Builds a mask from an array of values. | |
Destructor | |
| ~GenMask2d () | |
| Non-virtual destructor. | |
Access to mask characteristics | |
| int | width () const |
| Get mask width. | |
| int | height () const |
| Get mask height. | |
Access to coefficient values | |
| value_type | coeff (int aX, int aY) const |
| Get a coefficient value. | |
Access to direct transformations of the coefficient map | |
| pointer | pCoeffMap () const |
| Get the pointer to the coefficient map. | |
Transformation | |
| void | setCoeff (int aX, int aY, value_type aCoeff) |
| Set coefficient at given position. | |
Copy | |
| GenMask2d< value_type > | shallowCopy () |
| Shallow copy: The coefficient map of the source mask is not duplicated. | |
Operators | |
| GenMask2d< value_type > & | operator= (const GenMask2d< value_type > &aMask) |
| Assignment. | |
Protected Member Functions | |
Shallow copy constructor | |
| GenMask2d (const GenMask2d< value_type > &rhs, int) | |
| Shallow copy constructor. | |
Protected Attributes | |
Representation of a mask | |
| int * | _pRefCnt |
| Reference counter. | |
| int | _width |
| Mask width. | |
| int | _height |
| Mask height. | |
| pointer | _pCoeffMap |
| Pointer to the memory space of the mask. | |
Private Member Functions | |
Auxiliaries | |
| void | PRIVATEdeepCopy (const GenMask2d< T > &aMask) |
| Store a deep copy of a given mask into the current mask. | |
|
|||||
|
Constant pointer to qgar::GenMask2d::value_type.
Definition at line 96 of file GenMask2d.H. |
|
|||||
|
Constant reference to qgar::GenMask2d::value_type.
Definition at line 86 of file GenMask2d.H. |
|
|||||
|
Pointer to qgar::GenMask2d::value_type.
Definition at line 91 of file GenMask2d.H. |
|
|||||
|
Reference to qgar::GenMask2d::value_type.
Definition at line 81 of file GenMask2d.H. |
|
|||||
|
Type of the mask coefficients.
Definition at line 76 of file GenMask2d.H. |
|
|||||||||
|
Default constructor: Set 0 to mask width and height, to pointer to the coefficient map, and to reference counter.
Definition at line 56 of file GenMask2d.TCC. Referenced by qgar::GenMask2d< T >::shallowCopy(). |
|
||||||||||
|
Copy constructor. See also qgar::GenMask2d::operator= and qgar::GenMask2d::shallowCopy.
Definition at line 71 of file GenMask2d.TCC. References qgar::GenMask2d< T >::_height, qgar::GenMask2d< T >::_pCoeffMap, qgar::GenMask2d< T >::_width, and qgar::GenMask2d< T >::pCoeffMap(). |
|
||||||||||||||||||||
|
Initialize with given width, height and value. All the coefficients are set to the given value.
Definition at line 88 of file GenMask2d.TCC. References qgar::GenMask2d< T >::_height, qgar::GenMask2d< T >::_pCoeffMap, qgar::GenMask2d< T >::_width, and qgar::qgFill(). |
|
||||||||||||||||||||
|
Builds a mask from an array of values.
|
|
|||||||||
|
Non-virtual destructor. Free space allocated to the coefficient map if and only if the reference counter is null. Definition at line 143 of file GenMask2d.TCC. References qgar::GenMask2d< T >::_pCoeffMap, and qgar::GenMask2d< T >::_pRefCnt. |
|
||||||||||||||||
|
Shallow copy constructor. This constructor declares an unused integer parameter to avoid ambiguous calls to the copy constructor. It builds a shallow copy of a mask instance.
|
|
||||||||||||||||
|
Get a coefficient value.
Definition at line 196 of file GenMask2d.TCC. References qgar::GenMask2d< T >::_pCoeffMap, and qgar::GenMask2d< T >::_width. |
|
|||||||||
|
Get mask height.
Definition at line 181 of file GenMask2d.TCC. Referenced by qgar::GenConvolImage< T, CheckingPolicy >::convol(). |
|
||||||||||
|
Assignment.
Definition at line 283 of file GenMask2d.TCC. References qgar::GenMask2d< T >::PRIVATEdeepCopy(). |
|
|||||||||
|
Get the pointer to the coefficient map.
Definition at line 211 of file GenMask2d.TCC. References qgar::GenMask2d< T >::_pCoeffMap. Referenced by qgar::GenMask2d< T >::GenMask2d(), and qgar::GenMask2d< T >::PRIVATEdeepCopy(). |
|
||||||||||
|
Store a deep copy of a given mask into the current mask.
Definition at line 252 of file GenMask2d.TCC. References qgar::GenMask2d< T >::_height, qgar::GenMask2d< T >::_pCoeffMap, qgar::GenMask2d< T >::_pRefCnt, qgar::GenMask2d< T >::_width, and qgar::GenMask2d< T >::pCoeffMap(). Referenced by qgar::GenMask2d< T >::operator=(). |
|
||||||||||||||||||||
|
Set coefficient at given position.
Definition at line 226 of file GenMask2d.TCC. References qgar::GenMask2d< T >::_pCoeffMap, and qgar::GenMask2d< T >::_width. |
|
|||||||||
|
Shallow copy: The coefficient map of the source mask is not duplicated. See also qgar::GenMask2d::operator= and qgar::GenMask2d::shallowCopy.
Definition at line 242 of file GenMask2d.TCC. References qgar::GenMask2d< T >::GenMask2d(). |
|
|||||||||
|
Get mask width.
Definition at line 171 of file GenMask2d.TCC. References qgar::GenMask2d< T >::_width. Referenced by qgar::GenConvolImage< T, CheckingPolicy >::convol(). |
|
|||||
|
Mask height.
Definition at line 315 of file GenMask2d.H. Referenced by qgar::GenMask2d< T >::GenMask2d(), and qgar::GenMask2d< T >::PRIVATEdeepCopy(). |
|
|||||
|
Pointer to the memory space of the mask.
Definition at line 320 of file GenMask2d.H. Referenced by qgar::GenMask2d< T >::coeff(), qgar::GenMask2d< T >::GenMask2d(), qgar::GenMask2d< T >::pCoeffMap(), qgar::GenMask2d< T >::PRIVATEdeepCopy(), qgar::GenMask2d< T >::setCoeff(), and qgar::GenMask2d< T >::~GenMask2d(). |
|
|||||
|
Reference counter. Its value represent the number of other masks with which the current mask shares its coefficient map. Definition at line 305 of file GenMask2d.H. Referenced by qgar::GenMask2d< T >::PRIVATEdeepCopy(), and qgar::GenMask2d< T >::~GenMask2d(). |
|
|||||
|
Mask width.
Definition at line 310 of file GenMask2d.H. Referenced by qgar::GenMask2d< T >::coeff(), qgar::GenMask2d< T >::GenMask2d(), qgar::GenMask2d< T >::PRIVATEdeepCopy(), qgar::GenMask2d< T >::setCoeff(), and qgar::GenMask2d< T >::width(). |