MyCaffe
1.12.2.41
Deep learning software for Windows C# programmers.
|
The LabelSet 'points' into the main image list via references objects that are already created in the main image list of the ImageSet. More...
Public Member Functions | |
LabelSet (LabelDescriptor lbl, CryptoRandom random) | |
The LabelSet constructor. More... | |
void | Clear () |
Clears the list of images. More... | |
void | Add (SimpleDatum s) |
Adds an image to the current index and then advances the internal index. More... | |
SimpleDatum | GetImage (int nIdx, DB_ITEM_SELECTION_METHOD selectionMethod) |
Returns an image from the LabelSet using the image selection method. More... | |
void | Unload () |
Unload all images from the label set. More... | |
void | Dispose () |
Releases all resources used. More... | |
Static Public Member Functions | |
static SimpleDatum | GetImage (SimpleDatum[] rgImages, List< int > rgIdx, int nCount, int nIdx, CryptoRandom random, DB_ITEM_SELECTION_METHOD selectionMethod, ref int nLastIndex, ref int nFixedIndex, out int nImageIdx) |
Returns an image from a list of images. More... | |
Protected Member Functions | |
virtual void | Dispose (bool bDisposing) |
Releases all resources used. More... | |
Properties | |
LabelDescriptor | Label [getset] |
Get/set the label of the LabelSet. More... | |
int | Count [get] |
Returns the number of images in the label set. More... | |
SimpleDatum | this[int nIdx] [getset] |
Get/set an image at an index within the LabelSet. More... | |
bool | IsLoaded [get] |
Returns whether or not the label set is fully loaded or not (which is the case when first using LOAD_ON_DEMAND). More... | |
The LabelSet 'points' into the main image list via references objects that are already created in the main image list of the ImageSet.
Definition at line 14 of file Labelset.cs.
MyCaffe.db.image.LabelSet.LabelSet | ( | LabelDescriptor | lbl, |
CryptoRandom | random | ||
) |
The LabelSet constructor.
lbl | Specifies the label. |
random | Specifies the random number generator. |
Definition at line 27 of file Labelset.cs.
void MyCaffe.db.image.LabelSet.Add | ( | SimpleDatum | s | ) |
Adds an image to the current index and then advances the internal index.
s | Specifies the image. |
Definition at line 88 of file Labelset.cs.
void MyCaffe.db.image.LabelSet.Clear | ( | ) |
Clears the list of images.
Definition at line 54 of file Labelset.cs.
void MyCaffe.db.image.LabelSet.Dispose | ( | ) |
Releases all resources used.
Definition at line 237 of file Labelset.cs.
|
protectedvirtual |
Releases all resources used.
bDisposing | Set to true when called from Dispose(). |
Definition at line 225 of file Labelset.cs.
SimpleDatum MyCaffe.db.image.LabelSet.GetImage | ( | int | nIdx, |
DB_ITEM_SELECTION_METHOD | selectionMethod | ||
) |
Returns an image from the LabelSet using the image selection method.
nIdx | Specifies the index to use when performing sequential selection. |
selectionMethod | Specifies the image selection method. |
Definition at line 103 of file Labelset.cs.
|
static |
Returns an image from a list of images.
rgImages | Specifies the image list to select from. |
rgIdx | Specifies the list of indexes to choose from. |
nCount | Specifies the maximum count to use. |
nIdx | Specifies the index to use when selecting sequentially or in pair selection. |
random | Specifies the random number generator to use. |
selectionMethod | Specifies the image selection method. |
nLastIndex | Specifies the last index used. |
nFixedIndex | Specifies the fixed index to use. |
nImageIdx | Returns the image index used. |
Definition at line 131 of file Labelset.cs.
void MyCaffe.db.image.LabelSet.Unload | ( | ) |
Unload all images from the label set.
Definition at line 213 of file Labelset.cs.
|
get |
Returns the number of images in the label set.
Definition at line 46 of file Labelset.cs.
|
get |
Returns whether or not the label set is fully loaded or not (which is the case when first using LOAD_ON_DEMAND).
Definition at line 74 of file Labelset.cs.
|
getset |
Get/set the label of the LabelSet.
Definition at line 37 of file Labelset.cs.
|
getset |
Get/set an image at an index within the LabelSet.
nIdx | Specifies the index. |
Definition at line 65 of file Labelset.cs.