Class that maintains the collection of Training Images inside a Minos Training Set.
More...
#include <cvb/minos/training_set.hpp>
|
int | Count () const |
| Retrieves the number of elements in the collection.
|
|
std::unique_ptr< ImageInfo > | ReadInfo (int index) const |
| Retrieves the indexed image information block.
|
|
std::vector< std::unique_ptr< ImageInfo > > | ReadInfos () const |
| Retrieves all the items stored in the collection.
|
|
int | IndexOf (const ImageInfo &obj) const |
| Determine the index of an image information object inside this collection.
|
|
void | Add (const ImagePlane &plane) |
| Add a new training set image to the parent training set.
|
|
bool | Remove (const ImageInfo &image) |
| Remove a training set image along with its instances from the training set.
|
|
bool | RemoveAt (int index) |
| Remove a training set image along with its instances from the training set.
|
|
Class that maintains the collection of Training Images inside a Minos Training Set.
◆ Add()
Add a new training set image to the parent training set.
- Parameters
-
[in] | plane | Plane of an image to be added. |
- Exceptions
-
Minos only supports gray value images. When adding a color or multi planar Image you will need to choose which of the planes of the image to add.
◆ Count()
Retrieves the number of elements in the collection.
- Returns
- Number of elements in the collection.
- Exceptions
-
◆ IndexOf()
Determine the index of an image information object inside this collection.
- Parameters
-
[in] | obj | Object for which to determine the index. |
- Returns
- Index through which the object can be accessed within this collection if it is part of this collection, -1 otherwise.
- Exceptions
-
Note that the returned index may be invalidated by Remove calls.
◆ ReadInfo()
Retrieves the indexed image information block.
- Parameters
-
[in] | index | Index of the collection to be accessed. |
- Returns
- Image information.
- Exceptions
-
◆ ReadInfos()
Retrieves all the items stored in the collection.
- Returns
- The collection items.
- Exceptions
-
◆ Remove()
Remove a training set image along with its instances from the training set.
- Parameters
-
[in] | image | Training set image to be removed |
- Returns
- True if the image has been removed successfully, false otherwise.
- Exceptions
-
Calling this method will potentially invalidate any references to training set images or instances you are currently holding - so make sure you renew those where necessary!
◆ RemoveAt()
bool RemoveAt |
( |
int | index | ) |
|
|
inline |
Remove a training set image along with its instances from the training set.
- Parameters
-
[in] | index | Index of the training set image to be removed. |
- Returns
- True if the image has been removed successfully, false otherwise.
- Exceptions
-
Calling this method will potentially invalidate any references to training set images or instances you are currently holding - so make sure you renew those where necessary!