1 Star 0 Fork 3

aalee / Kinect动作捕捉软件_1

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
FbxGeneration.h 1.67 KB
一键复制 编辑 原始数据 按行查看 历史
FelixWang810 提交于 2020-09-18 15:11 . 功能代码
#pragma once
#ifndef _FBXGENERATION_H
#define _FBXGENERATION_H
#include "MathFunc.h"
#include "FbxFunction.h"
#include "OpencvFunc.h"
class GenFbx {
public:
GenFbx();
int MainFuncK1(cv::String filename1, cv::String skeletonfile, char* fbxname, float timestep);
int MainFuncK2(cv::String filename1, cv::String skeletonfile, char* fbxname, float timestep);
int MainFuncAK(cv::String filename1, cv::String skeletonfile, char* fbxname, float timestep);
private:
//k1生成模型和蒙皮
int GetControlPoints(String filename, vector<vector<float>>& Triangleinfo, vector<Point3d>& skeletonPoints3D);
//计算生成骨骼动画
int CalculateAffineMatrix(vector<Point3d> skeletonPoints3D1, vector<Point3d> skeletonPoints3D2, vector<vector<double>>& RotationMatrix);
int CalculateAffineMatrixK2(vector<Point3d> skeletonPoints3D1, vector<Point3d> skeletonPoints3D2, vector<Vec4f> skeletonQuats3D1, vector<Vec4f> skeletonQuats3D2, vector<vector<double>>& RotationMatrix, vector<float> RotVecQuatRtF);
//k1获取骨骼动画矩阵
int GetRotationMatrix(cv::String filename1, cv::String filename, int startline, vector<vector<vector<double>>>& RotationMatrixSequence, vector<Point3d>& skeletonPoints3D2);
//k2生成模型和蒙皮
int GetControlPointsK2(String filename, vector<vector<float>>& Triangleinfo, std::vector<std::vector<float>> &TriangleinfoColor, vector<Point3d>& skeletonPoints3D);
//输入连续节点连线
void insertlink(vector<int>& linkindex);
//k2获取骨骼动画矩阵
int GetRotationMatrixK2(String filename, int startline, vector<Point3d> skeletonPoints3D1, int kinectType, vector<vector<vector<double>>>& RotationMatrixGroup);
};
#endif
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/aalee/kinect-motion-capture-software_1.git
git@gitee.com:aalee/kinect-motion-capture-software_1.git
aalee
kinect-motion-capture-software_1
Kinect动作捕捉软件_1
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891