Processing camera 1 of 26.
Program received signal SIGSEGV, Segmentation fault.
__GI___libc_free (mem=0x55041) at malloc.c:3102
3102 malloc.c: No such file or directory.
(gdb) bt full
#0 __GI___libc_free (mem=0x55041) at malloc.c:3102
ar_ptr = <optimized out>
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.16) | |
project(Cpp20) | |
set(CMAKE_CXX_STANDARD 20) | |
set(CMAKE_CXX_STANDARD_REQUIRED ON) | |
set(CMAKE_CXX_EXTENSIONS OFF) | |
set(PREBUILT_MODULE_DIR ${CMAKE_BINARY_DIR}/modules) | |
set(STD_MODULES_DIR "D:/MSVC/VC/Tools/MSVC/14.29.30133/ifc/x64") # macro "$(VC_IFCPath)" in MSVC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
This file contains code to convert unsigned integers to strings | |
at compile-time, and then modify those strings include more | |
information. | |
One use case is to convert library MAJOR, MINOR, and PATCH | |
numbers into a custom string (see below). | |
Other types like signed integers and floats can be added | |
with template specializition on the converter struct. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void OnPhotoCaptured(PhotoCapture.PhotoCaptureResult result, PhotoCaptureFrame photoCaptureFrame) | |
{ | |
Matrix4x4 cameraToWorldMatrix; | |
photoCaptureFrame.TryGetCameraToWorldMatrix(out cameraToWorldMatrix); | |
Matrix4x4 projectionMatrix; | |
photoCaptureFrame.TryGetProjectionMatrix(out projectionMatrix); | |
var imagePosZeroToOne = new Vector2(pixelPos.x / imageWidth, 1 - (pixelPos.y / imageHeight)); | |
var imagePosProjected = (imagePosZeroToOne * 2) - new Vector2(1, 1); // -1 to 1 space |
PCL release: PCL-1.12.0-AllInOne-msvc2019-win64.exe
Related issue: PointCloudLibrary/pcl#2147
Crash trace: ~TextureMesh() / Eigen::aligned_allocator
Reason: PCL pre-compiled binary is compiled with AVX enabled which caused incompatibility of EIGEN_IDEAL_MAX_ALIGN_BYTES
Solution: add_compile_options(/arch:AVX)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# . | |
# bin | |
# source | |
# dependency | |
# include | |
# source | |
# example | |
# include | |
# source | |
# external |
use QPDF
brew install qpdf
qpdf --decrypt broken.pdf recovery.pdf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){ | |
$("#side").remove(); | |
$("#comment_title, #comment_list, #comment_bar, #comment_form, .announce, #ad_cen, #ad_bot").remove(); | |
$(".nav_top_2011, #header, #navigator").remove(); | |
$(".csdn-side-toolbar,.template-box,.reward-user-box").remove(); | |
$(".p4course_target, .comment-box, .recommend-box, #csdn-toolbar, #tool-box,#dmp_ad_58").remove(); | |
$("aside").remove(); | |
$(".tool-box").remove(); | |
$("main").css('display','content'); | |
$("main").css('float','left'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// circ_shift.h | |
// https://stackoverflow.com/questions/46077242/eigen-modifyable-custom-expression/46301503#46301503 | |
// this file implements circShift, fftshift, and ifftshift for Eigen vectors/matrices. | |
// | |
#pragma once | |
#include <Eigen/Core> | |
template <bool B> using bool_constant = std::integral_constant<bool, B>; |