How does the .blur function actually work
I would like to use the .blur function in OpenSesame through the Expyriment backend in order to show visual stimuli with dynamically set levels of blurring, but can't find documentation about how the .blur function actually works. i.e. What is the actual algorithm being applied. Is it a Gaussian filter with the blur level that the function asks for as an input being the number of standard deviations?
Thank you!
Comments
Hi verkerm,
it is a very basic operation. As the documentation says:
"This blurs the stimulus, by scaling it down and up by the factor of 'level'."
The scaling algorithm is Pygame's
transform.scale, which is "a fast scale operation that does not sample the results." (http://pygame.org/docs/ref/transform.html#pygame.transform.scale).Ah, so it does a lossy scale-down by the given factor, followed by a lossy scale-up back to the previous resolution?
Correct.
Awesome, thank you so much!