Skip to content

Instantly share code, notes, and snippets.

@JeremyFisher
JeremyFisher / readEXR.py
Created December 23, 2020 11:17 — forked from jadarve/readEXR.py
Extract RGB and depth channels from exr images.
import numpy as np
import OpenEXR as exr
import Imath
def readEXR(filename):
"""Read color + depth data from EXR image file.
Parameters
----------
filename : str
@JeremyFisher
JeremyFisher / PNGWhiteTrim.py
Created September 24, 2019 06:18 — forked from thomastweets/PNGWhiteTrim.py
Python script to trim all png images with white background in a folder
import Image
import sys
import glob
import ImageOps
# Trim all png images with white background in a folder
# Usage "python PNGWhiteTrim.py ../someFolder"
try:
folderName = sys.argv[1]
@JeremyFisher
JeremyFisher / reduce_faces.py
Created October 17, 2018 06:57 — forked from awesomebytes/reduce_faces.py
Executing meshlab from commandline reduce faces of a mesh iteratively
#!/usr/bin/env python
import sys
import os
import subprocess
# Script taken from doing the needed operation
# (Filters > Remeshing, Simplification and Reconstruction >
# Quadric Edge Collapse Decimation, with parameters:
# 0.9 percentage reduction (10%), 0.3 Quality threshold (70%)