If a detector has a resolution function, then the simulated intensity map is blurred by convolution with that function.
Currently, only Gaussian resolution functions are supported.
Create a Gaussian resolution function, and attach it to a detector, as follows:
resol = ba.ResolutionFunction2DGaussian(horizontal_width, vertical_width)
detector.setResolutionFunction(resol)
The widths are standard deviations in rad. The blur is the same for all pixels: each width is converted to pixels by the mean angular bin width of its axis.