Packagede.popforge.imageprocessing.filters.color
Classpublic final class RedEyeRemoval
ImplementsIFilter

The RedEyeRemoval class is a filter that removes the red-eye effect from taken fotos. This filter uses the approach to get the distance to other maximum color values and searches for a high saturation. If this happens the red channel will be scaled using the Y value of the current pixel multiplied with the new saturation.

Supported formats:



Public Methods
 MethodDefined by
  
RedEyeRemoval(tolerance:int = 70, newSaturation:Number = .9)
Creates a new RedEyeRemoval object.
RedEyeRemoval
  
apply(image:Image):void
Applies the filter to the given Image object.
RedEyeRemoval
  
toString():String
Builds and returns a string containing the name of the class.
RedEyeRemoval
Constructor detail
RedEyeRemoval()constructor
public function RedEyeRemoval(tolerance:int = 70, newSaturation:Number = .9)

Creates a new RedEyeRemoval object.

Parameters
tolerance:int (default = 70) — Tolerance for the distance between red value and blue/green from 0 to 255.
 
newSaturation:Number (default = .9) — The new scale for the red value from 0 to 1.
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.