Skip to content

Instantly share code, notes, and snippets.

View romanschejbal's full-sized avatar

Roman Schejbal romanschejbal

View GitHub Profile
@romanschejbal
romanschejbal / main.rs
Created July 2, 2020 13:08
Tree thinning in Rust
extern crate xml;
use std::collections::HashMap;
use std::fs::File;
use std::io::BufReader;
use xml::reader::{EventReader, XmlEvent};
// debugging helper ignore this
fn indent(size: usize) -> String {
from PIL import Image
import os, sys, cv2, numpy
path = sys.argv[1]
filename = sys.argv[2]
blendCount = int(sys.argv[3])
files = os.listdir(path)
files = sorted(files)