PHP Class Undemanding\Difference\ConnectedDifferences

显示文件 Open project: undemanding/difference

Public Methods

Method Description
__construct ( Difference $difference )
boundaries ( ) : array
withJoinedBoundaries ( ) : ConnectedDifferences

Private Methods

Method Description
adjacent ( array $pixel ) : array Labels for adjacent pixels.
cloneWith ( string $property, mixed $value ) : ConnectedDifferences
findBoundaries ( ) : array Find separate boundaries.
intersect ( array $p, array $q ) : boolean Tell if two boundaries overlap.

Method Details

__construct() public method

public __construct ( Difference $difference )
$difference Difference

boundaries() public method

public boundaries ( ) : array
return array

withJoinedBoundaries() public method

public withJoinedBoundaries ( ) : ConnectedDifferences
return ConnectedDifferences