@Namespace(value="cv::detail::tracking::tbm") @NoOffset @Properties(inherit=opencv_tracking.class) public class MatchTemplateDistance extends IDescriptorDistance
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
MatchTemplateDistance() |
MatchTemplateDistance(int type,
float scale,
float offset)
\brief Constructs the distance object.
|
MatchTemplateDistance(long size)
Native array allocator.
|
MatchTemplateDistance(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
float |
compute(Mat descr1,
Mat descr2)
\brief Computes distance between image descriptors.
|
FloatPointer |
compute(MatVector descrs1,
MatVector descrs2)
\brief Computes distances between two descriptors in batches.
|
MatchTemplateDistance |
getPointer(long i) |
MatchTemplateDistance |
position(long position) |
address, 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, zero
public MatchTemplateDistance(Pointer p)
Pointer(Pointer)
.public MatchTemplateDistance(long size)
Pointer.position(long)
.public MatchTemplateDistance(int type, float scale, float offset)
type
- [in] Method of MatchTemplate function computation.scale
- [in] Scale parameter for the distance.
Final distance is computed as:
scale * distance + offset.offset
- [in] Offset parameter for the distance.
Final distance is computed as:
scale * distance + offset.public MatchTemplateDistance()
public MatchTemplateDistance position(long position)
public MatchTemplateDistance getPointer(long i)
getPointer
in class Pointer
public float compute(@Const @ByRef Mat descr1, @Const @ByRef Mat descr2)
compute
in class IDescriptorDistance
descr
- [in] 1 First image descriptor.descr
- [in] 2 Second image descriptor.@StdVector public FloatPointer compute(@Const @ByRef MatVector descrs1, @Const @ByRef MatVector descrs2)
compute
in class IDescriptorDistance
descrs
- [in] 1 Batch of first descriptors.descrs
- [in] 2 Batch of second descriptors.Copyright © 2024. All rights reserved.