MyCaffe  1.12.2.41
Deep learning software for Windows C# programmers.
MyCaffe.db.image.ImageSetBase Class Reference

The ImageSetBase class contains the list of image for a data source as well as a list of LabelSets that map into it. More...

Inheritance diagram for MyCaffe.db.image.ImageSetBase:
MyCaffe.db.image.ImageSet2

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ImageSetBase()

MyCaffe.db.image.ImageSetBase.ImageSetBase ( DatasetFactory  factory,
SourceDescriptor  src 
)

The ImageSet constructor.

Parameters
factorySpecifies the DatasetFactory.
srcSpecifies the data source.

Definition at line 32 of file ImageSetBase.cs.

Member Function Documentation

◆ AddLabelBoost()

void MyCaffe.db.image.ImageSetBase.AddLabelBoost ( int  nProjectId,
int  nLabel,
double  dfBoost 
)

Adds a label boost for a project.

Parameters
nProjectIdSpecifies the ID of the project.
nLabelSpecifies the label.
dfBoostSpecifies the label boost.

Definition at line 112 of file ImageSetBase.cs.

◆ DeleteLabelBoosts()

void MyCaffe.db.image.ImageSetBase.DeleteLabelBoosts ( int  nProjectId)

Deletes the label boosts for a project.

Parameters
nProjectIdSpecifies the ID of the project.

Definition at line 101 of file ImageSetBase.cs.

◆ Dispose() [1/2]

void MyCaffe.db.image.ImageSetBase.Dispose ( )

Releases the resouces used.

Definition at line 56 of file ImageSetBase.cs.

◆ Dispose() [2/2]

virtual void MyCaffe.db.image.ImageSetBase.Dispose ( bool  bDisposing)
protectedvirtual

Releases the resouces used.

Parameters
bDisposingSet to true when called by Dispose()

Reimplemented in MyCaffe.db.image.ImageSet2.

Definition at line 43 of file ImageSetBase.cs.

◆ GetLabelBoostsAsText()

string MyCaffe.db.image.ImageSetBase.GetLabelBoostsAsText ( int  nProjectId)

Returns the label boosts as text.

Parameters
nProjectIdSpecifies the ID of the project.
Returns
The label boosts are returned.

Definition at line 122 of file ImageSetBase.cs.

◆ GetLabelCountsAsText()

string MyCaffe.db.image.ImageSetBase.GetLabelCountsAsText ( )

Returns the label counts for the ImageList as text.

Returns
The label counts are retuned.

Definition at line 149 of file ImageSetBase.cs.

◆ LoadLabelCounts()

Dictionary< int, int > MyCaffe.db.image.ImageSetBase.LoadLabelCounts ( )

Returns the label counts as a dictionary of item pairs (int nLabel, int nCount).

Returns
The label counts are returned as item pairs (int nLabel, int nCount).

Definition at line 131 of file ImageSetBase.cs.

◆ ResetLabels()

void MyCaffe.db.image.ImageSetBase.ResetLabels ( int  nProjectId)

Resets the labels for a project.

Parameters
nProjectIdSpecifies the ID of the project.

Definition at line 92 of file ImageSetBase.cs.

◆ SetLabelMapping()

void MyCaffe.db.image.ImageSetBase.SetLabelMapping ( LabelMapping  map)

Set the label mapping of the ImageSet.

Parameters
mapSpecifies the label map.

Definition at line 73 of file ImageSetBase.cs.

◆ UpdateLabelCounts()

void MyCaffe.db.image.ImageSetBase.UpdateLabelCounts ( int  nProjectId)

Updates the label counts for a project.

Parameters
nProjectIdSpecifies the ID of the project.

Definition at line 140 of file ImageSetBase.cs.

◆ UpdateLabelMapping()

void MyCaffe.db.image.ImageSetBase.UpdateLabelMapping ( int  nNewLabel,
List< int >  rgOriginalLabels 
)

Update the label mapping on the ImageSet.

Parameters
nNewLabelSpecifies the new label.
rgOriginalLabelsSpecifies the labels to be mapped to the new label.

Definition at line 83 of file ImageSetBase.cs.

Member Data Documentation

◆ m_factory

DatasetFactory MyCaffe.db.image.ImageSetBase.m_factory
protected

Specifies the DatasetFactory used to work with the underlying database.

Definition at line 21 of file ImageSetBase.cs.

◆ m_src

SourceDescriptor MyCaffe.db.image.ImageSetBase.m_src
protected

Specifies the data source used with this Image Set.

Definition at line 25 of file ImageSetBase.cs.

Property Documentation

◆ Source

SourceDescriptor MyCaffe.db.image.ImageSetBase.Source
get

Returns the data source of the image set.

Definition at line 64 of file ImageSetBase.cs.


The documentation for this class was generated from the following file: