Packagede.popforge.imageprocessing.filters.morphological
Classpublic final class Closing
ImplementsIFilter

The Closing class is a filter that closes gaps in an image.

This filter uses a structuring function. The bigger the matrix of the function is the bigger gaps you may close in one execution.

Supported formats:


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

See also

de.popforge.imageprocessing.geom.StructuringFunction


Public Methods
 MethodDefined by
  
Closing(structuringFunction:StructuringFunction = null)
Creates a new Closing object.
Closing
  
apply(image:Image):void
Applies the filter to the given Image object.
Closing
  
toString():String
Builds and returns a string containing the name of the class.
Closing
Constructor detail
Closing()constructor
public function Closing(structuringFunction:StructuringFunction = null)

Creates a new Closing object.

If no structuring function has been passed there will be a default 3x3 matrix used.

[ 1, 1, 1 ]
[ 1, 1, 1 ]
[ 1, 1, 1 ]

Parameters
structuringFunction:StructuringFunction (default = null) — The structuring function used with this filter.

See also

Method detail
apply()method
public function apply(image:Image):void

Applies the filter to the given Image object.

Parameters
image:Image — The image that will be manipulated.
toString()method 
public function toString():String

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

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