// Vulkan C++ API:
vk::BufferCopy region_cpp;
command_buffer.copyBuffer(staging_buffer, vk_data->buffer, region_cpp);
This file contains hidden or 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
# pip install trimesh pyvista numpy scipy matplotlib pillow pyglet<2 | |
import trimesh | |
import numpy as np | |
from PIL import ImageDraw | |
from scipy.spatial import KDTree | |
from scipy.sparse.csgraph import connected_components | |
from scipy.sparse import coo_matrix | |
import matplotlib.pyplot as plt | |
from matplotlib.colors import hsv_to_rgb | |
import pyvista as pv |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
import numpy as np | |
import scipy | |
import scipy.linalg | |
def ensure_close(P, A): | |
eps = np.max(np.abs(P)) * 10e-10 | |
assert(np.max(np.abs(P - A)) <= eps) | |
def qr_decomposition_np(A): | |
Q, R = np.linalg.qr(A) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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/bash -e | |
# Adopted from https://docs.opencv.org/master/d3/d52/tutorial_windows_install.html | |
# | |
# Changes: | |
# - version fixed to 4.5.1 - https://github.com/opencv/opencv/releases/tag/4.5.1 | |
# - disabled opencv_contrib | |
# - RelWithDebInfo instead of Release | |
# | |
# How to use: |
2021 PatchmatchNet: Learned Multi-View Patchmatch Stereo - Fangjinhua Wang, Silvano Galliani, Christoph Vogel, Pablo Speciale, Marc Pollefeys - [GITHUB] - [SUPP]
- TODO
2022 IterMVS: Iterative Probability Estimation for Efficient Multi-View Stereo - Fangjinhua Wang, Silvano Galliani, Christoph Vogel, Marc Pollefeys - [GITHUB]
This file contains hidden or 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
#pragma once | |
#include <limits> | |
#include <cassert> | |
#include <stdexcept> | |
#define MORTON_CODE_MAX_LEVEL 32 | |
#define UINT8 unsigned char | |
#define UINT32 unsigned int |
This file contains hidden or 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.13) | |
project(video_optflow) | |
set(CMAKE_CXX_STANDARD 14) | |
find_package(OpenMP) | |
if (OpenMP_CXX_FOUND) | |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}") | |
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_EXE_LINKER_FLAGS}") | |
else() |
This file contains hidden or 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
import os | |
import time | |
def get_memory(key="total"): | |
key_to_index = { | |
"total": 1, | |
"used": 2, | |
"free": 3, | |
"shared": 4, |
NewerOlder