Packagede.popforge.imageprocessing.filters.convolution
Classpublic final class Edges
InheritanceEdges Inheritance Convolution Inheritance NativeFilter

The Edges class is a filter that uses a convolution matrix to extract the edges an image contains.

Divisor is 2.2. The convolution matrix is static.
[ 0,  2, 0 ]
[ 2, -8, 2 ]
[ 0,  2, 0 ]

Supported formats:


Example
  
  var filter: Edges = new Edges();
  
  var video: WebCam = new WebCam( 160, 120 );
  var image: Image = new Image( 160, 120, ImageFormat.GRAYSCALE );
  
  image.loadBitmapData( video.getCurrentFrame(), true );
  
  filter.apply( image );
  



Protected Properties
 PropertyDefined by
 Inheritedfilter : BitmapFilter
The native filter that will be overridden by a subclass of NativeFilter.
NativeFilter
Public Methods
 MethodDefined by
  
Creates a new Edges object.
Edges
 Inherited
apply(image:Image):void
Applies the filter to the given Image object.
NativeFilter
  
toString():String
Builds and returns a string containing the name of the class.
Edges
Constructor detail
Edges()constructor
public function Edges()

Creates a new Edges object.

Method detail
toString()method
public override function toString():String

Builds and returns a string containing the name of the class.

Returns
String — A string containing the name of the class.