Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /branches/vis12-cl/test/border-test.diderot
ViewVC logotype

Diff of /branches/vis12-cl/test/border-test.diderot

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3050, Thu Mar 12 13:40:58 2015 UTC revision 3349, Tue Oct 27 15:16:36 2015 UTC
# Line 1  Line 1 
1  /* border-test.diderot  /* border-test.diderot
2   *   *
3   * COPYRIGHT (c) 2015 The Diderot Project (http://diderot-language.cs.uchicago.edu)   * This code is part of the Diderot Project (http://diderot-language.cs.uchicago.edu)
4     *
5     * COPYRIGHT (c) 2015 The University of Chicago
6   * All rights reserved.   * All rights reserved.
7   *   *
8   * Test the border control features.   * Test the border control features.
9     *
10     * To convert output to PNG:
11     *
12     *      for i in c m w x ; do ; unu quantize -b 8 -i txt$i.nrrd -o txt$i.png; done
13     *
14     * or
15     *
16     *      unu quantize -b 8 -i txtc.nrrd -o txtc.png
17     *      unu quantize -b 8 -i txtm.nrrd -o txtm.png
18     *      unu quantize -b 8 -i txtw.nrrd -o txtw.png
19     *      unu quantize -b 8 -i txtx.nrrd -o txtx.png
20   */   */
21    
22  input image(2)[3] Img = image("../data/mandrill.nrrd");  input image(2)[3] Img = image("../data/mandrill.nrrd");
# Line 18  Line 31 
31    
32  strand Sample (vec2 pos)  strand Sample (vec2 pos)
33  {  {
34      output vec3 txtb = zeros[3]; // TODO: change to nan[3]      output vec3 txtb = nan[3];
35      output vec3 txtc = zeros[3];      output vec3 txtc = nan[3];
36      output vec3 txtm = zeros[3];      output vec3 txtm = nan[3];
37      output vec3 txtw = zeros[3];      output vec3 txtw = nan[3];
38      output vec3 txtx = zeros[3];      output vec3 txtx = nan[3];
39    
40      update {      update {
41          txtb = Tb(pos);          txtb = Tb(pos);

Legend:
Removed from v.3050  
changed lines
  Added in v.3349

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0