Skip to content

Instantly share code, notes, and snippets.


Petteri Aimonen PetteriAimonen

View GitHub Profile
# Interpolate depth maps
from PIL import Image
import math
import random
contours ="contours.png")
contourspx = contours.load()
w, h = contours.size

Keybase proof

I hereby claim:

  • I am petteriaimonen on github.
  • I am jpa ( on keybase.
  • I have a public key ASDMJhsa2oINfygbEdRO47UU2yytVjRxUXZK3OH70zMwQgo

To claim this, I am signing this object:

View gist:8a05e7b908183251f55ea43d118b49b2
>>> class foobar: pass
>>> A = foobar()
>>> B = foobar()
>>> A.b = B
>>> B.a = A
>>> pickle.dumps(A)
>>> newA = pickle.loads(pickle.dumps(A))
>>> newA.b