Collection of class information inside a classification sample list.
More...
#include <sample_classification_image_list.hpp>
Inherits LabelInfoCollection< ImageClassificationLabelInfo >.
|
using | LabelType |
| Type of the labels.
|
|
Collection of class information inside a classification sample list.
cvb/sample_database/sample_classification_image_list.hpp
◆ Add()
Add a sample to a new class. If the class indicated by the label already exists the sample will be added to the existing class.
- Parameters
-
[in] | label | Name of the new class. |
[in] | srcImage | Image from which to extract the first sample for the new class. |
[in] | extractionLocation | Location at which to extract the first sample for the new class. Note that what the extraction location actually refers dependent on the value of the mode parameter. |
- Parameters
-
[in] | mode | Interpretation hint for the extractionLocation parameter. |
- Exceptions
-
◆ HasLabel()
bool HasLabel |
( |
const String & | label | ) |
|
|
inline |
Check if a given label is already present in the classes collection.
- Parameters
-
[in] | label | Label to test for. |
- Returns
- True if a class with the specified label already exists, false otherwise.
- Exceptions
-