- GLEW(glew-1.11.0-win32.zip)をダウンロードしてファイルを解凍する。
http://glew.sourceforge.net/
http://sourceforge.net/projects/glew/files/glew/1.11.0/
Install
#include "stdafx.h" | |
#define NOMINMAX | |
#include <Windows.h> | |
#include <Kinect.h> | |
#include <pcl/visualization/cloud_viewer.h> | |
template<class Interface> | |
inline void SafeRelease( Interface *& pInterfaceToRelease ) | |
{ |
<?xml version="1.0" encoding="utf-8"?> | |
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<ImportGroup Label="PropertySheets"/> | |
<!-- Debug|Win32 --> | |
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | |
</PropertyGroup> | |
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | |
<ClCompile> |
#include "stdafx.h" | |
#define NOMINMAX | |
#include <Windows.h> | |
#include <NuiApi.h> | |
#include <pcl/visualization/cloud_viewer.h> | |
int _tmain( int argc, _TCHAR* argv[] ) | |
{ | |
// Create Sensor Instance |
// Disable Error C4996 that occur when using Boost.Signals2. | |
#ifdef _DEBUG | |
#define _SCL_SECURE_NO_WARNINGS | |
#endif | |
#include "kinect2_grabber.h" | |
#include <pcl/visualization/pcl_visualizer.h> | |
template <typename PointType> | |
class Viewer |
namespace pcl{ | |
class CustomGrabber : public pcl::Kinect2Grabber | |
{ | |
public: | |
CustomGrabber() | |
: source( nullptr ) | |
, reader( nullptr ) | |
{ | |
result = sensor->get_BodyFrameSource( &source ); | |
if( FAILED( result ) ){ |
// Body.cpp : コンソール アプリケーションのエントリ ポイントを定義します。 | |
// This source code is licensed under the MIT license. Please see the License in License.txt. | |
// "This is preliminary software and/or hardware and APIs are preliminary and subject to change." | |
// | |
#include "stdafx.h" | |
#include <Windows.h> | |
#include <Kinect.h> | |
#include "KinectJointFilter.h" | |
#include <opencv2/opencv.hpp> |
Install
<?xml version="1.0" encoding="utf-8"?> | |
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<ImportGroup Label="PropertySheets"/> | |
<!-- Debug|Win32 --> | |
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | |
</PropertyGroup> | |
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | |
<ClCompile> |
#include "stdafx.h" | |
// Disable Error C4996 that occur when using Boost.Signals2. | |
#ifdef _DEBUG | |
#define _SCL_SECURE_NO_WARNINGS | |
#endif | |
#include "kinect_grabber.h" | |
#include <pcl/visualization/pcl_visualizer.h> |
<?xml version="1.0" encoding="utf-8"?> | |
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<ImportGroup Label="PropertySheets"/> | |
<!-- Debug|Win32 --> | |
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | |
</PropertyGroup> | |
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | |
<ClCompile> |