PHP Class Undemanding\Difference\Difference

Afficher le fichier Open project: undemanding/difference

Méthodes publiques

Méthode Description
__construct ( Image $image )
boundary ( ) : array Boundary for all significant pixels.
getBitmap ( ) : array
getHeight ( ) : integer
getWidth ( ) : integer
percentage ( ) : float Percentage of different pixels in the bitmap.
withReducedStandardDeviation ( ) : Difference New Difference from reduced standard deviation.
withScale ( float $factor ) : Difference New Difference with scaled differences.

Private Methods

Méthode Description
average ( ) : integer Average difference for all bitmap pixels.
cloneWith ( string $property, mixed $value ) : Difference
maximum ( ) : integer Maximum difference for all bitmap pixels.
standardDeviation ( ) : float Standard deviation for all bitmap pixels.

Method Details

__construct() public méthode

public __construct ( Image $image )
$image Image

boundary() public méthode

Boundary for all significant pixels.
public boundary ( ) : array
Résultat array

getBitmap() public méthode

public getBitmap ( ) : array
Résultat array

getHeight() public méthode

public getHeight ( ) : integer
Résultat integer

getWidth() public méthode

public getWidth ( ) : integer
Résultat integer

percentage() public méthode

Percentage of different pixels in the bitmap.
public percentage ( ) : float
Résultat float

withReducedStandardDeviation() public méthode

New Difference from reduced standard deviation.
public withReducedStandardDeviation ( ) : Difference
Résultat Difference

withScale() public méthode

New Difference with scaled differences.
public withScale ( float $factor ) : Difference
$factor float
Résultat Difference