为解决 volumetric fusion 重建时,重建的空间划分成等大小的 voxel,显存消耗太多,难以重建大场景,并且大量 voxel 更新耗费 GPU 资源问题,斯坦福图形学组提出了 voxel hashing 算法(参考文献:”Real-time 3D Reconstruction at Scale using Voxel Hashing”),voxel hashing 只在相机测量到的场景表面划分 voxel,而不是将整个空间都划分成 voxel,从而节省显存。算法用 hash 表的形式存储在场景表面划分的 voxel block(8x8x8 voxels),方便 voxel block 的查询。算法代码开源。InfiniTAM 是对 voxel hashing 的改进,算法速度更快,适合在移动端运行。BunldeFusion mapping 部分 code 和 voxel hashing 是一样的。
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-02-22 04:15 VoxelHashing-master
文件 568 2017-02-22 04:15 VoxelHashing-masterCONTACT.txt
目录 0 2017-02-22 04:15 VoxelHashing-masterDepthSensing
目录 0 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUT
目录 0 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTCore
文件 261813 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTCoreDXUT.cpp
文件 18240 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTCoreDXUT.h
文件 13565952 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTCoreDXUT.pch
文件 43969 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTCoreDXUTDevice11.cpp
文件 8513 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTCoreDXUTDevice11.h
文件 42959 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTCoreDXUTDevice9.cpp
文件 9168 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTCoreDXUTDevice9.h
文件 1574 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTCoreDXUT_2008.sln
文件 10872 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTCoreDXUT_2008.vcproj
文件 1575 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTCoreDXUT_2010.sln
文件 17318 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTCoreDXUT_2010.vcxproj
文件 851 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTCoreDXUT_2010.vcxproj.filters
文件 66781 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTCoreDXUTmisc.cpp
文件 24715 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTCoreDXUTmisc.h
文件 329 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTCoredpiaware.manifest
目录 0 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTOptional
文件 9537 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTOptionalDXUTLockFreePipe.h
文件 1580 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTOptionalDXUTOpt_2008.sln
文件 11493 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTOptionalDXUTOpt_2008.vcproj
文件 1581 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTOptionalDXUTOpt_2010.sln
文件 17939 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTOptionalDXUTOpt_2010.vcxproj
文件 1412 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTOptionalDXUTOpt_2010.vcxproj.filters
文件 56672 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTOptionalDXUTcamera.cpp
文件 20553 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTOptionalDXUTcamera.h
文件 235353 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTOptionalDXUTgui.cpp
文件 45912 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTOptionalDXUTgui.h
............此处省略3268个文件信息
//--------------------------------------------------------------------------------------
// File: DXUT.cpp
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//--------------------------------------------------------------------------------------
#include “DXUT.h“
#define DXUT_MIN_WINDOW_SIZE_X 200
#define DXUT_MIN_WINDOW_SIZE_Y 200
#define DXUT_COUNTER_STAT_LENGTH 2048
#undef min // use __min instead inside this source file
#undef max // use __max instead inside this source file
#ifndef ARRAYSIZE
extern “C++“ // templates cannot be declared to have ‘C‘ linkage
template
char (*RtlpNumberOf( UNALIGNED T (&)[N] ))[N];
#define RTL_NUMBER_OF_V2(A) (sizeof(*RtlpNumberOf(A)))
#define ARRAYSIZE(A) RTL_NUMBER_OF_V2(A)
#endif
//--------------------------------------------------------------------------------------
// Thread safety
//--------------------------------------------------------------------------------------
CRITICAL_SECTION g_cs;
bool g_bThreadSafe = true;
//--------------------------------------------------------------------------------------
// Automatically enters & leaves the CS upon object creation/deletion
//--------------------------------------------------------------------------------------
class DXUTLock
{
public:
inline DXUTLock() { if( g_bThreadSafe ) EnterCriticalSection( &g_cs ); }
inline ~DXUTLock() { if( g_bThreadSafe ) LeaveCriticalSection( &g_cs ); }
};
//--------------------------------------------------------------------------------------
// Helper macros to build member functions that access member variables with thread safety
//--------------------------------------------------------------------------------------
#define SET_ACCESSOR( x y ) inline void Set##y( x t ) { DXUTLock l; m_state.m_##y = t; };
#define GET_ACCESSOR( x y ) inline x Get##y() { DXUTLock l; return m_state.m_##y; };
#define GET_SET_ACCESSOR( x y ) SET_ACCESSOR( x y ) GET_ACCESSOR( x y )
#define SETP_ACCESSOR( x y ) inline void Set##y( x* t ) { DXUTLock l; m_state.m_##y = *t; };
#define GETP_ACCESSOR( x y ) inline x* Get##y() { DXUTLock l; return &m_state.m_##y; };
#define GETP_SETP_ACCESSOR( x y ) SETP_ACCESSOR( x y ) GETP_ACCESSOR( x y )
//--------------------------------------------------------------------------------------
// Stores timer callback info
//--------------------------------------------------------------------------------------
struct DXUT_TIMER
{
LPDXUTCALLBACKTIMER pCallbackTimer;
void* pCallbackUserContext;
float fTimeoutInSecs;
float fCountdown;
bool bEnabled;
UINT nID;
};
//--------------------------------------------------------------------------------------
// Stores DXUT state and data access is done with thread safety (if g_bThreadSafe==true)
//--------------------------------------------------------------------------------------
class DXUTState
{
protected:
struct STATE
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-02-22 04:15 VoxelHashing-master
文件 568 2017-02-22 04:15 VoxelHashing-masterCONTACT.txt
目录 0 2017-02-22 04:15 VoxelHashing-masterDepthSensing
目录 0 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUT
目录 0 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTCore
文件 261813 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTCoreDXUT.cpp
文件 18240 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTCoreDXUT.h
文件 13565952 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTCoreDXUT.pch
文件 43969 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTCoreDXUTDevice11.cpp
文件 8513 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTCoreDXUTDevice11.h
文件 42959 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTCoreDXUTDevice9.cpp
文件 9168 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTCoreDXUTDevice9.h
文件 1574 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTCoreDXUT_2008.sln
文件 10872 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTCoreDXUT_2008.vcproj
文件 1575 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTCoreDXUT_2010.sln
文件 17318 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTCoreDXUT_2010.vcxproj
文件 851 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTCoreDXUT_2010.vcxproj.filters
文件 66781 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTCoreDXUTmisc.cpp
文件 24715 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTCoreDXUTmisc.h
文件 329 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTCoredpiaware.manifest
目录 0 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTOptional
文件 9537 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTOptionalDXUTLockFreePipe.h
文件 1580 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTOptionalDXUTOpt_2008.sln
文件 11493 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTOptionalDXUTOpt_2008.vcproj
文件 1581 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTOptionalDXUTOpt_2010.sln
文件 17939 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTOptionalDXUTOpt_2010.vcxproj
文件 1412 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTOptionalDXUTOpt_2010.vcxproj.filters
文件 56672 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTOptionalDXUTcamera.cpp
文件 20553 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTOptionalDXUTcamera.h
文件 235353 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTOptionalDXUTgui.cpp
文件 45912 2017-02-22 04:15 VoxelHashing-masterDepthSensingDXUTOptionalDXUTgui.h
............此处省略3268个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)