C# Class FeatureExtractionLib.FeatureExtraction

Afficher le fichier Open project: arunganesan/hand-gesture-recognition Class Usage Examples

Méthodes publiques

Свойство Type Description
directory string
num_classes_ int

Méthodes publiques

Méthode Description
AddVectorViaGPUTest ( short input_array, short &output_array ) : void
ConviencePredictFeatureVectorGPU ( short feature_vector, float &predict_output ) : void
FeatureExtraction ( ModeFormat setMode = ModeFormat.Maize, string varDirectory = defaultDirectory, CPUorGPUFormat to_set_xPU_mode = CPUorGPUFormat.GPU ) : System
FindMaxDepthRandomForest ( int tree, int n_tree ) : void
GenerateFeatureVectorViaImageFiles ( string training_set_size ) : void
GenerateOffsetPairs ( ) : void
GetAllTransformedPairs ( int curPosition, int curDepth, List listOfTransformedPairPosition ) : void
GetFirstNTransformedPairs ( int curPosition, int curDepth, List listOfTransformedPairPosition, int N ) : void
HelperPruneSingleTree ( int new_tree, int old_tree, int new_offset, int old_offset, int cur_depth, int index_new_tree, int index_old_tree, int max_depth ) : int
HelperTransformSingleTree ( int new_tree, int old_tree, int new_tree_off ) : void
IsVectorAddingWrong ( short input_array, short output_array ) : bool
LoadRFModel ( string file_name = "" ) : void
PredictGPU ( short depth, float &predict_output ) : void
PredictOnePixelCPU ( int oneDimensionIndex, short depthArray, double &predictOutput ) : void
PredictOnePixelGPUWithCPUFeatureExtraction ( int one_dimension_index, short depthArray, float &predictOutput ) : void
PruneRFModel ( ) : void
PruneTrees ( int &new_tree, int old_tree, int max_depth, int num_tree ) : void
ReadOffsetPairsFromStorage ( ) : void
SetOffsetMax ( int x ) : void
SetOffsetMin ( int x ) : void
Shuffle ( List list ) : void
TransformTrees ( int new_tree, int old_tree, int num_trees ) : void
WriteOffsetPairsToStorage ( ) : void
WriteRFModel ( string file_name ) : void
testEnum ( ) : void
testSample ( ) : void
testSplit ( ) : void

Private Methods

Méthode Description
ExtractFeatureFromOneDepthPointAndWriteToFile ( int oneDimensionIndex ) : void
FindMaxDepthSingleTree ( int tree, int index, int offset ) : int
GetDepthByPoint ( int X, int Y ) : int
GetFeatureVectorsFromOneDepthPoint ( int oneDimensionIndex, short depthArray ) : void
GetOffsetPairsFilename ( ) : string
GetOnePairRandomOffset ( int arrayInt ) : void
HelperFindLablesInTree ( int tree, int index, int offset, int y, int explored_depth ) : void
HelperGetOffset ( int Origin, int Offset, int curDepth ) : int
InitGPU ( ) : void
RandomSample ( int numerPerClass ) : void
ReadImageFileToGetDepthAndLabel ( string filePath ) : void
ReadImageFileToGetDepthAndLabel ( string filePath, HandGestureFormat gesture ) : void
SetDirectory ( string dir ) : void
SetMode ( ModeFormat setMode ) : void

Method Details

AddVectorViaGPUTest() public méthode

public AddVectorViaGPUTest ( short input_array, short &output_array ) : void
input_array short
output_array short
Résultat void

ConviencePredictFeatureVectorGPU() public méthode

public ConviencePredictFeatureVectorGPU ( short feature_vector, float &predict_output ) : void
feature_vector short
predict_output float
Résultat void

FeatureExtraction() public méthode

public FeatureExtraction ( ModeFormat setMode = ModeFormat.Maize, string varDirectory = defaultDirectory, CPUorGPUFormat to_set_xPU_mode = CPUorGPUFormat.GPU ) : System
setMode ModeFormat
varDirectory string
to_set_xPU_mode CPUorGPUFormat
Résultat System

