MCPcopy Create free account
hub / github.com/aetilius/pHash / Java_org_phash_pHash_mhImageHashFromPixels

Function Java_org_phash_pHash_mhImageHashFromPixels

bindings/java/pHash-jni.cpp:189–221  ·  view source on GitHub ↗

Hash an image already held in memory. Avoids the temp-file round-trip that mhImageHash(String) requires. The byte[] is the row-major interleaved pixel data; for a 3-channel RGB image it should be width*height*3 bytes, for a 4-channel RGBA image width*height*4 (alpha is discarded), and for a 1-channel grayscale image width*height.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected