\Horde_Image_Effect_Gd_Unsharpmask

Unsharp mask Image effect.

Unsharp mask algorithm by Torstein Hønsi 2003 thoensi@netcom.no from: http://www.vikjavev.com/hovudsida/umtestside.php

Summary

Methods
Properties
Constants
__construct()
setImageObject()
setLogger()
factory()
apply()
No public properties found
No constants found
No protected methods found
$_params
$_image
$_logger
N/A
No private methods found
No private properties found
N/A

Properties

$_params

$_params : array

Valid parameters: - radius: (float) Thickness of the sharpened edge. Should be greater than sigma (or 0, and imagick will attempt to auto choose).

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.

Type

array

$_image

$_image : \Horde_Image

The bound Horde_Image object

Type

\Horde_Image

$_logger

$_logger : 

Logger.

Type

Methods

__construct()

__construct(array  $params = array()) 

Effect constructor.

Parameters

array $params

Any parameters for the effect. Parameters are documented in each subclass.

setImageObject()

setImageObject(\Horde_Image  $image) 

Bind this effect to a Horde_Image object.

Parameters

\Horde_Image $image

The Horde_Image object

setLogger()

setLogger(\Horde_Log_Logger  $logger) 

Attaches a logger.

Parameters

\Horde_Log_Logger $logger

A logger.

factory()

factory(string  $type, string  $driver, array  $params) : \Horde_Image_Effect

Effect factory.

Parameters

string $type

An effect name.

string $driver

An image driver name.

array $params

Any effect parameters.

Returns

\Horde_Image_Effect

An effect instance.

apply()

apply() 

Applies the effect.