MyCaffe
1.12.2.41
Deep learning software for Windows C# programmers.
|
The ImageSetBase class contains the list of image for a data source as well as a list of LabelSets that map into it. More...
Public Member Functions | |
ImageSetBase (DatasetFactory factory, SourceDescriptor src) | |
The ImageSet constructor. More... | |
void | Dispose () |
Releases the resouces used. More... | |
void | SetLabelMapping (LabelMapping map) |
Set the label mapping of the ImageSet. More... | |
void | UpdateLabelMapping (int nNewLabel, List< int > rgOriginalLabels) |
Update the label mapping on the ImageSet. More... | |
void | ResetLabels (int nProjectId) |
Resets the labels for a project. More... | |
void | DeleteLabelBoosts (int nProjectId) |
Deletes the label boosts for a project. More... | |
void | AddLabelBoost (int nProjectId, int nLabel, double dfBoost) |
Adds a label boost for a project. More... | |
string | GetLabelBoostsAsText (int nProjectId) |
Returns the label boosts as text. More... | |
Dictionary< int, int > | LoadLabelCounts () |
Returns the label counts as a dictionary of item pairs (int nLabel, int nCount). More... | |
void | UpdateLabelCounts (int nProjectId) |
Updates the label counts for a project. More... | |
string | GetLabelCountsAsText () |
Returns the label counts for the ImageList as text. More... | |
Protected Member Functions | |
virtual void | Dispose (bool bDisposing) |
Releases the resouces used. More... | |
Protected Attributes | |
DatasetFactory | m_factory |
Specifies the DatasetFactory used to work with the underlying database. More... | |
SourceDescriptor | m_src |
Specifies the data source used with this Image Set. More... | |
Properties | |
SourceDescriptor | Source [get] |
Returns the data source of the image set. More... | |
The ImageSetBase class contains the list of image for a data source as well as a list of LabelSets that map into it.
Definition at line 16 of file ImageSetBase.cs.
MyCaffe.db.image.ImageSetBase.ImageSetBase | ( | DatasetFactory | factory, |
SourceDescriptor | src | ||
) |
The ImageSet constructor.
factory | Specifies the DatasetFactory. |
src | Specifies the data source. |
Definition at line 32 of file ImageSetBase.cs.
void MyCaffe.db.image.ImageSetBase.AddLabelBoost | ( | int | nProjectId, |
int | nLabel, | ||
double | dfBoost | ||
) |
Adds a label boost for a project.
nProjectId | Specifies the ID of the project. |
nLabel | Specifies the label. |
dfBoost | Specifies the label boost. |
Definition at line 112 of file ImageSetBase.cs.
void MyCaffe.db.image.ImageSetBase.DeleteLabelBoosts | ( | int | nProjectId | ) |
Deletes the label boosts for a project.
nProjectId | Specifies the ID of the project. |
Definition at line 101 of file ImageSetBase.cs.
void MyCaffe.db.image.ImageSetBase.Dispose | ( | ) |
Releases the resouces used.
Definition at line 56 of file ImageSetBase.cs.
|
protectedvirtual |
Releases the resouces used.
bDisposing | Set to true when called by Dispose() |
Reimplemented in MyCaffe.db.image.ImageSet2.
Definition at line 43 of file ImageSetBase.cs.
string MyCaffe.db.image.ImageSetBase.GetLabelBoostsAsText | ( | int | nProjectId | ) |
Returns the label boosts as text.
nProjectId | Specifies the ID of the project. |
Definition at line 122 of file ImageSetBase.cs.
string MyCaffe.db.image.ImageSetBase.GetLabelCountsAsText | ( | ) |
Returns the label counts for the ImageList as text.
Definition at line 149 of file ImageSetBase.cs.
Dictionary< int, int > MyCaffe.db.image.ImageSetBase.LoadLabelCounts | ( | ) |
Returns the label counts as a dictionary of item pairs (int nLabel, int nCount).
Definition at line 131 of file ImageSetBase.cs.
void MyCaffe.db.image.ImageSetBase.ResetLabels | ( | int | nProjectId | ) |
Resets the labels for a project.
nProjectId | Specifies the ID of the project. |
Definition at line 92 of file ImageSetBase.cs.
void MyCaffe.db.image.ImageSetBase.SetLabelMapping | ( | LabelMapping | map | ) |
Set the label mapping of the ImageSet.
map | Specifies the label map. |
Definition at line 73 of file ImageSetBase.cs.
void MyCaffe.db.image.ImageSetBase.UpdateLabelCounts | ( | int | nProjectId | ) |
Updates the label counts for a project.
nProjectId | Specifies the ID of the project. |
Definition at line 140 of file ImageSetBase.cs.
void MyCaffe.db.image.ImageSetBase.UpdateLabelMapping | ( | int | nNewLabel, |
List< int > | rgOriginalLabels | ||
) |
Update the label mapping on the ImageSet.
nNewLabel | Specifies the new label. |
rgOriginalLabels | Specifies the labels to be mapped to the new label. |
Definition at line 83 of file ImageSetBase.cs.
|
protected |
Specifies the DatasetFactory used to work with the underlying database.
Definition at line 21 of file ImageSetBase.cs.
|
protected |
Specifies the data source used with this Image Set.
Definition at line 25 of file ImageSetBase.cs.
|
get |
Returns the data source of the image set.
Definition at line 64 of file ImageSetBase.cs.