Skip to content

Instantly share code, notes, and snippets.

View therahulkumar's full-sized avatar

Rahul Kumar therahulkumar

View GitHub Profile
@therahulkumar
therahulkumar / elastic_transform.py
Created January 23, 2018 16:27 — forked from fmder/elastic_transform.py
Elastic transformation of an image in Python
import numpy
from scipy.ndimage.interpolation import map_coordinates
from scipy.ndimage.filters import gaussian_filter
def elastic_transform(image, alpha, sigma, random_state=None):
"""Elastic deformation of images as described in [Simard2003]_.
.. [Simard2003] Simard, Steinkraus and Platt, "Best Practices for
Convolutional Neural Networks applied to Visual Document Analysis", in
@therahulkumar
therahulkumar / Python3 Virtualenv Setup.md
Created May 7, 2018 10:14 — forked from pandafulmanda/Python3 Virtualenv Setup.md
Setting up and using Python3 Virtualenv on Mac

Python3 Virtualenv Setup

Requirements
  • Python 3
  • Pip 3
$ brew install python3