MyCaffe  1.12.2.41
Deep learning software for Windows C# programmers.
Interfaces.cs
1using MyCaffe.basecode;
2using MyCaffe.common;
3using MyCaffe.db.stream;
4using System;
5using System.Collections.Generic;
6using System.Drawing;
7using System.Linq;
8using System.ServiceModel;
9using System.Text;
10using System.Threading.Tasks;
11
13{
17 [ServiceContract(CallbackContract = typeof(IXStreamDatabaseEvent), SessionMode = SessionMode.Required)]
18 public interface IXMyCaffePreprocessor<T>
19 {
27 void Initialize(IXMyCaffe<T> imycaffe, IXStreamDatabase istrm, string strPreProcessorDLLPath, PropertySet properties);
31 void Shutdown();
36 void Reset(int nStartOffset = 0);
43 Tuple<Blob<T>, SimpleDatum> Step(bool bGetSimpleDatum, int nWait = 1000);
49 Tuple<Bitmap, SimpleDatum> Render(SimpleDatum sd);
50 }
51}
Specifies a key-value pair of properties.
Definition: PropertySet.cs:16
The SimpleDatum class holds a data input within host memory.
Definition: SimpleDatum.cs:161
The IXMyCaffe interface contains functions used to perform MyCaffe operations that work with the MyCa...
Definition: Interfaces.cs:410
The IXStreamDatabase interface is the main interface to the MyCaffe Streaing Database.
Definition: Interfaces.cs:52
The IXPreprocessor interface is used to query pre-processed data from a streaming database.
Definition: Interfaces.cs:19
Tuple< Bitmap, SimpleDatum > Render(SimpleDatum sd)
Render the data within the
void Initialize(IXMyCaffe< T > imycaffe, IXStreamDatabase istrm, string strPreProcessorDLLPath, PropertySet properties)
Initialize the pre-processor with an existing instance of MyCaffe and a streaming database.
void Shutdown()
Shutdown any internal threads used.
Tuple< Blob< T >, SimpleDatum > Step(bool bGetSimpleDatum, int nWait=1000)
Step through the data of the streaming database, pre-process it, and return the data as a Blob.
void Reset(int nStartOffset=0)
Reset the querying to the start specified within the streaming database, optionally with an offset.
The MyCaffe.basecode contains all generic types used throughout MyCaffe.
Definition: Annotation.cs:12
The MyCaffe.common namespace contains common MyCaffe classes.
Definition: BatchInput.cs:8
The MyCaffe.db.stream namespace contains all data streaming related classes.
The MyCaffe.preprocessor namespace contains all classes of the data preprocessors supported by MyCaff...
Definition: Extension.cs:9
The MyCaffe namespace contains the main body of MyCaffe code that closesly tracks the C++ Caffe open-...
Definition: Annotation.cs:12