D 2013-09-01T15:48:26.918 L ConvolutionMatrix P 7beaaa3db5f7291ec92685ad78e896523dbad911 U user W 1453

Convolution Matrix

It's classical image processing method: applying of 2D filter on each pixel. More about convolution matrix read [http://docs.gimp.org/en/plug-in-convmatrix.html|this]. 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 (div) and shifted by another (shift or bias). 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 [/doc/tip/conv.scm|conv.scm]. Some examples are here: Edge detection matrix after black and white conversion:

Dilation matrix application after conversion to black and white:

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

Emboss matrix applied:

Z 91cd2b910b143e3f176e7acf68b0ecfd