#include <Seg_Algorithm.hpp>
Inheritance diagram for Seg_Algorithm:
Public Member Functions | |
virtual uint | Get_N () |
Get the number of points. | |
virtual uint | Get_K () |
virtual void | Init_Labels (vector< uint > const &labs) |
Initialize with labels. | |
virtual void | Init_Random () |
Initialize randomly. | |
bool | HasConverged () |
True if the algorithm has converged (the criterion has reached the limit). | |
virtual void | Compute_MAP_Labels (vector< uint > &Labels) |
Compute MAP labels -- segmentation result. | |
virtual void | Compute_fuzzy (uint i, vector< double > &probs) |
virtual void | Compute_CLCrit () |
Completed likelihood criterion. | |
virtual void | Compute_FuzzyCrit () |
Fuzzy classification criterion. | |
virtual void | Compute_HardCrit () |
Hard classification criterion. | |
void | Display_Stopping_Rule () |
display info about the criteria | |
void | Update_Stopping_Rules () |
Recompute criteria values. | |
void | Use_Default_Stopping_Rule () |
Set the criterion to the default. | |
void | Set_Stopping_Rule (uint crit, double tol) |
Set the criterion to a given one. | |
virtual void | Info () |
Display some runtime information ... | |
virtual void | Run (uint nbiter) |
Run for a number of iterations ... | |
void | RunUntilConvergence () |
Run until the convergence test is ok ... | |
virtual void | M_Step () |
M-step. | |
virtual void | E_Step () |
E-step. | |
Protected Attributes | |
vector< double > | fuzzy |
Fuzzy classification. | |
vector< double > | Crit_Values |
All values of stopping criteria. | |
uint | Criterion |
Current (chosen) stopping criterion. | |
double | Tol |
limit value of the stopping criterion | |
double | Old_CL |
Old value of completed likelihood. | |
vector< double > | old_fuzzy |
Old value of fuzzy classification. | |
vector< uint > | old_map_labs |
Old map labels. |