class FrameSelectorDataSet

A dataset used to select some frames of another dataset.

Inheritance:


Public Fields

[more]DataSet* data
DataSet where we will select frames
[more]int* n_selected_input_frames
Number of input selected frames, for each example
[more]int* n_selected_target_frames
Number of target selected frames, for each example
[more]int** input_frames_indices
Indices of input selected frames, for each example
[more]int** target_frames_indices
Indices of target selected frames, for each example

Public Methods

[more] FrameSelectorDataSet(DataSet* data_)
[more]void selectInputFrames(int t_, int* frames_indices_, int n_frames_)
Select input frames of the example t.
[more]void selectTargetFrames(int t_, int* frames_indices_, int n_frames_)
Same as selectInputFrames(), but for targets
[more]void unselectInputFrames(int t_)
Unselect inputs frames of the example t.
[more]void unselectTargetFrames(int t_)
Unselect targets frames of the example t.


Inherited from DataSet:

Public Fields

oint* selected_examples
oint n_inputs
oint n_targets
oint real_current_example_index
oSequence* inputs
oSequence* targets
oint n_examples
oint n_real_examples

Public Methods

ovoid init(int n_examples_, int n_inputs_, int n_targets_)
ovoid setExample(int t, bool set_inputs=true, bool set_targets=true)
ovirtual void setRealExample(int t, bool set_inputs=true, bool set_targets=true)
ovirtual void pushSubset(int* subset_, int n_examples_)
ovirtual void popSubset()
ovirtual void pushExample()
ovirtual void popExample()
ovirtual void getNumberOfFrames(int t, int* n_input_frames, int* n_target_frames)
ovirtual void preProcess(PreProcessing* pre_processing)


Inherited from Object:

Public Fields

oAllocator* allocator

Public Methods

ovoid addOption(const char* name, int size, void* ptr, const char* help="")
ovoid addIOption(const char* name, int* ptr, int init_value, const char* help="")
ovoid addROption(const char* name, real* ptr, real init_value, const char* help="")
ovoid addBOption(const char* name, bool* ptr, bool init_value, const char* help="")
ovoid addOOption(const char* name, Object** ptr, Object* init_value, const char* help="")
ovoid setOption(const char* name, void* ptr)
ovoid setIOption(const char* name, int option)
ovoid setROption(const char* name, real option)
ovoid setBOption(const char* name, bool option)
ovoid setOOption(const char* name, Object* option)
ovirtual void loadXFile(XFile* file)
ovirtual void saveXFile(XFile* file)
ovoid load(const char* filename)
ovoid save(const char* filename)
ovoid* operator new(size_t size, Allocator* allocator_=NULL)
ovoid* operator new(size_t size, Allocator* allocator_, void* ptr_)
ovoid operator delete(void* ptr)


Documentation

A dataset used to select some frames of another dataset. It takes a dataset in the constructor. Then you call select functions to select frames. After that, when you will do a setExample() the example of the previous dataset will be returned in inputs and targets fields, with the right frames...

oDataSet* data
DataSet where we will select frames

oint* n_selected_input_frames
Number of input selected frames, for each example

oint* n_selected_target_frames
Number of target selected frames, for each example

oint** input_frames_indices
Indices of input selected frames, for each example

oint** target_frames_indices
Indices of target selected frames, for each example

o FrameSelectorDataSet(DataSet* data_)

ovoid selectInputFrames(int t_, int* frames_indices_, int n_frames_)
Select input frames of the example t. Frames indices are given by frames_indices_. The size of frames_indices_ is given by n_frames_. Takes in account pushed subsets.

ovoid selectTargetFrames(int t_, int* frames_indices_, int n_frames_)
Same as selectInputFrames(), but for targets

ovoid unselectInputFrames(int t_)
Unselect inputs frames of the example t. Takes in account pushed subsets.

ovoid unselectTargetFrames(int t_)
Unselect targets frames of the example t. Takes in account pushed subsets.


This class has no child classes.
Author:
Ronan Collobert (collober@idiap.ch)

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.