• 大小: 44.14MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-08-04
  • 语言: 其他
  • 标签:

资源简介

# 3D_Garment_Tryon_System 3D虚拟试衣系统 随着网络的普及和虚拟现实技术的发展,三维虚拟试衣技术已成为国内外学术界普遍关注和研究的重要课题。 三维服装虚拟试衣系统(3D Garment Virtual Try-On System)主要包括四个部分:用户试衣时的人体识别、姿势检测;三维虚拟人体模型的构建与匹配,三维虚拟衣物模型的构建,三维衣物在虚拟人体的着装试穿。目前我们在三维试衣系统相关理论的基础上,从研究三维人体、衣物建模理论出发,结合物理模型、图形处理等方法,实现了以上四个部分,并对其中一些关键技术进行了研究。 人体识别和姿势检测的研究方面,针对精准度要求较高的情况,我们采用N-best人体识别模型,用深度置信神经网络来对模型进行训练,能够检测出图片中任意姿势各个身体部件;针对实时性要求较高的情况,我们采用SVM模型,可以判断出几种常见的人们试衣时的动作。 三维虚拟人体建模中,首先我们建立集成于软件中的人体模型库,主要是使用专用的三维人体造型软件Poser,将其中人体模型导出为OBJ文件,再根据OBJ文件的存储格式,提取出人体曲面的顶点信息,然后采用稀疏表示和三角剖分技术,利用一个个小三角形来逼近人体各部件的曲面;而用户人体模型则是根据用户输入的人体信息,查找模型库中相匹配的人体模型并进行一定调整,最后结合检测到的用户姿势来展示用户特定的人体模型。 对于虚拟试衣,通过衣片三角剖分优化、二维到三维的转化、三维衣片虚拟缝合,构建了简单的衣物模型,基于碰撞检测技术,研究并实现了衣物虚拟穿在了人体模型身上的真实样子,如有褶皱、垂悬等等效果。

资源截图

代码片段和文件信息


// 3D_Garment_Tryon_System.cpp : 定义应用程序的类行为。
//

#include “stdafx.h“
#include “3D_Garment_Tryon_System.h“
#include “3D_Garment_Tryon_SystemDlg.h“

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


// CMy3D_Garment_Tryon_SystemApp

BEGIN_MESSAGE_MAP(CMy3D_Garment_Tryon_SystemApp CWinApp)
ON_COMMAND(ID_HELP &CWinApp::onhelp)
END_MESSAGE_MAP()


// CMy3D_Garment_Tryon_SystemApp 构造

CMy3D_Garment_Tryon_SystemApp::CMy3D_Garment_Tryon_SystemApp()
{
// 支持重新启动管理器
m_dwRestartManagerSupportFlags = AFX_RESTART_MANAGER_SUPPORT_RESTART;

// TODO: 在此处添加构造代码,
// 将所有重要的初始化放置在 InitInstance 中
}


// 唯一的一个 CMy3D_Garment_Tryon_SystemApp 对象

CMy3D_Garment_Tryon_SystemApp theApp;


// CMy3D_Garment_Tryon_SystemApp 初始化

BOOL CMy3D_Garment_Tryon_SystemApp::InitInstance()
{
// 如果一个运行在 Windows XP 上的应用程序清单指定要
// 使用 ComCtl32.dll 版本 6 或更高版本来启用可视化方式,
//则需要 InitCommonControlsEx()。否则,将无法创建窗口。
INITCOMMONCONTROLSEX InitCtrls;
InitCtrls.dwSize = sizeof(InitCtrls);
// 将它设置为包括所有要在应用程序中使用的
// 公共控件类。
InitCtrls.dwICC = ICC_WIN95_CLASSES;
InitCommonControlsEx(&InitCtrls);

CWinApp::InitInstance();


AfxEnableControlContainer();

// 创建 shell 管理器,以防对话框包含
// 任何 shell 树视图控件或 shell 列表视图控件。
CShellManager *pShellManager = new CShellManager;

// 标准初始化
// 如果未使用这些功能并希望减小
// 最终可执行文件的大小,则应移除下列
// 不需要的特定初始化例程
// 更改用于存储设置的注册表项
// TODO: 应适当修改该字符串,
// 例如修改为公司或组织名
SetRegistryKey(_T(“应用程序向导生成的本地应用程序“));

CMy3D_Garment_Tryon_SystemDlg dlg;
m_pMainWnd = &dlg;
INT_PTR nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: 在此放置处理何时用
//  “确定”来关闭对话框的代码
}
else if (nResponse == IDCANCEL)
{
// TODO: 在此放置处理何时用
//  “取消”来关闭对话框的代码
}

// 删除上面创建的 shell 管理器。
if (pShellManager != NULL)
{
delete pShellManager;
}

