|
Developer Documentation |
|
Centre for Vision, Speech & Signal Processing |
Comments:
The class BoundaryC represents the 4-connected oriented boundary of a image
region.
Parent Classes:
Derived Classes:
Typedefs:
- typedef LongIntT AreaT;
-
Variables:
- BooleanT orientation;
-
Orientation of the boundary. TRUE means that
an object is on the left side of edges.
Methods:
- BoundaryC(BooleanT orient = TRUE)
-
Empty boundary with orientation 'orient'.
- BoundaryC(const BoundaryC & list)
-
Another access to the same boundary (constructor for a big object).
- BoundaryC(const EdgeListC & edgeList,BooleanT orient)
-
Create the boundary from the list of edges with a appropriate
orientation. The 'edgelist' will be a part of boundary.
- BoundaryC(const DListC<EdgePtrC> & edgeList,BooleanT orient = TRUE)
-
Creates the boundary from the list of pointers to the elementary
edges. The orientation of the boundary is set according to 'orient'.
- BoundaryC(const IndexRectangleC & rect)
-
The boundary of the rectangle as a hole
- AreaT Area() const
-
Get the area of the region which is determined by the 'boundary'.
- DListC<BoundaryC> Order(const EdgeC & firstEdge,BooleanT orient = TRUE)
-
Order the edgels of this boundary such that it can be traced
continuously along the direction of the first edge. The orientation
of the boundary is set according to 'orient'. If the boundary is open,
'firstEdge' and 'orient' are ignored.
- BooleanT Orient() const
-
Return the orientation of the boundary.
- BoundaryC & BReverse()
-
Revert the order of the edges.
- BoundaryC Copy() const
-
Create a physical copy of the boundary.
- EdgeCPtrListC ConvexHull() const
-
The convex hull is created from the original Jordan boundary using
Melkman's method.
Ref.: A V Melkman. On-line construction of the convex hull of a
simple polyline. Information Processing Letters,
25(1):11-12, 1987.
Ref.: M Sonka, V Hlavac: Image Processing.
- EdgeCPtrListC ConvexHullMM() const
-
The convex hull is created from the original Jordan boundary using
Marik&Matas's method.
- IndexRectangleC BoundingBox() const
-
Get the bounding box of the boundary in "boundary's" coordinates.
- void WriteCompressed(ostream & s) const
-
Save as ASCII characters in compressed format.
- void ReadCompressed(istream & s)
-
Read a boundary stored in compressed format. The current object
is deleted.
- RCHashARC<BVertexC,PairC<BVertexC>> CreateHashtable() const
-
Returns the hashtable for the boundary; all end points which are only
connected to one other point will have at least one invalid
neighbour (-1, -1).
- BoundaryC OrderContinuous(const RCHashARC<BVertexC,PairC<BVertexC>> & hashtable,const EdgeC & firstEdge,BooleanT orient) const
-
Returns a continous boundary; if the boundary is open, 'orient' will be
ignored and 'firstEdge' must be one of the end points of the boundary.
- DListC<BVertexC> FindEndpoints(const RCHashARC<BVertexC,PairC<BVertexC>> & hashtable) const
-
Returns the endpoints of the boundary, i.e. if the boundary is closed,
the list will be empty.
|
Programmer:Radek Marik, Documentation by CxxDoc: Tue Mar 20 10:49:27 2001
|