[pHash-support] how to store ulong64 ph_dct_imagehash() hash to file?

Evan Klinger eklinger at phash.org
Fri Oct 8 15:23:25 PDT 2010


Andy,
You should be using the MVP storage functions to handle this for you.
Take a look in the examples folder to see how to create, add and query
the mvp database.

Evan

On Fri, Oct 8, 2010 at 2:57 PM, Andy Saurin <andrew at saurin.com> wrote:
> Hi,
>
> I know this isn't a support forum for C-related questions, but can I ask anyway?!
>
> I'm trying to store the hash returned from ph_dct_imagehash() which I gather is ULONG64 into a flatfile.
>
> The reason is I'm trying to reduce time calculating the ph_hamming_distance between 1 file and many files. The hash of many files are constant whereas a single file to compare against those hashes changes.
>
> So I would like to create a flatfile/db of the hashes of the constant library and draw on that using the query (changing) hash.
>
> So how can I store the ULONG64 hashes of the constant library?
>
> Hope I've explained it clearly!
>
> Thanks
> Andy
> _______________________________________________
> pHash-support mailing list
> pHash-support at lists.phash.org
> http://lists.phash.org/listinfo.cgi/phash-support-phash.org
>


More information about the pHash-support mailing list