DGtal 1.3.0
|
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,... More...
#include <DGtal/geometry/volumes/estimation/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 |
grid resolution parameter. More... | |
Set::Size | mySetSize |
Copy of the set size. More... | |
double | myIsInitBefore |
Boolean to assert that the init() was called before the eval(). More... | |
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
TSet | 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 |
DGtal::Measure< TSet >::Measure | ( | ) |
Constructor.
DGtal::Measure< TSet >::~Measure | ( | ) |
Destructor.
|
private |
Copy constructor.
other | the object to clone. Forbidden by default. |
Quantity DGtal::Measure< TSet >::eval | ( | ) | const |
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.
void DGtal::Measure< TSet >::init | ( | const double | h, |
const Set & | aSetPointer | ||
) |
Initialize the measure computation.
h | grid size (must be >0). |
aSetPointer | a pointer to an input set. |
bool DGtal::Measure< TSet >::isValid | ( | ) | const |
Checks the validity/consistency of the object.
|
private |
Assignment.
other | the object to copy. |
void DGtal::Measure< TSet >::selfDisplay | ( | std::ostream & | out | ) | const |
Writes/Displays the object on an output stream.
out | the output stream where the object is written. |
|
private |
|
private |
|
private |