Skip to content

Instantly share code, notes, and snippets.

View UnaNancyOwen's full-sized avatar

Tsukasa Sugiura UnaNancyOwen

View GitHub Profile
@UnaNancyOwen
UnaNancyOwen / OpenCV2.props
Last active August 29, 2015 14:05
Property Sheet for OpenCV 2.x
<?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>
@UnaNancyOwen
UnaNancyOwen / openNURBS.md
Last active August 29, 2015 14:06
Building openNURBS with Visual Studio

Building openNURBS with Visual Studio

Download

  1. C++ openNURBS SDK(opennurbs_20130711.zip)をダウンロードしてファイルを解凍する。(C:\opennurbs_20130711)
    ダウンロードにはメールアドレスを入力する必要がある。
    http://www.rhino3d.com/opennurbs

Build

@UnaNancyOwen
UnaNancyOwen / KinectSDK.props
Created September 21, 2014 12:58
Property Sheet for Kinect for Windows SDK v1
<?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>
@UnaNancyOwen
UnaNancyOwen / CustomGrabber.cpp
Last active August 29, 2015 14:10
Retrieve Body(Joint) from Kinect v2 using the CustomGrabber that inherit Kinect2Grabber
namespace pcl{
class CustomGrabber : public pcl::Kinect2Grabber
{
public:
CustomGrabber()
: source( nullptr )
, reader( nullptr )
{
result = sensor->get_BodyFrameSource( &source );
if( FAILED( result ) ){
@UnaNancyOwen
UnaNancyOwen / CMakeLists.txt
Last active December 1, 2015 18:03
CMakeLists.txt for PCL + Kinect2Grabber
# CMake
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
# Solution
project(solution)
# Project
set(HEADER kinect2_grabber.h)
set(SOURCE main.cpp)
add_executable(project ${HEADER} ${SOURCE})
@UnaNancyOwen
UnaNancyOwen / OpenMP.props
Created January 8, 2016 13:27
Property Sheet for OpenMP
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ImportGroup Label="PropertySheets"/>
<!-- All Configurations|All Platforms -->
<ItemDefinitionGroup>
<ClCompile>
<OpenMPSupport>true</OpenMPSupport>
</ClCompile>
@UnaNancyOwen
UnaNancyOwen / KinectSDK2.props
Created October 31, 2014 17:06
Property Sheet for Kinect for Windows SDK v2
<?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>
set CLASSPATH=%CD%
java -jar moonlight-win32.jar -host <Host Name or IP Address> -app "<App Name>" -fs -1080 -60fps
@UnaNancyOwen
UnaNancyOwen / PCLVisualizer1.cpp
Last active May 19, 2016 04:53
Drawing the Point Cloud using PCLVisualizer with Kinect v1 Grabber
#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>
@UnaNancyOwen
UnaNancyOwen / CMakeLists.txt
Last active June 12, 2016 15:51
Set Local Debugger Settings (Command Arguments and Environment Variables) using CMake
cmake_minimum_required( VERSION 2.8 )
# Create Solution(*.sln) and Project(*.vcxproj)
project( solution )
add_executable( project main.cpp )
# Set Local Debugger Settings (Command Arguments and Environment Variables)
set( COMMAND_ARGUMENTS "<commands>" )
set( ENVIRONMENT_VARIABLES "<variables>" )
configure_file( template.vcxproj.user.in ${CMAKE_BINARY_DIR}/project.vcxproj.user @ONLY )