Skip to content

Instantly share code, notes, and snippets.

Avatar

Tsukasa Sugiura UnaNancyOwen

View GitHub Profile
@UnaNancyOwen
UnaNancyOwen / CMakeLists.txt
Last active Jul 11, 2020
First Samplle for OpenCV with ImGui
View CMakeLists.txt
cmake_minimum_required( VERSION 3.6 )
set( CMAKE_CXX_STANDARD 11 )
set( CMAKE_CXX_STANDARD_REQUIRED ON )
set( CMAKE_CXX_EXTENSIONS OFF )
find_package( Git )
execute_process(
COMMAND ${GIT_EXECUTABLE} clone "https://github.com/ocornut/imgui.git" -b v1.72b
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
@UnaNancyOwen
UnaNancyOwen / k4a_double_exponential_filter.h
Last active Mar 16, 2020
Double Exponential Smoothing Filter for Azure Kinect Body Tracking SDK
View k4a_double_exponential_filter.h
/*
k4a_double_exponential_filter.h
This file contains holt double exponential smoothing filter for filtering joints.
It was ported for Azure Kinect Body Tracking SDK based on following implementation.
https://social.msdn.microsoft.com/Forums/en-US/045b058a-ae3a-4d01-beb6-b756631b4b42
std::unordered_map<int32_t, double_exponential_filter> double_exponential_filter;
while( true )
@UnaNancyOwen
UnaNancyOwen / CMakeLists.txt
Last active Jun 22, 2020
C++ Wrapper for Azure Kinect Body Tracking SDK
View CMakeLists.txt
cmake_minimum_required( VERSION 3.6 )
set( CMAKE_CXX_STANDARD 11 )
set( CMAKE_CXX_STANDARD_REQUIRED ON )
set( CMAKE_CXX_EXTENSIONS OFF )
project( K4A )
add_executable( K4A k4abt.hpp util.h main.cpp )
set_property( DIRECTORY PROPERTY VS_STARTUP_PROJECT "K4A" )
@UnaNancyOwen
UnaNancyOwen / CMakeLists.txt
Last active Oct 17, 2019
Convert Image in Each-Formats of Azure Kinect using OpenCV
View CMakeLists.txt
cmake_minimum_required( VERSION 3.6 )
project( AzureKinect )
add_executable( AzureKinect util.h main.cpp )
set_property( DIRECTORY PROPERTY VS_STARTUP_PROJECT "AzureKinect" )
set( k4a_DIR "C:/Program Files/K4A/lib/cmake/k4a" CACHE PATH "Path to Azure Kinect SDK (K4A) config directory." )
find_package( k4a REQUIRED )
View CMakeLists.txt
cmake_minimum_required( VERSION 3.6 )
set( CMAKE_CXX_STANDARD 11 )
set( CMAKE_CXX_STANDARD_REQUIRED ON )
set( CMAKE_CXX_EXTENSIONS OFF )
# Create Project
project( K4A )
add_executable( K4A main.cpp )
@UnaNancyOwen
UnaNancyOwen / CMakeLists.txt
Last active Dec 23, 2019
CMake Find Module for Azure Kinect Sensor SDK and Azure Kinect Body Tracking SDK
View CMakeLists.txt
cmake_minimum_required( VERSION 3.6 )
set( CMAKE_CXX_STANDARD 11 )
set( CMAKE_CXX_STANDARD_REQUIRED ON )
set( CMAKE_CXX_EXTENSIONS OFF )
project( K4ABT )
add_executable( K4ABT main.cpp )
set_property( DIRECTORY PROPERTY VS_STARTUP_PROJECT "K4ABT" )
View query_motion_devices.h
/*
DESCRIPTION:
query_motion_devices() is returns a list of all devices that have motion sensors.
HOWTOUSE:
std::vector<rs2::device> motion_devices;
query_motion_devices( motion_devices );
if( motion_devices.empty ){
throw std::runtime_error( "could not find devices that have motion sensors." );
return -1;
@UnaNancyOwen
UnaNancyOwen / main.cpp
Last active Dec 19, 2019
OpenCV 4.0 Kinect Fusion
View main.cpp
#include <iostream>
#include <cmath>
#include <limits>
#include <opencv2/opencv.hpp>
#include <opencv2/rgbd.hpp>
#include <opencv2/viz.hpp>
void initialize_parameters( cv::kinfu::Params& params, const uint32_t width, const uint32_t height, const float focal_x, const float focal_y = 0.0f ){
float fx = focal_x;
float fy = focal_y;
View install_manifest.txt
C:/Program Files/PCL/include/pcl-1.9/pcl/pcl_config.h
C:/Program Files/PCL/cmake/Modules/FindDSSDK.cmake
C:/Program Files/PCL/cmake/Modules/FindEigen.cmake
C:/Program Files/PCL/cmake/Modules/FindEnsenso.cmake
C:/Program Files/PCL/cmake/Modules/FindFLANN.cmake
C:/Program Files/PCL/cmake/Modules/FindFZAPI.cmake
C:/Program Files/PCL/cmake/Modules/FindG2O.cmake
C:/Program Files/PCL/cmake/Modules/FindGLEW.cmake
C:/Program Files/PCL/cmake/Modules/FindGTSAM.cmake
C:/Program Files/PCL/cmake/Modules/FindGtest.cmake
View tests_result.txt
PS C:\pcl\build> ctest -C Release -V
UpdateCTestConfiguration from :C:/pcl/build/DartConfiguration.tcl
UpdateCTestConfiguration from :C:/pcl/build/DartConfiguration.tcl
Test project C:/pcl/build
Constructing a list of tests
Done constructing a list of tests
Updating test list for fixtures
Added 0 tests to meet fixture requirements
Checking test dependency graph...
Checking test dependency graph end
You can’t perform that action at this time.