C# Class FeatureExtractionLib.FeatureExtraction

Show file Open project: arunganesan/hand-gesture-recognition Class Usage Examples

Public Properties

Property Type Description
directory string
num_classes_ int

Public Methods

Method 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

Method 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 method

public AddVectorViaGPUTest ( short input_array, short &output_array ) : void
input_array short
output_array short
return void

ConviencePredictFeatureVectorGPU() public method

public ConviencePredictFeatureVectorGPU ( short feature_vector, float &predict_output ) : void
feature_vector short
predict_output float
return void

FeatureExtraction() public method

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
return System

FindMaxDepthRandomForest() public method

public FindMaxDepthRandomForest ( int tree, int n_tree ) : void
tree int
n_tree int
return void

GenerateFeatureVectorViaImageFiles() public method

public GenerateFeatureVectorViaImageFiles ( string training_set_size ) : void
training_set_size string
return void

GenerateOffsetPairs() public method

public GenerateOffsetPairs ( ) : void
return void

GetAllTransformedPairs() public method

public GetAllTransformedPairs ( int curPosition, int curDepth, List listOfTransformedPairPosition ) : void
curPosition int
curDepth int
listOfTransformedPairPosition List
return void

GetFirstNTransformedPairs() public method

public GetFirstNTransformedPairs ( int curPosition, int curDepth, List listOfTransformedPairPosition, int N ) : void
curPosition int
curDepth int
listOfTransformedPairPosition List
N int
return void

HelperPruneSingleTree() public method

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
return int

HelperTransformSingleTree() public method

public HelperTransformSingleTree ( int new_tree, int old_tree, int new_tree_off ) : void
new_tree int
old_tree int
new_tree_off int
return void

IsVectorAddingWrong() public method

public IsVectorAddingWrong ( short input_array, short output_array ) : bool
input_array short
output_array short
return bool

LoadRFModel() public method

public LoadRFModel ( string file_name = "" ) : void
file_name string
return void

PredictGPU() public method

public PredictGPU ( short depth, float &predict_output ) : void
depth short
predict_output float
return void

PredictOnePixelCPU() public method

public PredictOnePixelCPU ( int oneDimensionIndex, short depthArray, double &predictOutput ) : void
oneDimensionIndex int
depthArray short
predictOutput double
return void

PredictOnePixelGPUWithCPUFeatureExtraction() public method

public PredictOnePixelGPUWithCPUFeatureExtraction ( int one_dimension_index, short depthArray, float &predictOutput ) : void
one_dimension_index int
depthArray short
predictOutput float
return void

PruneRFModel() public method

public PruneRFModel ( ) : void
return void

PruneTrees() public method

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
return void

ReadOffsetPairsFromStorage() public method

public ReadOffsetPairsFromStorage ( ) : void
return void

SetOffsetMax() public method

public SetOffsetMax ( int x ) : void
x int
return void

SetOffsetMin() public method

public SetOffsetMin ( int x ) : void
x int
return void

Shuffle() public method

public Shuffle ( List list ) : void
list List
return void

TransformTrees() public method

public TransformTrees ( int new_tree, int old_tree, int num_trees ) : void
new_tree int
old_tree int
num_trees int
return void

WriteOffsetPairsToStorage() public method

public WriteOffsetPairsToStorage ( ) : void
return void

WriteRFModel() public method

public WriteRFModel ( string file_name ) : void
file_name string
return void

testEnum() public method

public testEnum ( ) : void
return void

testSample() public method

public testSample ( ) : void
return void

testSplit() public method

public testSplit ( ) : void
return void

Property Details

directory public property

public string directory
return string

num_classes_ public property

public int num_classes_
return int