|
Developer Documentation |
|
Centre for Vision, Speech & Signal Processing |
Comments:
The class Point3dSArray1dC represents 1-dimensional array of 3-dimensional
points.
Parent Classes:
Typedefs:
- typedef SArray1dC<Point3dC> Foo1T;
-
to help GNU C++ 2.6.0
- typedef double RealT;
-
general real parameter.
Methods:
- Point3dSArray1dC()
-
Empty array of points.
- Point3dSArray1dC(const SizeT n)
-
Creates an array of 'n' points.
- Point3dSArray1dC(const char * filename)
-
Creates an array of points from the input file 'filename'.
- Point3dSArray1dC(istream & s)
-
Creates an array of points from the input stream s.
- Point3dSArray1dC(const SArray1dC<Point3dC> & points)
-
Constructs an array of points from the array (as a big object).
- Point3dSArray1dC(const Point3dSArray1dC & points)
-
Another access to the array of points.
- Mean3dC Mean() const
-
Returns the mean of the points (e.g. the centroid).
- MeanCovariance3dC MeanCov() const
-
Returns the mean and the covariance matrix of the points.
- PlanePVV3dC Plane01() const
-
Returns the plane determined by the mean and two eigenvectors
corresponding to the two biggest eigenvalues
of the covariance matrix of the points.
- Line3dPVC Line0() const
-
Return the line determined by the mean and the eigenvector
corresponding to the biggest eigenvalue of the covariance matrix
of the points.
- SArray1dC<Point3dC> Copy() const
-
Creates a new physical copy of the array.
- const SArray1dC<Point3dC> & operator=(const SArray1dC<Point3dC> & vv)
-
Assigment, as for a BIG_OBJECT.
Access to the object and its parts.
-----------------------------------
- const SArray1dC<Point3dC> & SArray1d() const
-
Access to the whole constant array.
- SArray1dC<Point3dC> & SArray1d()
-
Access to the whole array.
Modifications of the representation
-----------------------------------
- SArray1dC<Point3dC> Enlarge(const IntT factor = 2) const
-
Enlarges the array by item duplications. Every item is duplicated
'factor' times. The return array is extended by adding of higher
indexes.
- SArray1dC<Point3dC> & Append(const SArray1dC<Point3dC> & a)
-
This array is extended by the length of the array 'a' and the contents
of both arrays are copied to it. The function supports empty arrays.
- SArray1dC<Point3dC> Join(const SArray1dC<Point3dC> & Oth) const
-
Join this Array and another into a new Array which
is returned. This does not change either of its arguments.
This is placed in the array first, followed by 'Oth'.
Special operations
------------------
- void DebugAddresses() const
-
Prints addresses into 'cerrAMMA'.
- const BodyRefCounterC & RefCounter() const
-
Returns access to reference counter.
- BufferRC<Point3dC> & Buffer()
-
Access base data buffer.
Experts only.
- const BufferRC<Point3dC> & Buffer() const
-
Constant access base data buffer.
Experts only.
- Point3dC * DataStart() const
-
Returns the address of the first item if exists.
- const SizeBufferAccessC<Point3dC> & operator=(Point3dC * bp)
-
Changes the reference element to the element pointed by 'bp'.
Access to the object
--------------------
- Point3dC * ReferenceElm(void) const
-
Returns the pointer to the reference element of the attached buffer.
The reference element need not to be the valid element of the buffer.
- void * ReferenceVoid(void) const
-
Returns the pointer to the reference element of the attached buffer.
The reference element need not to be the valid element of the buffer.
The function is intended to be used in printing.
- const BufferAccessC<Point3dC> & Access(void) const
-
Returns this object.
- Point3dC * DataStart() const
-
Returns the address of the first element of the buffer.
- SizeT N() const
-
Returns the number of elements of the array.
- SizeT Size() const
-
Returns the number of elements of the array.
- const BufferSizeC & Limits() const
-
Returns the usable range of indeces expressed by this object.
- const BufferSizeC & Range() const
-
Returns the usable range of indeces expressed by this object.
- IndexT IMin() const
-
Returns the minimum index of the range of this access.
- IndexT IMax() const
-
Returns the maximum index of the range of this access.
- const Point3dC & operator[](const IndexT i) const
-
Read-only access to the ('i'+1)-th element of the buffer.
- Point3dC & operator[](const IndexT i)
-
Read-write access to the ('i'+1)-th element of the buffer.
- const SizeBufferAccessC<Point3dC> & SAccess(void) const
-
Returns this object.
Logical functions
-----------------
- BooleanT IsEmpty() const
-
Returns TRUE if the size of the array is zero.
- BooleanT Contains(const IndexT i) const
-
Returns TRUE if the array contains an item with the index 'i'.
Modifications of the access
---------------------------
- const BufferSizeC & ShrinkHigh(const SizeT k)
-
Changes the number of elements by subtracting the last 'k' elements.
- const SizeBufferAccessC<Point3dC> & Swap(SizeBufferAccessC<Point3dC> & a)
-
Exchanges the contents of this buffer with buffer 'a'.
- void Attach(const SizeBufferAccessC<Point3dC> & b)
-
Changes this buffer access to have the same access rights as 'b'.
- void Attach(const BufferAccessC<Point3dC> & b,const SizeT size)
-
Changes this buffer access to have the access rights as 'b' limited
for 'size' elements.
- SizeBufferAccessC<Point3dC> operator+(const SizeT i) const
-
Creates the new access object shifted 'i' elements to the right
(towards next elements). The size is descreased to fit the
the original range of this access.
Modifications of the buffer contents
------------------------------------
- void Fill(const Point3dC & d)
-
'd' value is assigned to all elements of the buffer.
- void CopyFrom(const SizeBufferAccessC<Point3dC> & oth)
-
Copy contents of another buffer into this one.
NB. Buffers MUST be the same length.
- SizeBufferAccessC<Point3dC> Copy(void) const
-
Returns a physical copy of this access pointing to the physical
copy of the accessed buffer in the range accessible by this access.
The new copy is necessary to attach to reference counted buffer
or to delete at the end of the life of this object.
|
Programmer:Radek Marik, Documentation by CxxDoc: Tue Mar 20 10:49:27 2001
|