private void match1()
        {
            MyActionSegmentData action1 = new MyActionSegmentData(Constant.BASE_PATH + "/ActionData/1517659759365/skeletonData.txt", 55, 113, 3);
            MyActionSegmentData action2 = new MyActionSegmentData(Constant.BASE_PATH + "/ActionData/1517659759365/skeletonData.txt", 69, 107, 3);
            MyActionSegmentData action3 = new MyActionSegmentData(Constant.BASE_PATH + "/ActionData/1517659759365/skeletonData.txt", 140, 181, 3);
            MyActionSegmentData action4 = new MyActionSegmentData(Constant.BASE_PATH + "/ActionData/1517659759365/skeletonData.txt", 211, 278, 3);
            MyActionSegmentData action5 = new MyActionSegmentData(Constant.BASE_PATH + "/ActionData/1517659759365/skeletonData.txt", 695, 734, 3);
            MyActionSegmentData action6 = new MyActionSegmentData(Constant.BASE_PATH + "/ActionData/1517658799185/skeletonData.txt", 70, 115, 3);
            MyActionSegmentData action7 = new MyActionSegmentData(Constant.BASE_PATH + "/ActionData/1517659759365/skeletonData.txt", 103, 132, 3);

            deal1(action1, action2, action3, action4, action5, action6, action7);
        }
예제 #2
0
        public static double[,] computeSimilarityMatrix(MyActionSegmentData action1, MyActionSegmentData action2)
        {
            List <MySkeleton> skelList1 = preDeal(action1.SkeletonList);
            List <MySkeleton> skelList2 = preDeal(action2.SkeletonList);

            int row = skelList1.Count;
            int col = skelList2.Count;

            double[,] matrix = new double[row, col];

            for (int i = 0; i < row; i++)
            {
                for (int j = 0; j < col; j++)
                {
                    matrix[i, j] = computeSimilarity(skelList1[i], skelList2[j]);
                }
            }

            return(matrix);
        }