diff 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
line wrap: on
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/org/gabor.org	Wed Mar 06 17:21:00 2013 +0000
     1.3 @@ -0,0 +1,32 @@
     1.4 +#+title: Fun with Gabor Filters
     1.5 +#+author: Robert McIntyre
     1.6 +#+email: rlm@mit.edu
     1.7 +#+description: gabor filters in clojure with opencv
     1.8 +#+keywords: computer vision, jMonkeyEngine3, clojure, opencv
     1.9 +#+SETUPFILE: ../../aurellem/org/setup.org
    1.10 +#+INCLUDE: ../../aurellem/org/level-0.org
    1.11 +#+babel: :mkdirp yes :noweb yes :exports both
    1.12 +
    1.13 +
    1.14 +
    1.15 +#+name: gabor
    1.16 +#+begin_src clojure
    1.17 +(ns cortex.gabor)
    1.18 +
    1.19 +(defn load-opencv
    1.20 +  "Load the opencv native library. Must be called before any OpenCV
    1.21 +  stuff is used."
    1.22 +  []
    1.23 +  (clojure.lang.RT/loadLibrary "opencv_java249"))
    1.24 +
    1.25 +
    1.26 +
    1.27 +
    1.28 +#+end_src
    1.29 +
    1.30 +
    1.31 +
    1.32 +* COMMENT Generate Source
    1.33 +#+begin_src clojure :tangle ../src/cortex/gabor.clj
    1.34 +<<gabor>>
    1.35 +#+end_src