module Pluto::Operation::HorizontalBlur
Direct including types
Defined in:
pluto/operation/horizontal_blur.crInstance Method Summary
- #horizontal_blur(radius : Int32) : self
-
#horizontal_blur!(radius : Int32) : self
boxBlurH_4 in Algorithm 4 in this post.
Instance Method Detail
def horizontal_blur!(radius : Int32) : self
#
boxBlurH_4 in Algorithm 4 in this post.
This is running a horizontal 1 pixel tall window that is 2 * radius + 1
wide along each row and replacing the
center pixel with sum of all pixels in the window multiplied by 1 / (2 * radius + 1)
(i.e. the average
of the pixels in the window).