SCM Repository
[diderot] / branches / lamont_dev / rtest / tests / convo2d0 / convo2d0.diderot |
View of /branches/lamont_dev/rtest/tests/convo2d0/convo2d0.diderot
Parent Directory
|
Revision Log
Revision 1697 -
(download)
(annotate)
Wed Feb 29 16:03:29 2012 UTC (10 years, 3 months ago) by lamonts
File size: 458 byte(s)
Wed Feb 29 16:03:29 2012 UTC (10 years, 3 months ago) by lamonts
File size: 458 byte(s)
Creating my dev branch
int outSize = 200; field#0(2)[] F = tent ⊛ load("../../data/ddro-115.nrrd"); strand sample (int ui, int vi) { real uu = lerp(0.0, 1.0, -0.5, real(ui), real(outSize)-0.5); real vv = lerp(0.0, 1.0, -0.5, real(vi), real(outSize)-0.5); vec2 pos = [uu, vv]; output real val = -1.0; update { val = F(pos) if (inside(pos,F)) else -1.0; stabilize; } } initially [ sample(ui, vi) | vi in 0..(outSize-1), ui in 0..(outSize-1) ];
root@smlnj-gforge.cs.uchicago.edu | ViewVC Help |
Powered by ViewVC 1.0.0 |