Mercurial > cortex
changeset 446:3e91585b2a1c
save.
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Tue, 25 Mar 2014 03:24:28 -0400 |
parents | 47cfbe84f00e |
children | 284316604be0 |
files | thesis/cortex.org |
diffstat | 1 files changed, 21 insertions(+), 22 deletions(-) [+] |
line wrap: on
line diff
1.1 --- a/thesis/cortex.org Tue Mar 25 03:18:04 2014 -0400 1.2 +++ b/thesis/cortex.org Tue Mar 25 03:24:28 2014 -0400 1.3 @@ -181,34 +181,14 @@ 1.4 #+caption: The worm performs many actions during free play such as 1.5 #+caption: curling, wiggling, and resting. 1.6 #+name: worm-intro 1.7 - #+ATTR_LaTeX: :width 13cm 1.8 + #+ATTR_LaTeX: :width 15cm 1.9 [[./images/worm-intro-white.png]] 1.10 1.11 - 1.12 - #+caption: Body-centerd actions are best expressed in a body-centered 1.13 - #+caption: language. This code detects when the worm has curled into a 1.14 - #+caption: full circle. Imagine how you would replicate this functionality 1.15 - #+caption: using low-level pixel features such as HOG filters! 1.16 - #+name: grand-circle-intro 1.17 - #+begin_listing clojure 1.18 - #+begin_src clojure 1.19 -(defn grand-circle? 1.20 - "Does the worm form a majestic circle (one end touching the other)?" 1.21 - [experiences] 1.22 - (and (curled? experiences) 1.23 - (let [worm-touch (:touch (peek experiences)) 1.24 - tail-touch (worm-touch 0) 1.25 - head-touch (worm-touch 4)] 1.26 - (and (< 0.55 (contact worm-segment-bottom-tip tail-touch)) 1.27 - (< 0.55 (contact worm-segment-top-tip head-touch)))))) 1.28 - #+end_src 1.29 - #+end_listing 1.30 - 1.31 #+caption: The actions of a worm in a video can be recognized by 1.32 #+caption: proprioceptive data and sentory predicates by filling 1.33 #+caption: in the missing sensory detail with previous experience. 1.34 #+name: worm-recognition-intro 1.35 - #+ATTR_LaTeX: :width 10cm 1.36 + #+ATTR_LaTeX: :width 15cm 1.37 [[./images/worm-poses.png]] 1.38 1.39 1.40 @@ -236,6 +216,25 @@ 1.41 and then behold the simplicity of describing thus action in a 1.42 language designed for the task (listing \ref{grand-circle-intro}): 1.43 1.44 + #+caption: Body-centerd actions are best expressed in a body-centered 1.45 + #+caption: language. This code detects when the worm has curled into a 1.46 + #+caption: full circle. Imagine how you would replicate this functionality 1.47 + #+caption: using low-level pixel features such as HOG filters! 1.48 + #+name: grand-circle-intro 1.49 + #+begin_listing clojure 1.50 + #+begin_src clojure 1.51 +(defn grand-circle? 1.52 + "Does the worm form a majestic circle (one end touching the other)?" 1.53 + [experiences] 1.54 + (and (curled? experiences) 1.55 + (let [worm-touch (:touch (peek experiences)) 1.56 + tail-touch (worm-touch 0) 1.57 + head-touch (worm-touch 4)] 1.58 + (and (< 0.55 (contact worm-segment-bottom-tip tail-touch)) 1.59 + (< 0.55 (contact worm-segment-top-tip head-touch)))))) 1.60 + #+end_src 1.61 + #+end_listing 1.62 + 1.63 1.64 ** =CORTEX= is a toolkit for building sensate creatures 1.65