|
| execute ($image, $amount, $type) |
|
| filter ($image, $function, $value) |
|
| colorNoise_fun (&$r, &$g, &$b, $amount) |
|
| monoNoise_fun (&$r, &$g, &$b, $amount) |
|
| saltPepperNoise_fun (&$r, &$g, &$b, $amount) |
|
| byte ($b) |
|
◆ byte()
Returns value within (0,255)
- Parameters
-
- Returns
- int
◆ colorNoise_fun()
colorNoise_fun |
( |
& |
$r, |
|
|
& |
$g, |
|
|
& |
$b, |
|
|
|
$amount |
|
) |
| |
Adds color noise by altering given R,G,B values using specififed amount
- Parameters
-
int | $r | |
int | $g | |
int | $b | |
int | $value |
|
- Returns
- void
◆ execute()
execute |
( |
|
$image, |
|
|
|
$amount, |
|
|
|
$type |
|
) |
| |
Returns image with noise added
- Parameters
-
\WideImage\Image | $image | |
float | $amount | |
const | $type | |
float | $threshold | |
- Returns
- \WideImage\Image
◆ filter()
filter |
( |
|
$image, |
|
|
|
$function, |
|
|
|
$value |
|
) |
| |
Returns image with every pixel changed by specififed function
- Parameters
-
\WideImage\Image | $image | |
str | $function | |
int | $value | |
- Returns
- \WideImage\Image
◆ monoNoise_fun()
monoNoise_fun |
( |
& |
$r, |
|
|
& |
$g, |
|
|
& |
$b, |
|
|
|
$amount |
|
) |
| |
Adds mono noise by altering given R,G,B values using specififed amount
- Parameters
-
int | $r | |
int | $g | |
int | $b | |
int | $value |
|
- Returns
- void
◆ saltPepperNoise_fun()
saltPepperNoise_fun |
( |
& |
$r, |
|
|
& |
$g, |
|
|
& |
$b, |
|
|
|
$amount |
|
) |
| |
Adds salt&pepper noise by altering given R,G,B values using specififed amount
- Parameters
-
int | $r | |
int | $g | |
int | $b | |
int | $value |
|
- Returns
- void
The documentation for this class was generated from the following file:
- C:/xoops2511b2/htdocs/class/libraries/vendor/smottt/wideimage/lib/WideImage/Operation/AddNoise.php