API - XOOPS 2.5.11 Beta 2
By monxoops.fr
AddNoise Class Reference

Public Member Functions

 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)
 

Member Function Documentation

◆ byte()

byte (   $b)

Returns value within (0,255)

Parameters
int$b
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: