annotate org/gabor.org @ 356:446300cb5ae7

much easier way to load a library, using clojure.lang.RT/loadLibrary.
author Robert McIntyre <rlm@mit.edu>
date Wed, 06 Mar 2013 17:21:00 +0000
parents
children 90b34cb842de
rev   line source
rlm@356 1 #+title: Fun with Gabor Filters
rlm@356 2 #+author: Robert McIntyre
rlm@356 3 #+email: rlm@mit.edu
rlm@356 4 #+description: gabor filters in clojure with opencv
rlm@356 5 #+keywords: computer vision, jMonkeyEngine3, clojure, opencv
rlm@356 6 #+SETUPFILE: ../../aurellem/org/setup.org
rlm@356 7 #+INCLUDE: ../../aurellem/org/level-0.org
rlm@356 8 #+babel: :mkdirp yes :noweb yes :exports both
rlm@356 9
rlm@356 10
rlm@356 11
rlm@356 12 #+name: gabor
rlm@356 13 #+begin_src clojure
rlm@356 14 (ns cortex.gabor)
rlm@356 15
rlm@356 16 (defn load-opencv
rlm@356 17 "Load the opencv native library. Must be called before any OpenCV
rlm@356 18 stuff is used."
rlm@356 19 []
rlm@356 20 (clojure.lang.RT/loadLibrary "opencv_java249"))
rlm@356 21
rlm@356 22
rlm@356 23
rlm@356 24
rlm@356 25 #+end_src
rlm@356 26
rlm@356 27
rlm@356 28
rlm@356 29 * COMMENT Generate Source
rlm@356 30 #+begin_src clojure :tangle ../src/cortex/gabor.clj
rlm@356 31 <<gabor>>
rlm@356 32 #+end_src