2using System.Collections.Generic;
43 protected virtual void Dispose(
bool bDisposing)
The LabelMapping class represents a single label mapping.
int ID
Get/set the database ID of the item.
The SourceDescriptor class contains all information describing a data source.
The DatasetFactory manages the connection to the Database object.
void AddLabelBoost(int nProjectId, int nLabel, double dfBoost, int nSrcId=0)
Add a label boost to the database for a given project.
void ResetLabels(int nProjectId=0, int nSrcId=0)
Resets all labels back to their original labels for a project.
void UpdateLabelCounts(Dictionary< int, int > rgCounts)
Updates the label counts in the database for the open data source.
string GetLabelCountsAsText(int nSrcId)
Returns the label counts for a given data source.
void UpdateLabelMapping(int nNewLabel, List< int > rgOriginalLabels, int nSrcId=0)
Update a label mapping in the database for a data source.
void Close()
Close the current data source used.
void SetLabelMapping(LabelMapping map, int nSrcId=0)
Saves a label mapping in the database for a data source.
Dictionary< int, int > LoadLabelCounts(int nSrcId=0)
Load the label counts from the database for a data source.
void Dispose()
Releases all resources used.
void DeleteLabelBoosts(int nProjectId, int nSrcId=0)
Delete all label boosts for a project.
string GetLabelBoostsAsText(int nProjectId, int nSrcId=0, bool bSort=true)
Returns the Label boosts as a string.
void Open(SourceDescriptor src, int nCacheMax=500, ConnectInfo ci=null)
Open a given data source.
The ImageSetBase class contains the list of image for a data source as well as a list of LabelSets th...
SourceDescriptor Source
Returns the data source of the image set.
string GetLabelBoostsAsText(int nProjectId)
Returns the label boosts as text.
DatasetFactory m_factory
Specifies the DatasetFactory used to work with the underlying database.
virtual void Dispose(bool bDisposing)
Releases the resouces used.
void DeleteLabelBoosts(int nProjectId)
Deletes the label boosts for a project.
string GetLabelCountsAsText()
Returns the label counts for the ImageList as text.
void Dispose()
Releases the resouces used.
void ResetLabels(int nProjectId)
Resets the labels for a project.
void UpdateLabelCounts(int nProjectId)
Updates the label counts for a project.
ImageSetBase(DatasetFactory factory, SourceDescriptor src)
The ImageSet constructor.
Dictionary< int, int > LoadLabelCounts()
Returns the label counts as a dictionary of item pairs (int nLabel, int nCount).
SourceDescriptor m_src
Specifies the data source used with this Image Set.
void SetLabelMapping(LabelMapping map)
Set the label mapping of the ImageSet.
void UpdateLabelMapping(int nNewLabel, List< int > rgOriginalLabels)
Update the label mapping on the ImageSet.
void AddLabelBoost(int nProjectId, int nLabel, double dfBoost)
Adds a label boost for a project.
The descriptors namespace contains all descriptor used to describe various items stored within the da...
The MyCaffe.basecode contains all generic types used throughout MyCaffe.
The MyCaffe.db.image namespace contains all image database related classes.
The MyCaffe namespace contains the main body of MyCaffe code that closesly tracks the C++ Caffe open-...