1 Star 0 Fork 3

aalee / Kinect动作捕捉软件_1

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
FbxFunction.h 2.55 KB
一键复制 编辑 原始数据 按行查看 历史
FelixWang810 提交于 2020-09-18 15:11 . 功能代码
#ifndef _FBXFUNCTION_H
#define _FBXFUNCTION_H
#include <Windows.h>
#include <iostream>
#include "Common.h"
#include <vector>
#include <opencv2/opencv.hpp>
#include "MathFunc.h"
using namespace std;
using namespace cv;
// Declare the UV names globally so we can create them on the mesh and then assign them properly
// to our textures when we create them
static const char* gDiffuseElementName = "DiffuseUV";
static const char* gAmbientElementName = "AmbientUV";
static const char* gEmissiveElementName = "EmissiveUV";
// ڲ
const double camera_factor = 100;
const double camera_cx = 315.0;
const double camera_cy = 235.0;
const double camera_fx = 590.0;
const double camera_fy = 600.0;
class FbxKinect20 {
public:
FbxKinect20();
bool CreateScene(FbxManager* pSdkManager, FbxScene* pScene, char* pSampleFileName, vector<vector<float>> Triangleinfo, vector<Point3d> skeletonPoints, vector<vector<vector<double>>> RotationMatrixSequence);
bool CreateSceneK2(FbxManager* pSdkManager, FbxScene* pScene, char* pSampleFileName, vector<vector<float>> Triangleinfo, vector<Point3d> skeletonPoints3D, vector<vector<vector<double>>> RotationMatrixSequence, std::vector<std::vector<float>> TriangleinfoColor);
float m_TimeStep;
private:
FbxNode* CreateTriangle(FbxScene* pScene, const char* pName, vector<vector<float>> Triangleinfo);
FbxNode* CreateTriangleK2(FbxScene* pScene, const char* pName, vector<vector<float>> Triangleinfo, std::vector<std::vector<float>> TriangleinfoColor);
FbxNode* CreatePatch(FbxScene* pScene, const char* pName);
FbxNode* CreateSkeleton(FbxScene* pScene, const char* pName, vector<Point3d> skeletonPoints3D);
void LinkPatchToSkeleton(FbxScene* pScene, FbxNode* pPatch, FbxNode* pSkeletonRoot, vector<vector<float>> Triangleinfo, vector<Point3d> skeletonPoints3D);
void AnimateSkeleton(FbxScene* pScene, FbxNode* pSkeletonRoot, FbxAnimLayer* lAnimLayer, vector<Point3d> skeletonPoints3D, vector<vector<vector<double>>> RotationMatrixSequence);
void Animate(FbxNode* pNode, FbxAnimLayer* pAnimLayer);
void StoreBindPose(FbxScene* pScene, FbxNode* pPatch);
void StoreRestPose(FbxScene* pScene, FbxNode* pSkeletonRoot);
void AddNodeRecursively(FbxArray<FbxNode*>& pNodeArray, FbxNode* pNode);
void CreateMaterials(FbxScene* pScene, FbxMesh* pMesh, vector<vector<float>> Triangles);
void CreateTexture(FbxScene* pScene, FbxMesh* pMesh);
void SetTriangleDefaultPosition(FbxNode* pTriangle, vector<Point3d> skeletonPoints3D);
};
#endif // #ifndef _FBXFUNCTION_H
马建仓 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