| Package | de.popforge.imageprocessing.filters.convolution |
| Class | public final class Sharpen |
| Inheritance | Sharpen Convolution NativeFilter |
The convolution matrix depends on the strength:
[ -s, -s, -s ]
[ -s, 8*s+1, -s ]
[ -s, -s, -s ]
Supported formats:
var filter: Sharpen = new Sharpen(); var video: WebCam = new WebCam( 160, 120 ); var image: Image = new Image( 160, 120, ImageFormat.GRAYSCALE ); image.loadBitmapData( video.getCurrentFrame(), true ); filter.apply( image );
| Method | Defined by | ||
|---|---|---|---|
|
Sharpen(strength:Number = -1)
Creates a new Shapren object.
| Sharpen | ||
![]() |
Applies the filter to the given Image object.
| NativeFilter | |
|
toString():String
Builds and returns a string containing the name of the class.
| Sharpen | ||
| Sharpen | () | constructor |
public function Sharpen(strength:Number = -1)Creates a new Shapren object. Passing no parameter or any strength less than zero results in a predefined convolution matrix optimized to work with SSE.
Parametersstrength:Number (default = -1) — The strength of the sharpening effect.
|
| 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.
|