Base class for sample lists.
More...
#include <cvb/sample_database/sample_list.hpp>
Inherited by SampleImageList.
Base class for sample lists.
Sample lists can serve two different purposes: Classification or Regression. For each case, a separate derived class has been implemented SampleClassificationImageList and SampleRegressionImageList, while this class contains those elements that are common to both types of classifier.
◆ AverageSampleCount()
double AverageSampleCount |
( |
| ) |
const |
|
inline |
Average number samples in per class of the sample list.
- Returns
- Average sample count.
- Exceptions
-
◆ Comment()
Get the comment text.
- Returns
- The comment.
- Exceptions
-
◆ CreationDate()
std::chrono::system_clock::time_point CreationDate |
( |
| ) |
const |
|
inline |
Date on which the sample list was created.
- Returns
- The creation date.
- Exceptions
-
◆ FileName()
Name of the file from which this image list was loaded (empty string if this image list was neither loaded nor saved since its construction).
- Returns
- The file name.
- Exceptions
-
◆ Handle()
Classic API SIL handle.
- Returns
- Classic API handle.
- Exceptions
-
Does | not throw any exception. |
It is normally not necessary to work with this handle.
◆ MaxSampleCount()
int MaxSampleCount |
( |
| ) |
const |
|
inline |
Number samples in the largest class of the sample list.
- Returns
- Max sample count.
- Exceptions
-
◆ MinSampleCount()
int MinSampleCount |
( |
| ) |
const |
|
inline |
Number samples in the smallest class of the sample list.
- Returns
- Min sample count.
- Exceptions
-
◆ ModificationDate()
std::chrono::system_clock::time_point ModificationDate |
( |
| ) |
const |
|
inline |
Date on which the sample list was modified.
- Returns
- The modification date.
- Exceptions
-
◆ NumClasses()
Number of distinguishable classes in the sample list.
- Returns
- Number of classes.
- Exceptions
-
◆ NumSamples()
Total number of samples in the sample list.
- Returns
- Number of samples.
- Exceptions
-
◆ Save()
void Save |
( |
const String & |
fileName | ) |
const |
|
inline |
Save the sample list to a file.
- Parameters
-
[in] | fileName | Path to save to. |
- Exceptions
-
As a side effect this function sets the IsModified flag to false, if the training set was saved successfully.
◆ SetComment()
void SetComment |
( |
String |
comment | ) |
|
|
inline |
Set the comment text.
- Parameters
-
- Exceptions
-