comparison org/gabor.org @ 370:44fe96a568b9

fixing video for gabor.
author Robert McIntyre <rlm@mit.edu>
date Tue, 12 Mar 2013 03:54:19 +0000
parents 7a90d37c84b0
children 182f890a9a9d
comparison
equal deleted inserted replaced
369:2d8a8422ff59 370:44fe96a568b9
421 (compile-big-small)) 421 (compile-big-small))
422 422
423 423
424 #+end_src 424 #+end_src
425 425
426 #+name: make-left-right 426
427 #+begin_src sh 427 #+name: make-videos
428 #!/bin/sh 428 #+begin_src makefile
429 429 scale:
430 ffmpeg -framerate 60 -i ./left-right/%07d.png -b:v 9000k\ 430 ffmpeg -framerate 60 -i ./big-small/%07d.png -b:v 9000k\
431 -c:v mpeg4 -r 60 gabor-rotation.mp4 431 -c:v theora -r 60 gabor-scale.ogg
432 432
433 #+end_src 433 rotation:
434 434 ffmpeg -framerate 60 -i ./left-right/%07d.png -b:v 9000k\
435 435 -c:v theora -r 60 gabor-rotation.ogg
436 #+name: make-big-small 436
437 #+begin_src sh 437 all: rotation scale
438 #!/bin/sh 438
439 439 clean:
440 ffmpeg -framerate 60 -i ./big-small/%07d.png -b:v 9000k\ 440 rm gabor-rotation.org gabor-scale.ogg
441 -c:v mpeg4 -r 60 gabor-big-small.mp4 441 #+end_src
442 442
443 #+end_src
444 443
445 #+begin_html 444 #+begin_html
446 <div class="figure"> 445 <div class="figure">
447 <video controls="controls" width="755"> 446 <video controls="controls">
448 <source src="../video/gabor-rotation.mp4" type="video/mp4" 447 <source src="../video/gabor-rotation.mp4" type="video/ogg"
449 preload="none" poster="../images/aurellem-1280x480.png" /> 448 preload="none" poster="../images/aurellem-1280x480.png" />
450 </video> 449 </video>
451 <br> <a href="http://youtu.be/bxujjO97B-U"> YouTube </a> 450 <br> <a href="http://youtu.be/bxujjO97B-U"> YouTube </a>
452 <p>Two gabor filters with different values of theta are compared. The 451 <p>Two gabor filters with different values of theta are compared. The
453 horizontally aligned one does better in this example.</p> 452 horizontally aligned one does better in this example.</p>
456 455
457 456
458 457
459 #+begin_html 458 #+begin_html
460 <div class="figure"> 459 <div class="figure">
461 <video controls="controls" width="755"> 460 <video controls="controls">
462 <source src="../video/gabor-big-small.mp4" type="video/mp4" 461 <source src="../video/gabor-scale.ogg" type="video/ogg"
463 preload="none" poster="../images/aurellem-1280x480.png" /> 462 preload="none" poster="../images/aurellem-1280x480.png" />
464 </video> 463 </video>
465 <br> <a href="http://youtu.be/-EsfA2ceWUk"> YouTube </a> 464 <br> <a href="http://youtu.be/-EsfA2ceWUk"> YouTube </a>
466 <p>Here we compare a gabor filter from bank 1 with one from bank 6.</p> 465 <p>Here we compare a gabor filter from bank 1 with one from bank 6.</p>
467 </div> 466 </div>
468 #+end_html 467 #+end_html
469 468
470 469
471 470
472
473 * COMMENT Generate Source 471 * COMMENT Generate Source
474 #+begin_src clojure :tangle ../src/cortex/gabor.clj 472 #+begin_src clojure :tangle ../src/cortex/gabor.clj
475 <<gabor>> 473 <<gabor>>
476 <<gabor-tail>> 474 <<gabor-tail>>
477 #+end_src 475 #+end_src
478 476
479 #+begin_src clojure :tangle ../render/gabor-1/make-rotation.sh 477 #+begin_src Makefile :tangle ../render/gabor-1/Makefile
480 <<make-left-right>> 478 <<make-videos>>
481 #+end_src 479 #+end_src
482
483 #+begin_src clojure :tangle ../render/gabor-1/make-big-small.sh
484 <<make-big-small>>
485 #+end_src