PHP Class Undemanding\Difference\Difference

Exibir arquivo Open project: undemanding/difference

Public Methods

Method 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

Method 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 method

public __construct ( Image $image )
$image Image

boundary() public method

Boundary for all significant pixels.
public boundary ( ) : array
return array

getBitmap() public method

public getBitmap ( ) : array
return array

getHeight() public method

public getHeight ( ) : integer
return integer

getWidth() public method

public getWidth ( ) : integer
return integer

percentage() public method

Percentage of different pixels in the bitmap.
public percentage ( ) : float
return float

withReducedStandardDeviation() public method

New Difference from reduced standard deviation.
public withReducedStandardDeviation ( ) : Difference
return Difference

withScale() public method

New Difference with scaled differences.
public withScale ( float $factor ) : Difference
$factor float
return Difference