Skip to content

Instantly share code, notes, and snippets.

import numba
# numba-ified version of https://github.com/mbalatsko/opencv-rolling-ball/blob/41462eec83ec652af0ee35ef9193049fa7e56e91/cv2_rolling_ball/background_subtractor.py
import numpy as np
"""
Fully Ported to Python from ImageJ's Background Subtractor.
Only works for 8-bit greyscale images currently.
@csachs
csachs / genesis_public_key
Created February 21, 2018 09:24
genesis_public_key
0432b9a7560a48d2345342085ace04079a50500ad6369297bb578c0df0ae59586d32348411d8e943267972b2efb6e53629c94a7ca4ff85d4afc74ebd76249c7e53
@csachs
csachs / tifffeeder.py
Last active May 25, 2018 06:55
tiff file feeder
import sys
import numpy
from datetime import datetime
from flask import Blueprint, Flask, make_response, request
from tifffile import TiffFile
# BSD Licensed
bp = Blueprint('SimulatedCameraImageFeeder', __name__)
@csachs
csachs / mandelbrot.py
Created October 18, 2017 09:02
mandelbrot image feeder
import numpy
from flask import Blueprint, Flask, make_response, request
# MIT Licensed
bp = Blueprint('SimulatedCameraImageFeeder', __name__)
# basing upon https://scipy.github.io/old-wiki/pages/Tentative_NumPy_Tutorial/Mandelbrot_Set_Example.html
def mandelbrot(h, w, maxit=20, x1=0, y1=0, size=0.1):
span = 3
sps = (span*size)