PHP Class Jenssegers\ImageHash\Implementations\PerceptualHash

Inheritance: implements Jenssegers\ImageHash\Implementation
Datei anzeigen Open project: jenssegers/imagehash

Public Methods

Method Description
hash ( $resource ) {@inheritDoc}

Protected Methods

Method Description
DCT1D ( array $pixels ) Perform a 1 dimension Discrete Cosine Transformation.
median ( array $pixels ) : float Get the median of the pixel values.

Method Details

DCT1D() protected method

Perform a 1 dimension Discrete Cosine Transformation.
protected DCT1D ( array $pixels )
$pixels array

hash() public method

{@inheritDoc}
public hash ( $resource )

median() protected method

Get the median of the pixel values.
protected median ( array $pixels ) : float
$pixels array
return float