| Package | de.popforge.imageprocessing.filters.convolution |
| Class | public final class ConvolutionBlur |
| Inheritance | ConvolutionBlur Convolution NativeFilter |
The convolution matrix depends on the scale of the filter. Divisor is scale * scale. A scale of 3 would result in this kernel:
[ 1, 2, 1 ]
[ 2, 3, 2 ]
[ 1, 2, 1 ]
Supported formats:
var filter: ConvolutionBlur = new ConvolutionBlur( 4 ); var video: WebCam = new WebCam( 160, 120 ); var image: Image = new Image( 160, 120, ImageFormat.RGB ); image.loadBitmapData( video.getCurrentFrame(), true ); filter.apply( image );
| Method | Defined by | ||
|---|---|---|---|
|
ConvolutionBlur(scale:int = 3)
Creates a new ConvolutionBlur object with given scale.
| ConvolutionBlur | ||
![]() |
Applies the filter to the given Image object.
| NativeFilter | |
|
toString():String
Builds and returns a string containing the name of the class.
| ConvolutionBlur | ||
| ConvolutionBlur | () | constructor |
public function ConvolutionBlur(scale:int = 3)Creates a new ConvolutionBlur object with given scale.
Parametersscale:int (default = 3) — A scale value to calculate the blur kernel (1 to 64).
|
| toString | () | method |
public override function toString():StringBuilds and returns a string containing the name of the class.
ReturnsString — A string containing the name of the class.
|