#include <ncutCore.h>
Public Member Functions | |
const Matrix * | similarity () const |
Get a pointer to the similarity matrix. | |
double | assoc (unsigned int i) const |
Get the total association of element with index i. | |
const double * | assoc () const |
Get a pointer to the total association array. | |
unsigned int | dim () const |
Get the dimension of this ncut. | |
double | eigVal (unsigned int i) const |
Get the eigenvalue of the eigenvector with index i. | |
const double * | eigVal () const |
Get a pointer to the eigenvalue array. | |
double | eigVec (unsigned int i) const |
Get the eigenvector component with index i. | |
const double * | eigVec () const |
Get a pointer to the eigenvectors array. | |
unsigned int | nConv () const |
Get the number of converged eigenvectors. | |
int | calculate (unsigned int nEigVecs, double *initVec=NULL) |
Calculate one minimal ncut. | |
Ncut (const Matrix *similarity) | |
Ncut can be constructed from a similarity matrix. | |
Ncut (const Ncut &clone) | |
Ncut copy constructor. | |
virtual | ~Ncut () |
Ncut destructor. | |
virtual Ncut & | operator= (const Ncut &clone) |
Ncut assignment operator. | |
Protected Attributes | |
const Matrix * | similarity_ |
unsigned int | dim_ |
double * | assoc_ |
double * | eigVal_ |
double * | eigVec_ |
unsigned int | nConv_ |
This class is used by NcutNode to calculate the ncuts and construct the tree accordingly. Do not use Ncut
directly, use the functions provided by the class Segmentation
.
|
Ncut can be constructed from a similarity matrix.
|
|
Ncut copy constructor.
clone . |
|
Get a pointer to the total association array.
|
|
Get the total association of element with index i.
|
|
Calculate one minimal ncut.
nEigVecs eigenvectors and eigenvalues, but nEigVecs eigenvectors are not guaranteed. Use nConv to obtain the actual number of calculated eigenvectors. |
|
Get the dimension of this ncut.
|
|
Get a pointer to the eigenvalue array.
|
|
Get the eigenvalue of the eigenvector with index i.
|
|
Get a pointer to the eigenvectors array.
|
|
Get the eigenvector component with index i.
|
|
Get the number of converged eigenvectors.
|
|
Ncut assignment operator.
|
|
Get a pointer to the similarity matrix.
|
|
an array containing the total association of each node |
|
the dimension of the ncut (= similarity matrix dimension) |
|
an array of the calculated eigenvalues (its length is |
|
an array of the calculated eigenvectors (its length is |
|
the actual number of converged eigenvalues and -vectors |
|
the similarity matrix on which the ncut is calculated |