The problem is to reduce edge effects. I have a Cu circle, that is a transaxial section of a cylinder, which carries some residual radiation known the 2-Dhistogram bins.

We wish to filter the border bin values to avoid edge effects when plottoing

In my case I would just convolve the border bins with a smoothing kernel, typycally a 3x3 weighted Gaussian kernel.

There are many such adaptive filters in imaging.

Do I have to perform the convolution myself. ?

Assume my kernel looks like:

0 1 0

1 1 1

0 1 0

Is there a more automatic way then going through all bins in the histogram, testing if it is a border bin, that is if it crosses the circumference, and if this is the case then center the kernel on the border bin and perform the multiplication with each neighbor and then sum the obtained values and divide by 5. ?

I guess my question is : does Root make available any such smoothing kernels and does it perform the filtering process itself ?

Thank you,

Maura