Skip to content

Instantly share code, notes, and snippets.

@m8rge
m8rge / HashBuilder.php
Last active Aug 29, 2015 — forked from mncaudill/similar.php
Image similarity algorithm
View HashBuilder.php
<?php
# Algorithm found here: http://www.hackerfactor.com/blog/index.php?/archives/432-Looks-Like-It.html
class HashBuilder
{
private $buf;
function __construct()
{
$this->buf = imagecreatetruecolor(8, 8);
}
You can’t perform that action at this time.