image processing in D

Torarin torarind at gmail.com
Thu Apr 7 02:05:01 PDT 2011


2011/4/4 Emil Madsen <sovende at gmail.com>:
> And a more specific question; say one wants to blur a picture
> with Gaussian blur, how would D ranges deal with the 2d array?

foreach (r; image.rows)
 convolute1d(r, gaussianKernel);

foreach (c; image.cols)
 convolute1d(c, gaussianKernel);

Torarin


More information about the Digitalmars-d mailing list