| [Strel] [Up] [Boolean] | Data Types |
| User Feedback |
class Interval
{
public:
Interval();
Interval(Interval& inter);
~Interval();
Interval& operator=(Interval& inter);
};
The hit-or-miss template (also called interval) is defined by two structuring elements: one associated to the 'hit' template, and the other associated to the 'miss' template. A hit-or-miss template can be build with the function mmSe2hmt and can be visualized with mmIntershow .
The following public methods are intended for use by application programs:
Interval()
: default constructor
Interval(Interval&)
: copy constructor
~Interval()
: destructor
Interval& operator=
: assignment operator
The class Interval
is a proxy for the internal toolbox interval type. It takes care of
chores like memory release and exception catching. When a toolbox function returns an interval, an
object of this class is created to be returned to the caller. The object constructor catches
any error ocurred in the function implementation and, in case of error, throws a
morphException
.
To free your code of the memory allocation statements, keep your intervals created in local space,
so the underlying C++ system will take care of the memory releasing. Only in the case of returning
to another procedure, create the interval in the heap with the new
operator.
See the code of the demonstrations for examples of use of the Interval
class.
| mmIntershow | Visualize an interval. |
| mmHomothin | Interval for homotopic thinning. |
| mmSe2hmt | Create a Hit-or-Miss Template (or interval) from a pair of structuring elements. |
| [Strel] [Up] [Boolean] | |
| User Feedback | |
| Copyright (c) 1998-2008 by SDC Information Systems |