Skip to content

Instantly share code, notes, and snippets.

View n1ckfg's full-sized avatar

Nick Fox-Gieg n1ckfg

View GitHub Profile
@n1ckfg
n1ckfg / PointCloud2Voxel.py
Created July 24, 2021 00:06 — forked from hzxie/PointCloud2Voxel.py
Convert Point Cloud to Voxels
import numpy as np
import pandas as pd
from pyntcloud import PyntCloud
import binvox_rw
cloud = PyntCloud.from_file("test/00000.txt",
sep=" ",
header=0,
@n1ckfg
n1ckfg / convert-mat.py
Created June 14, 2021 22:02 — forked from iaalm/convert-mat.py
Convert between .mat and .h5
#!/usr/bin/python3
import h5py
import numpy
import scipy.io
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("file", help="h5 file or mat file")
args = parser.parse_args()
@n1ckfg
n1ckfg / fill_depth_colorization.py
Created May 1, 2021 15:16 — forked from ialhashim/fill_depth_colorization.py
Python implementation of depth filling from NYU Depth v2 toolbox
# Original Matlab code https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html
#
#
# Python port of depth filling code from NYU toolbox
# Speed needs to be improved
#
# Uses 'pypardiso' solver
#
import scipy
import skimage
@n1ckfg
n1ckfg / index.svg
Created March 19, 2021 05:26 — forked from spite/index.svg
WebGL in SVG via foreignObject
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@n1ckfg
n1ckfg / FooTool.cs
Last active February 18, 2021 06:11 — forked from andybak/FooTool.cs
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using Conway;
using UnityEngine;
using Random = System.Random;
namespace TiltBrush.AndyB
{
@n1ckfg
n1ckfg / main-multi.cpp
Created January 30, 2021 19:44 — forked from prisonerjohn/main-multi.cpp
Sensing Machines FBOs
#include "ofApp.h"
int main()
{
ofGLFWWindowSettings settings;
settings.setSize(1280, 720);
settings.setPosition(glm::vec2(0, 0));
settings.resizable = true;
settings.decorated = true;
@n1ckfg
n1ckfg / main-multi.cpp
Created January 30, 2021 19:43 — forked from prisonerjohn/main-multi.cpp
Sensing Machines FBOs
#include "ofApp.h"
int main()
{
ofGLFWWindowSettings settings;
settings.setSize(1280, 720);
settings.setPosition(glm::vec2(0, 0));
settings.resizable = true;
settings.decorated = true;
@n1ckfg
n1ckfg / setup-azure-kinect-on-jetson-x-nx.md
Created December 30, 2020 06:20 — forked from madelinegannon/setup-azure-kinect-on-jetson-x-nx.md
Notes on Setting up the Microsoft Azure Kinect on Ubuntu 18.04
@n1ckfg
n1ckfg / jetson-nano_openFrameworks_setup_tutorial.md
Created December 29, 2020 17:20 — forked from madelinegannon/jetson-nano_openFrameworks_setup_tutorial.md
How to Set Up the NVIDIA Jetson Nano for openFrameworks
@n1ckfg
n1ckfg / three.html
Created December 27, 2020 22:42 — forked from nasser/three.html
a three.js boilerplate scene in a single 30 line self-contained html file
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/reset.min.css">
<script type="module">
import * as THREE from "https://cdn.jsdelivr.net/npm/[email protected]/build/three.module.js"
import { OrbitControls } from "https://cdn.jsdelivr.net/npm/[email protected]/examples/jsm/controls/OrbitControls.js"
var scene = new THREE.Scene()
var camera = new THREE.PerspectiveCamera(75)
camera.position.z = 4