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 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. |
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
0432b9a7560a48d2345342085ace04079a50500ad6369297bb578c0df0ae59586d32348411d8e943267972b2efb6e53629c94a7ca4ff85d4afc74ebd76249c7e53 |
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 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__) |
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 | |
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) |