|
DGtal
0.6.devel
|
#include <Measure.h>
Public Types | |
| typedef TSet | Set |
| typedef TSet::Domain | Domain |
| typedef double | Quantity |
Public Member Functions | |
| Measure () | |
| ~Measure () | |
| void | init (const double h, const Set &aSetPointer) |
| Quantity | eval () const |
| void | selfDisplay (std::ostream &out) const |
| bool | isValid () const |
Private Member Functions | |
| Measure (const Measure &other) | |
| Measure & | operator= (const Measure &other) |
Private Attributes | |
| double | myH |
| Set::Size | mySetSize |
| double | myIsInitBefore |
Aim: Implements a simple measure computation (in the Lesbegue sens) of a set. In dimension 2, it corresponds to the area of the set, to the volume in dimension 3,...
Description of template class 'Measure'
Model of CGlobalGeometricEstimator
| Set | type of set on which the geometrical moments is computed. |
| typedef TSet::Domain DGtal::Measure< TSet >::Domain |
| typedef double DGtal::Measure< TSet >::Quantity |
| typedef TSet DGtal::Measure< TSet >::Set |
|
inline |
|
inline |
|
private |
Copy constructor.
| other | the object to clone. Forbidden by default. |
|
inline |
Compute the measure (area, volume) of the set. Since we rely on the Set::size() method which is O(1). The current method is O(1) too.
Definition at line 55 of file Measure.ih.
|
inline |
Initialize the measure computation.
| h | grid size (must be >0). |
| aSetPointerx | a pointer to an input set. |
Definition at line 44 of file Measure.ih.
|
inline |
Checks the validity/consistency of the object.
Definition at line 112 of file Measure.ih.
|
private |
Assignment.
| other | the object to copy. |
|
inline |
Writes/Displays the object on an output stream.
| out | the output stream where the object is written. |
Definition at line 96 of file Measure.ih.
|
private |
|
private |
|
private |
1.8.1.1