|
User Documentation |
|
Centre for Vision, Speech & Signal Processing |
Comments:
The class IndexNeigh2dC represents a set of 2D indexes in a neighborhood
of a pixel.
Child Classes:
Variables:
Methods:
- IndexNeigh2dC(GridDistanceT maxDistance = 5,GridMetricT metric = CITY_BLOCK)
-
Creates the set of relative indexes which belongs to the neighbourhood
determined by 'distance' using the 'metric' of grid.
- IndexNeigh2dC(SizeT elementNumber,Index2dC * indexes,GridMetricT metric = CITY_BLOCK)
-
Creates the set of relative indexes from the array of 'indexes' which
number of elements is determined by 'elementNumber'. The metric
is defined by variable 'metric'.
- IndexNeigh2dC(const SArray1dC<Index2dC> & arr,GridMetricT metric = CITY_BLOCK)
-
Creates the set of relative indexes from the array of 'indexes'.
The metric is defined by variable 'metric'.
- IndexNeigh2dC(const IndexNeigh2dC & n)
-
Copy constructor.
- const IndexNeigh2dC & operator=(const IndexNeigh2dC & n)
-
- ~IndexNeigh2dC()
-
Destructor.
General informatiom about an object.
------------------------------------
- GridMetricT Metric() const
-
Returns the type of the metric of the neighbourhood.
- GridDistanceT MaxDist() const
-
Returns the maximum distance of elements of the neighbourhood.
- SizeT Elems() const
-
Returns the number of elements in the neighbourhood.
- Index2dC ULCorner() const
-
Returns the upper-left corner of the neighborhood bounding box.
- Index2dC BRCorner() const
-
Returns the bottom-right corner of the neighborhood bounding box.
- const Index2dC & operator[](IndexT i) const
-
Returns the i-th element of the neighbourhood.
- IndexT operator[](const Index2dC & i) const
-
Returns the rank of the element 'i'.
- BooleanT Contains(const Index2dC & i) const
-
Returns TRUE, if the neighbourhood contains the index 'i'.
- IndexT RankMin(GridDistanceT distance) const
-
Returns the rank of the first element whose distance
is greater or equal to the 'distance'.
- IndexT RankMax(GridDistanceT distance) const
-
Returns the rank of the last element whose distance
is smaller or equal to the 'distance'.
- IndexRangeC RankRange(GridDistanceT distance) const
-
Returns the range of elements
related to the 'distance'.
- GridDistanceT Distance(const Index2dC & i) const
-
Returns the distance of the element 'i', if the element
is in the neighbourhood.
Selected neighborhoods of pixels.
---------------------------------
- const IndexNeigh2dC & N8()
-
8 connected neighborhood.
- const IndexNeigh2dC & N4()
-
4 connected neighborhood.
- const IndexNeigh2dC & BoundaryInfluence()
-
The neighborhood of pixels that can be influented
by the fast change of input sensor signal.
|
Programmer:Radek Marik, Documentation by CxxDoc: Tue Mar 20 10:48:08 2001
|