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

SCM Repository

[diderot] Diff of /branches/ein16/test/zslice-hess2.diderot
ViewVC logotype

Diff of /branches/ein16/test/zslice-hess2.diderot

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

revision 2377, Mon Jun 3 19:41:56 2013 UTC revision 3063, Sat Mar 14 13:37:57 2015 UTC
# Line 6  Line 6 
6  // unu reshape -s 2 200 200 -i zslice-hess2.txt | unu pad -min 0 0 0 -max 2 M M -b wrap | unu quantize -b 8  -o zslice-hess2.png  // unu reshape -s 2 200 200 -i zslice-hess2.txt | unu pad -min 0 0 0 -max 2 M M -b wrap | unu quantize -b 8  -o zslice-hess2.png
7    
8  int gridSize = 200;  int gridSize = 200;
9  field#1(2)[2] G = ctmr ⊛ load("../data/ddro-80-grad.nrrd");  field#1(2)[2] G = ctmr ⊛ image("../data/ddro-80-grad.nrrd");
10    
11    
12  /* HEY: Not able to load nrrd as tensor[2,2] image; error is:  /* HEY: Not able to load nrrd as tensor[2,2] image; error is:
# Line 20  Line 20 
20  Can comment out following two lines, and below replace "hess = H(pos)"  Can comment out following two lines, and below replace "hess = H(pos)"
21  with "hess = ∇⊗G(pos)", to get program to run and generate similar output  with "hess = ∇⊗G(pos)", to get program to run and generate similar output
22  */  */
23  image(2)[2,2] Himg = load("../data/ddro-80-hess.nrrd");  image(2)[2,2] Himg = image("../data/ddro-80-hess.nrrd");
24  field#1(2)[2,2] H = ctmr ⊛ Himg;  field#1(2)[2,2] H = ctmr ⊛ Himg;
25    
26  strand sample (int ui, int vi) {  strand sample (int ui, int vi) {

Legend:
Removed from v.2377  
changed lines
  Added in v.3063

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