module Pluto::Operation::VerticalBlur

Direct including types

Defined in:

pluto/operation/vertical_blur.cr

Instance Method Summary

Instance Method Detail

def vertical_blur(radius : Int32) : self #

[View source]
def vertical_blur!(radius : Int32) : self #

boxBlurT_4 in Algorithm 4 in this post.

This is running a vertical 1 pixel wide window that is 2 * radius + 1 tall along each column 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]