// 由于对话框已关闭,所以将返回 FALSE 以便退出应用程序,
//  而不是启动应用程序的消息泵。
return FALSE;
}


 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2015-12-23 08:52  3D_Garment_Tryon_System-master\
     目录           0  2015-12-23 08:52  3D_Garment_Tryon_System-master\3D_Garment_Tryon_System\
     文件    75517952  2015-12-23 08:52  3D_Garment_Tryon_System-master\3D_Garment_Tryon_System\3D_Garment_Tryon_System.sdf
     文件         916  2015-12-23 08:52  3D_Garment_Tryon_System-master\3D_Garment_Tryon_System\3D_Garment_Tryon_System.sln
     文件       67072  2015-12-23 08:52  3D_Garment_Tryon_System-master\3D_Garment_Tryon_System\3D_Garment_Tryon_System.suo
     目录           0  2015-12-23 08:52  3D_Garment_Tryon_System-master\3D_Garment_Tryon_System\3D_Garment_Tryon_System\
     文件      112732  2015-12-23 08:52  3D_Garment_Tryon_System-master\3D_Garment_Tryon_System\3D_Garment_Tryon_System\3D_Garment_Tryon_System.aps
     文件        2140  2015-12-23 08:52  3D_Garment_Tryon_System-master\3D_Garment_Tryon_System\3D_Garment_Tryon_System\3D_Garment_Tryon_System.cpp
     文件    12948480  2015-12-23 08:52  3D_Garment_Tryon_System-master\3D_Garment_Tryon_System\3D_Garment_Tryon_System\3D_Garment_Tryon_System.exe
     文件         521  2015-12-23 08:52  3D_Garment_Tryon_System-master\3D_Garment_Tryon_System\3D_Garment_Tryon_System\3D_Garment_Tryon_System.h
     文件       21020  2015-12-23 08:52  3D_Garment_Tryon_System-master\3D_Garment_Tryon_System\3D_Garment_Tryon_System\3D_Garment_Tryon_System.rc
     文件        7266  2015-12-23 08:52  3D_Garment_Tryon_System-master\3D_Garment_Tryon_System\3D_Garment_Tryon_System\3D_Garment_Tryon_System.vcxproj
     文件        5765  2015-12-23 08:52  3D_Garment_Tryon_System-master\3D_Garment_Tryon_System\3D_Garment_Tryon_System\3D_Garment_Tryon_System.vcxproj.filters
     文件         141  2015-12-23 08:52  3D_Garment_Tryon_System-master\3D_Garment_Tryon_System\3D_Garment_Tryon_System\3D_Garment_Tryon_System.vcxproj.user
     文件        7167  2015-12-23 08:52  3D_Garment_Tryon_System-master\3D_Garment_Tryon_System\3D_Garment_Tryon_System\3D_Garment_Tryon_SystemDlg.cpp
     文件        1063  2015-12-23 08:52  3D_Garment_Tryon_System-master\3D_Garment_Tryon_System\3D_Garment_Tryon_System\3D_Garment_Tryon_SystemDlg.h
     文件       53617  2015-12-23 08:52  3D_Garment_Tryon_System-master\3D_Garment_Tryon_System\3D_Garment_Tryon_System\Body.cpp
     文件        1927  2015-12-23 08:52  3D_Garment_Tryon_System-master\3D_Garment_Tryon_System\3D_Garment_Tryon_System\Body.h
     文件       15205  2015-12-23 08:52  3D_Garment_Tryon_System-master\3D_Garment_Tryon_System\3D_Garment_Tryon_System\BodyDlg.cpp
     文件        1807  2015-12-23 08:52  3D_Garment_Tryon_System-master\3D_Garment_Tryon_System\3D_Garment_Tryon_System\BodyDlg.h
     文件         220  2015-12-23 08:52  3D_Garment_Tryon_System-master\3D_Garment_Tryon_System\3D_Garment_Tryon_System\BodyPart.cpp
     文件         375  2015-12-23 08:52  3D_Garment_Tryon_System-master\3D_Garment_Tryon_System\3D_Garment_Tryon_System\BodyPart.h
     文件       12361  2015-12-23 08:52  3D_Garment_Tryon_System-master\3D_Garment_Tryon_System\3D_Garment_Tryon_System\Cloth.cpp
     文件         695  2015-12-23 08:52  3D_Garment_Tryon_System-master\3D_Garment_Tryon_System\3D_Garment_Tryon_System\Cloth.h
     目录           0  2015-12-23 08:52  3D_Garment_Tryon_System-master\3D_Garment_Tryon_System\3D_Garment_Tryon_System\Debug\
     文件         914  2015-12-23 08:52  3D_Garment_Tryon_System-master\3D_Garment_Tryon_System\3D_Garment_Tryon_System\Debug\3D_Garment_Tryon_System.exe.embed.manifest
     文件         980  2015-12-23 08:52  3D_Garment_Tryon_System-master\3D_Garment_Tryon_System\3D_Garment_Tryon_System\Debug\3D_Garment_Tryon_System.exe.embed.manifest.res
     文件         625  2015-12-23 08:52  3D_Garment_Tryon_System-master\3D_Garment_Tryon_System\3D_Garment_Tryon_System\Debug\3D_Garment_Tryon_System.exe.intermediate.manifest
     文件          79  2015-12-23 08:52  3D_Garment_Tryon_System-master\3D_Garment_Tryon_System\3D_Garment_Tryon_System\Debug\3D_Garment_Tryon_System.lastbuildstate
     文件        3368  2015-12-23 08:52  3D_Garment_Tryon_System-master\3D_Garment_Tryon_System\3D_Garment_Tryon_System\Debug\3D_Garment_Tryon_System.log
     文件       52065  2015-12-23 08:52  3D_Garment_Tryon_System-master\3D_Garment_Tryon_System\3D_Garment_Tryon_System\Debug\3D_Garment_Tryon_System.obj
............此处省略125个文件信息

评论

共有 条评论

相关资源