@Namespace(value="cv::img_hash") @NoOffset @Properties(inherit=opencv_img_hash.class) public class ImgHashBase extends Algorithm
/** \brief The base class for image hash algorithms
| Modifier and Type | Class and Description |
|---|---|
static class |
ImgHashBase.ImgHashImpl |
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
ImgHashBase(Algorithm pointer)
Downcast constructor.
|
ImgHashBase(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Algorithm |
asAlgorithm() |
static Algorithm |
asAlgorithm(ImgHashBase pointer) |
double |
compare(GpuMat hashOne,
GpuMat hashTwo) |
double |
compare(Mat hashOne,
Mat hashTwo)
\brief Compare the hash value between inOne and inTwo
|
double |
compare(UMat hashOne,
UMat hashTwo) |
void |
compute(GpuMat inputArr,
GpuMat outputArr) |
void |
compute(Mat inputArr,
Mat outputArr)
\brief Computes hash of the input image
|
void |
compute(UMat inputArr,
UMat outputArr) |
clear, empty, getDefaultName, getPointer, position, read, save, save, write, write, writeaddress, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic ImgHashBase(Pointer p)
Pointer(Pointer).public ImgHashBase(Algorithm pointer)
public Algorithm asAlgorithm()
asAlgorithm in class Algorithm@Namespace @Name(value="static_cast<cv::Algorithm*>") public static Algorithm asAlgorithm(ImgHashBase pointer)
public void compute(@ByVal Mat inputArr, @ByVal Mat outputArr)
inputArr - input image want to compute hash valueoutputArr - hash of the imagepublic double compare(@ByVal Mat hashOne, @ByVal Mat hashTwo)
hashOne - Hash value onehashTwo - Hash value twoCopyright © 2025. All rights reserved.