FindMaxDepthRandomForest() public méthode

public FindMaxDepthRandomForest ( int tree, int n_tree ) : void
tree int
n_tree int
Résultat void

GenerateFeatureVectorViaImageFiles() public méthode

public GenerateFeatureVectorViaImageFiles ( string training_set_size ) : void
training_set_size string
Résultat void

GenerateOffsetPairs() public méthode

public GenerateOffsetPairs ( ) : void
Résultat void

GetAllTransformedPairs() public méthode

public GetAllTransformedPairs ( int curPosition, int curDepth, List listOfTransformedPairPosition ) : void
curPosition int
curDepth int
listOfTransformedPairPosition List
Résultat void

GetFirstNTransformedPairs() public méthode

public GetFirstNTransformedPairs ( int curPosition, int curDepth, List listOfTransformedPairPosition, int N ) : void
curPosition int
curDepth int
listOfTransformedPairPosition List
N int
Résultat void

HelperPruneSingleTree() public méthode

public HelperPruneSingleTree ( int new_tree, int old_tree, int new_offset, int old_offset, int cur_depth, int index_new_tree, int index_old_tree, int max_depth ) : int
new_tree int
old_tree int
new_offset int
old_offset int
cur_depth int
index_new_tree int
index_old_tree int
max_depth int
Résultat int

HelperTransformSingleTree() public méthode

public HelperTransformSingleTree ( int new_tree, int old_tree, int new_tree_off ) : void
new_tree int
old_tree int
new_tree_off int
Résultat void

IsVectorAddingWrong() public méthode

public IsVectorAddingWrong ( short input_array, short output_array ) : bool
input_array short
output_array short
Résultat bool

LoadRFModel() public méthode

public LoadRFModel ( string file_name = "" ) : void
file_name string
Résultat void

PredictGPU() public méthode

public PredictGPU ( short depth, float &predict_output ) : void
depth short
predict_output float
Résultat void

PredictOnePixelCPU() public méthode

public PredictOnePixelCPU ( int oneDimensionIndex, short depthArray, double &predictOutput ) : void
oneDimensionIndex int
depthArray short
predictOutput double
Résultat void

PredictOnePixelGPUWithCPUFeatureExtraction() public méthode

public PredictOnePixelGPUWithCPUFeatureExtraction ( int one_dimension_index, short depthArray, float &predictOutput ) : void
one_dimension_index int
depthArray short
predictOutput float
Résultat void

PruneRFModel() public méthode

public PruneRFModel ( ) : void
Résultat void

PruneTrees() public méthode

public PruneTrees ( int &new_tree, int old_tree, int max_depth, int num_tree ) : void
new_tree int
old_tree int
max_depth int
num_tree int
Résultat void

ReadOffsetPairsFromStorage() public méthode

public ReadOffsetPairsFromStorage ( ) : void
Résultat void

SetOffsetMax() public méthode

public SetOffsetMax ( int x ) : void
x int
Résultat void

SetOffsetMin() public méthode

public SetOffsetMin ( int x ) : void
x int
Résultat void

Shuffle() public méthode

public Shuffle ( List list ) : void
list List
Résultat void

TransformTrees() public méthode

public TransformTrees ( int new_tree, int old_tree, int num_trees ) : void
new_tree int
old_tree int
num_trees int
Résultat void

WriteOffsetPairsToStorage() public méthode

public WriteOffsetPairsToStorage ( ) : void
Résultat void

WriteRFModel() public méthode

public WriteRFModel ( string file_name ) : void
file_name string
Résultat void

testEnum() public méthode

public testEnum ( ) : void
Résultat void

testSample() public méthode

public testSample ( ) : void
Résultat void

testSplit() public méthode

public testSplit ( ) : void
Résultat void

Property Details

directory public_oe property

public string directory
Résultat string

num_classes_ public_oe property

public int num_classes_
Résultat int