PHP Class Horde_Image_Effect_Gd_Unsharpmask, horde

Unsharp mask algorithm by Torstein Hønsi 2003 From: http://www.vikjavev.com/hovudsida/umtestside.php
Inheritance: extends Horde_Image_Effect
ファイルを表示 Open project: horde/horde

Protected Properties

Property Type Description
$_params array In general, radius should be roughly output dpi / 150. So for display purposes a radius of 0.5 is suggested. - amount: (float) Amount of the difference between original and the blur image that gets added back to the original. Can be thought of as the "strength" of the effect. Too high may cause blocking of shadows and highlights. Given a decimal value indicating percentage, e.g. 1.2 = 120% - threshold: (float) Determines how large the brightness delta between adjacent pixels needs to be to sharpen the edge. Larger values == less sharpening. Useful for preventing noisy images from being oversharpened.

Public Methods

Method Description
apply ( ) Applies the effect.

Method Details

apply() public method

Applies the effect.
public apply ( )

Property Details

$_params protected_oe property

In general, radius should be roughly output dpi / 150. So for display purposes a radius of 0.5 is suggested. - amount: (float) Amount of the difference between original and the blur image that gets added back to the original. Can be thought of as the "strength" of the effect. Too high may cause blocking of shadows and highlights. Given a decimal value indicating percentage, e.g. 1.2 = 120% - threshold: (float) Determines how large the brightness delta between adjacent pixels needs to be to sharpen the edge. Larger values == less sharpening. Useful for preventing noisy images from being oversharpened.
protected array $_params
return array