C# 클래스 FeatureExtractionLib.FeatureExtraction

파일 보기 프로젝트 열기: arunganesan/hand-gesture-recognition 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
directory string
num_classes_ int

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

AddVectorViaGPUTest() 공개 메소드

public AddVectorViaGPUTest ( short input_array, short &output_array ) : void
input_array short
output_array short
리턴 void

ConviencePredictFeatureVectorGPU() 공개 메소드

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

FeatureExtraction() 공개 메소드

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
리턴 System

FindMaxDepthRandomForest() 공개 메소드

public FindMaxDepthRandomForest ( int tree, int n_tree ) : void
tree int
n_tree int
리턴 void

GenerateFeatureVectorViaImageFiles() 공개 메소드

public GenerateFeatureVectorViaImageFiles ( string training_set_size ) : void
training_set_size string
리턴 void

GenerateOffsetPairs() 공개 메소드

public GenerateOffsetPairs ( ) : void
리턴 void

GetAllTransformedPairs() 공개 메소드

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

GetFirstNTransformedPairs() 공개 메소드

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

HelperPruneSingleTree() 공개 메소드

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
리턴 int

HelperTransformSingleTree() 공개 메소드

public HelperTransformSingleTree ( int new_tree, int old_tree, int new_tree_off ) : void
new_tree int
old_tree int
new_tree_off int
리턴 void

IsVectorAddingWrong() 공개 메소드

public IsVectorAddingWrong ( short input_array, short output_array ) : bool
input_array short
output_array short
리턴 bool

LoadRFModel() 공개 메소드

public LoadRFModel ( string file_name = "" ) : void
file_name string
리턴 void

PredictGPU() 공개 메소드

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

PredictOnePixelCPU() 공개 메소드

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

PredictOnePixelGPUWithCPUFeatureExtraction() 공개 메소드

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

PruneRFModel() 공개 메소드

public PruneRFModel ( ) : void
리턴 void

PruneTrees() 공개 메소드

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
리턴 void

ReadOffsetPairsFromStorage() 공개 메소드

public ReadOffsetPairsFromStorage ( ) : void
리턴 void

SetOffsetMax() 공개 메소드

public SetOffsetMax ( int x ) : void
x int
리턴 void

SetOffsetMin() 공개 메소드

public SetOffsetMin ( int x ) : void
x int
리턴 void

Shuffle() 공개 메소드

public Shuffle ( List list ) : void
list List
리턴 void

TransformTrees() 공개 메소드

public TransformTrees ( int new_tree, int old_tree, int num_trees ) : void
new_tree int
old_tree int
num_trees int
리턴 void

WriteOffsetPairsToStorage() 공개 메소드

public WriteOffsetPairsToStorage ( ) : void
리턴 void

WriteRFModel() 공개 메소드

public WriteRFModel ( string file_name ) : void
file_name string
리턴 void

testEnum() 공개 메소드

public testEnum ( ) : void
리턴 void

testSample() 공개 메소드

public testSample ( ) : void
리턴 void

testSplit() 공개 메소드

public testSplit ( ) : void
리턴 void

프로퍼티 상세

directory 공개적으로 프로퍼티

public string directory
리턴 string

num_classes_ 공개적으로 프로퍼티

public int num_classes_
리턴 int