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

SCM Repository

[diderot] View of /tests/sqprnt/sqp4.diderot
ViewVC logotype

View of /tests/sqprnt/sqp4.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4640 - (download) (annotate)
Tue Sep 27 20:54:47 2016 UTC (2 years, 9 months ago) by glk
File size: 383 byte(s)
initial result of svn export --username anonsvn --password=anonsvn https://svn.smlnj-gforge.cs.uchicago.edu/svn/diderot/branches/vis15/src/tests/
#version 2

input vec2 vmm = [0,0];
input vec4 voff = [0,0,0,0];
vec4[] seeds = load_sequence("vec.nrrd");

strand sqp (int ii, vec4 vv) {
   int nn = length(seeds);
   output real err = 0;

   update {
      real ww = lerp(vmm[0], vmm[1], 0, ii, nn-1);
      err = |voff + [ww,ww,ww,ww] - vv|;
      stabilize;
   }
}

create_array { sqp(ii, seeds[ii]) | ii in 0..length(seeds)-1 }

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