<h1>Convolution Matrix</h1>

It's classical image processing method: applying of 2D filter on each pixel. More about convolution matrix read Main idea is the same as in other filters: each original samples gives some value to common result but all of thees values has different amount which depend of filter formula.

There are 2 main notes on this filter. First: no recursion, so original pixels (samples) - are real original and temporary clean copy of original image should be allocated and used for calculation. Second: normalization of result is need. Result is divided by special value (<b>div</b>) and shifted by another (<b>shift</b> or <b>bias</b>). And if now it's lesser then 0, 0 should be used instead of, if bigger then 255, 255 should be placed as result.

See test4.scm, test6.scm, test7.scm. Different predefined convolution matrix with div and shift are available in

Some examples are here:

Edge detection matrix after black and white conversion:

<br/><img

Dilation matrix application after conversion to black and white:

<br/><img

Edge detection matrix with div=3 and shift=60:

<br/><img

Emboss matrix applied:

<br/><img