Research Article

Exploring Trade-Offs between Specialized Dataflow Kernels and a Reusable Overlay in a Stereo Matching Case Study

Listing 4

Horizontal integral sums.
)    void  horSum(in,  out)  
()     long  slice = height    width;
()     for (int  d=0; d<=maxD; d++)  
()      for (int  y=0; y<height; y++)  
()       out[dslice + ywidth] = in[dslice + ywidth];
()       for (x=1; x<width; x++)  
()        out[dslice + ywidth + x] =
()         out[dslice + ywidth + x-1] + in[dslice + y
           width + x];
()       
()   
()  
()