Skip to content

Instantly share code, notes, and snippets.

View ericeasthope's full-sized avatar

Eric Easthope ericeasthope

View GitHub Profile
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _react = _interopRequireDefault(require("react"));
@ericeasthope
ericeasthope / minimal-edge-detection.py
Last active February 14, 2021 10:45
Detect edges in colour photos
"""
Minimalist RGB edge detection w/ NumPy, PIL
Authored by Eric Easthope
MIT License
"""
from numpy import asarray, pi, pad, zeros
from numpy.fft import fft2, ifft2
from PIL.Image import open, fromarray