Skip to content

Instantly share code, notes, and snippets.

@pingswept
Created July 31, 2012 21:21
Show Gist options
  • Save pingswept/3220679 to your computer and use it in GitHub Desktop.
Save pingswept/3220679 to your computer and use it in GitHub Desktop.
Testing OpenCV on the Rascal
[root@rascal14:/var/www/public/static/images]: python
Python 2.6.6 (r266:84292, Jun 18 2012, 19:18:49)
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv
>>> im = cv.LoadImageM('rascal.png', 1)
>>> dst = cv.CreateImage(cv.GetSize(im), cv.IPL_DEPTH_16S, 3)
>>> laplace = cv.Laplace(im, dst)
>>> cv.SaveImage('rascal-laplace.png', dst)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment