// Vulkan C++ API:
vk::BufferCopy region_cpp;
command_buffer.copyBuffer(staging_buffer, vk_data->buffer, region_cpp);
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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) |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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/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 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 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 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, |
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
import javax.swing.*; | |
import java.awt.*; | |
import java.awt.event.ActionEvent; | |
import java.awt.event.ActionListener; | |
import static javax.swing.WindowConstants.EXIT_ON_CLOSE; | |
public class Main { | |
public static void main(String[] args) throws InterruptedException { |
NewerOlder