Skip to content

Instantly share code, notes, and snippets.

View UnaNancyOwen's full-sized avatar

Tsukasa Sugiura UnaNancyOwen

View GitHub Profile
@UnaNancyOwen
UnaNancyOwen / Color.cpp
Last active October 22, 2018 14:38
Retrieve the Raw Color Data from Kinect v2
#include "stdafx.h"
#include <Windows.h>
#include <Kinect.h>
#include <opencv2/opencv.hpp>
template<class Interface>
inline void SafeRelease( Interface *& pInterfaceToRelease )
{
if( pInterfaceToRelease != NULL ){
@UnaNancyOwen
UnaNancyOwen / MultipleWindow.cpp
Last active August 6, 2020 05:42
Drawing the Point Cloud on Multiple Windows using PCLVisualizer
#include "stdafx.h"
#include <array>
#include <string>
// Disable Error C4996 that occur when using Boost.Signals2.
#ifdef _DEBUG
#define _SCL_SECURE_NO_WARNINGS
#endif
#include "kinect2_grabber.h"
@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 / Qt5.5.md
Last active June 5, 2020 03:12
Building Qt with Visual Studio

Building Qt5.5 with Visual Studio

Download

  1. Qt 5.5.1(qt-everywhere-opensource-src-5.5.1.zip)をダウンロードしてファイルを解凍する。(C:\qt-everywhere-opensource-src-5.5.1)
    http://www.qt.io/download/

  2. jom 1.1.0(jom_1_1_0.zip)をダウンロードしてファイルを解凍する。(C:\jom)
    http://download.qt.io/official_releases/jom/

@UnaNancyOwen
UnaNancyOwen / QVTK6.md
Last active May 12, 2021 22:07
Building QVTK with Visual Studio
@UnaNancyOwen
UnaNancyOwen / main.cpp
Last active July 4, 2016 14:42
Kinect v2 Coordinate System Mapping
#include <iostream>
#include <sstream>
#include <Windows.h>
#include <Kinect.h>
#include <opencv2/opencv.hpp>
#include <atlbase.h>
// Error Check
@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 / find_avx.cmake
Last active February 22, 2024 04:01
Check for the presence of AVX and figure out the flags to use for it.
# Check for the presence of AVX and figure out the flags to use for it.
macro(CHECK_FOR_AVX)
set(AVX_FLAGS)
include(CheckCXXSourceRuns)
set(CMAKE_REQUIRED_FLAGS)
# Check AVX
if(MSVC AND NOT MSVC_VERSION LESS 1600)
set(CMAKE_REQUIRED_FLAGS "/arch:AVX")
@UnaNancyOwen
UnaNancyOwen / PCL1.8.0All-in-oneInstaller.md
Last active March 25, 2018 11:16
Plan to Pre-Built PCL 1.8.0

PCL 1.8.0 All-in-one Installer

Compiler

  • Visual Studio 2015
  • Visual Studio 2013

3rdParty

@UnaNancyOwen
UnaNancyOwen / CMakeLists.txt
Last active September 9, 2021 09:42
CMake Module for Kinect SDK v2
# Example CMakeLists.txt
# FindKInectSDK2.cmake copy to CMake\share\cmake-3.5\Modules or same directory as this file
cmake_minimum_required( VERSION 2.8 )
set( CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}" ${CMAKE_MODULE_PATH} )
project( solution )
add_executable( project main.cpp )
set_property( DIRECTORY PROPERTY VS_STARTUP_PROJECT "project" )