#include <qgarlib/Mask1dGaussD2.H>
Inheritance diagram for qgar::Mask1dGaussD2:

The code implementing this class is an adaptation of code written by Carsten Steger at TU Muenchen, Germany. Here is the copyright notice from his code:
+----------------------------------------------------------------------+ | Copyright (C) 1996 Carsten Steger | | | | This program is free software; you can redistribute it and/or modify | | it under the terms of the GNU General Public License as published by | | the Free Software Foundation; either version 2, or (at your option) | | any later version. | | | | This program is distributed in the hope that it will be useful, but | | WITHOUT ANY WARRANTY; without even the implied warranty of | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | | General Public License for more details. | | | | You should have received a copy of the GNU General Public License | | along with this program; if not, write to the Free Software | | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | +----------------------------------------------------------------------+
Definition at line 88 of file Mask1dGaussD2.H.
Public Types | |
| typedef double | value_type |
| Type of the mask coefficients. | |
| typedef value_type & | reference |
| Reference to qgar::GenMask1d::value_type. | |
| typedef const value_type & | const_reference |
| Constant reference to qgar::GenMask1d::value_type. | |
| typedef value_type * | pointer |
| Pointer to qgar::GenMask1d::value_type. | |
| typedef const value_type * | const_pointer |
| Constant pointer to qgar::GenMask1d::value_type. | |
Public Member Functions | |
| GenMask1d () | |
| Default constructor: Set 0 to mask width, to pointer to the coefficient map, and to reference counter. | |
| GenMask1d (const GenMask1d< value_type > &aMask) | |
| Copy constructor. | |
| GenMask1d (const GenMask1d< U > &aMask) | |
| Conversion from another mask. | |
| GenMask1d (unsigned int aWidth, value_type aValue=static_cast< value_type >(0)) | |
| Initialize with given width and value. | |
| GenMask1d (unsigned int aWidth, const_pointer const pVals) | |
| Create a mask from an array of values. | |
| int | width () const |
| Get mask width. | |
| value_type | coeff (int anIdx) const |
| Get a coefficient value. | |
| pointer | pCoeffMap () const |
| Get the pointer to the coefficient map. | |
| void | setCoeff (int anIdx, value_type aCoeff) |
| Set coefficient at given index. | |
| GenMask1d< double > * | shallowCopy () |
| Shallow copy: The coefficient map of the source mask is not duplicated. | |
CONSTRUCTORS | |
| Mask1dGaussD2 (const Mask1dGaussD2 &aMask) | |
| Copy constructor. | |
| Mask1dGaussD2 (double aSigma=1.0) | |
| Initialize from given sigma (default 1.0). | |
DESTRUCTOR | |
| virtual | ~Mask1dGaussD2 () |
| Virtual destructor. | |
OPERATORS | |
| Mask1dGaussD2 & | operator= (const Mask1dGaussD2 &aMask) |
| Assignment. | |
Protected Member Functions | |
| GenMask1d (const GenMask1d &rhs, int) | |
| Disguised copy constructor sharing value array between the passed and the created instance. | |
Protected Attributes | |
| int * | _pRefCnt |
| Reference counter. | |
| int | _width |
| Mask width. | |
| pointer | _pCoeffMap |
| Pointer to the memory space of the mask. | |
|
|
Constant pointer to qgar::GenMask1d::value_type.
Definition at line 93 of file GenMask1d.H. |
|
|
Constant reference to qgar::GenMask1d::value_type.
Definition at line 83 of file GenMask1d.H. |
|
|
Pointer to qgar::GenMask1d::value_type.
Definition at line 88 of file GenMask1d.H. |
|
|
Reference to qgar::GenMask1d::value_type.
Definition at line 78 of file GenMask1d.H. |
|
|
Type of the mask coefficients.
Definition at line 73 of file GenMask1d.H. |
|
|
Copy constructor. See also qgar::Mask1dGaussD2::operator=, qgar::GenMask1d::deepCopy, and qgar::GenMask1d::shallowCopy.
Definition at line 103 of file Mask1dGaussD2.C. |
|
|
Initialize from given sigma (default 1.0).
Definition at line 110 of file Mask1dGaussD2.C. References qgar::GenMask1d< double >::_pCoeffMap, qgar::GenMask1d< double >::_width, and qgar::MASK1DGAUSSD2_phi2(). |
|
|
Virtual destructor.
Definition at line 136 of file Mask1dGaussD2.C. |
|
|
Get a coefficient value.
|
|
||||||||||||
|
Disguised copy constructor sharing value array between the passed and the created instance. This constructor declares an unused int parameter to avoid ambiguous call between it and the copy constructor. It builds a shallow copy of a mask instance.
|
|
||||||||||||
|
Create a mask from an array of values. The passed array is duplicated using a raw memcopy.
|
|
||||||||||||
|
Initialize with given width and value.
|
|
|
Conversion from another mask. See also qgar::GenMask1d::operator=, qgar::GenMask1d::shallowCopy.
|
|
|
Copy constructor. See also qgar::GenMask1d::operator=, qgar::GenMask1d::deepCopy, and qgar::GenMask1d::shallowCopy.
|
|
|
Default constructor: Set 0 to mask width, to pointer to the coefficient map, and to reference counter.
|
|
|
Assignment.
Definition at line 147 of file Mask1dGaussD2.C. References qgar::GenMask1d< double >::operator=(). |
|
|
Get the pointer to the coefficient map.
|
|
||||||||||||
|
Set coefficient at given index.
|
|
|
Shallow copy: The coefficient map of the source mask is not duplicated. See also qgar::GenMask1d(Genmask1d<t>&), qgar::GenMask1d::operator=,
|
|
|
Get mask width.
|
|
|
Pointer to the memory space of the mask.
Definition at line 313 of file GenMask1d.H. Referenced by qgar::Mask1dGauss::Mask1dGauss(), and Mask1dGaussD2(). |
|
|
Reference counter. Its value represent the number of other masks with which the current mask shares its coefficient map. Definition at line 303 of file GenMask1d.H. |
|
|
Mask width.
Definition at line 308 of file GenMask1d.H. Referenced by qgar::Mask1dGauss::Mask1dGauss(), and Mask1dGaussD2(). |