Skip to content

Instantly share code, notes, and snippets.

Tsukasa Sugiura UnaNancyOwen

Block or report user

Report or block UnaNancyOwen

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
UnaNancyOwen / main.cpp
Last active Feb 6, 2018
librealsense2 manual transform to depth from disparity and vice versa
View main.cpp
// Retrieve Focal Length
rs2::video_stream_profile profile = pipeline_profile.get_stream( rs2_stream::RS2_STREAM_DEPTH ).as<rs2::video_stream_profile>();
const float focal_length = profile.get_intrinsics().fx;
// Retriece Base Line
const float baseline =<rs2::disparity_frame>().get_baseline();
// Target Pixel (e.g. Center of Image)
const uint32_t x = disparity_width / 2;
const uint32_t y = disparity_height / 2;
UnaNancyOwen /
Last active Apr 15, 2019
How to use Qt that installed by Vcpkg with Qt Creator

How to use Qt that installed by Vcpkg with Qt Creator

(0) Install Qt using Vcpkg

Vcpkgを使用してQtをインストールする。(e.g. C:\vcpkg)

cd C:\vcpkg
.\vcpkg install qt5:x64-windows
View sample.cpp
// Retrieve Body Frame
ComPtr<IBodyFrame> bodyFrame;
const HRESULT ret = bodyFrameReader->AcquireLatestFrame( &bodyFrame );
if( FAILED( ret ) ){
// Retrieve Body Data
std::vector<ComPtr<IBody>> bodies( BODY_COUNT );
ERROR_CHECK( bodyFrame->GetAndRefreshBodyData( static_cast<UINT>( bodies.size() ), &bodies[0] ) );
UnaNancyOwen / kinect2_serialization.h
Last active May 19, 2017
Serialize Definitions of Boost.Serialization (XML) for Kinect SDK v2 Body Data
View kinect2_serialization.h
// kinect2_serialization
// kinect2_serialization is definitions of Boost.Serialization (XML) for body data that retrieved using Kinect SDK v2.
// You will be able to serialize and deserialize body data using this definitions.
// kinect2_serialization are requires Boost.Serialization and Kinect SDK v2 when serializing data.
// kinect2_serialization are requires only Boost.Serialization when deserialize data.
// This source code is licensed under the MIT license. Please see the License in License.txt.
// Copyright (c) 2017 Tsukasa SUGIURA
UnaNancyOwen /
Last active Feb 3, 2019
Building libpng with Visual Studio

Building libpng 1.6.29 with Visual Studio


  1. zlib 1.2.11(をダウンロードしてファイを解凍する。(C:\zlib-1.2.11)

  2. libpng 1.6.29(をダウンロードしてファイルを解凍する。(C:\lpng1629)

UnaNancyOwen / License.txt
Last active Mar 20, 2017
PCD FIle Writer for Kinect Fusion Data
View License.txt
pcd_writer License
The MIT License
Copyright (c) 2017 Tsukasa SUGIURA
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
UnaNancyOwen / recog.cpp
Last active Jul 27, 2017
Face Recognition using Face Module
View recog.cpp
#include <iostream>
#include <vector>
#include <opencv2/opencv.hpp>
#include <opencv2/face.hpp>
int main( int argc, char* argv[] )
// Read Image
cv::Mat image = cv::imread( "image.jpg", cv::IMREAD_GRAYSCALE );
UnaNancyOwen /
Last active Dec 23, 2016
Building FreeType2 with Visual Studio
UnaNancyOwen /
Last active May 10, 2019
Building HarfBuzz with Visual Studio
You can’t perform that action at this time.