Skip to content

Instantly share code, notes, and snippets.

@rjw57
rjw57 / doctor-who-video.sh
Last active December 28, 2015 18:39
A little script to pull the background images from http://www.bbc.co.uk/news/entertainment-arts-24957282 into a single video
#!/bin/bash
#
# A script for Unix-like Operating Systems to download a little animated tour of the TARDIS.
#
# Run this file via "sh doctor-who-video.sh" or make it executable and run directly.
# Download all frames
for i in `seq -w 150`; do
wget "http://news.bbcimg.co.uk/news/special/2013/newsspec_6050/img/tardis/desktop/m/doctor$i.png"
done
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import numpy as np
from scipy.signal import fftconvolve
from scipy.ndimage import maximum_filter
from dtcwt.backend.backend_numpy.lowlevel import reflect
import dtcwt.backend.backend_numpy as dtcwt_backend
def conv(X, h):
# Extend X reflecting appropriately
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/env python
"""
Usage:
stabilise.py [options] <video>
stabilise.py (-h | --help)
Options:
-s COUNT, --skip=COUNT Skip the first COUNT frames. [default: 0]
-d COUNT, --duration=COUNT Process COUNT frames.
"""
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am rjw57 on github.
  • I am richwareham (https://keybase.io/richwareham) on keybase.
  • I have a public key whose fingerprint is 4E27 6278 B082 CE98 E5A9 618E 7BA6 A2C7 4E3D 7E0D

To claim this, I am signing this object: