module Pluto::Operation::HorizontalBlur

Direct including types

Defined in:

pluto/operation/horizontal_blur.cr

Instance Method Summary

Instance Method Detail

def horizontal_blur(radius : Int32) : self #

[View source]
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).


[View source]