@Namespace(value="cv::xfeatures2d") @Properties(inherit=opencv_xfeatures2d.class) public class LATCH extends Feature2D
LATCH is a binary descriptor based on learned comparisons of triplets of image patches.
bytes is the size of the descriptor - can be 64, 32, 16, 8, 4, 2 or 1 rotationInvariance - whether or not the descriptor should compansate for orientation changes. half_ssd_size - the size of half of the mini-patches size. For example, if we would like to compare triplets of patches of size 7x7x then the half_ssd_size should be (7-1)/2 = 3. sigma - sigma value for GaussianBlur smoothing of the source image. Source image will be used without smoothing in case sigma value is 0.
Note: the descriptor can be coupled with any keypoint extractor. The only demand is that if you use set rotationInvariance = True then you will have to use an extractor which estimates the patch orientation (in degrees). Examples for such extractors are ORB and SIFT.
Note: a complete example can be found under /samples/cpp/tutorial_code/xfeatures2D/latch_match.cpp
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
LATCH(Algorithm pointer)
Downcast constructor.
|
LATCH(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
static LATCH |
create() |
static LATCH |
create(int bytes,
boolean rotationInvariance,
int half_ssd_size,
double sigma) |
int |
getBytes() |
BytePointer |
getDefaultName()
Returns the algorithm string identifier.
|
int |
getHalfSSDsize() |
boolean |
getRotationInvariance() |
double |
getSigma() |
void |
setBytes(int bytes) |
void |
setHalfSSDsize(int half_ssd_size) |
void |
setRotationInvariance(boolean rotationInvariance) |
void |
setSigma(double sigma) |
asAlgorithm, asAlgorithm, compute, compute, compute, compute, compute, compute, defaultNorm, descriptorSize, descriptorType, detect, detect, detect, detect, detect, detect, detect, detect, detect, detect, detect, detect, detectAndCompute, detectAndCompute, detectAndCompute, detectAndCompute, detectAndCompute, detectAndCompute, empty, getPointer, position, read, read, read, write, write, write, write, write
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 LATCH(Pointer p)
Pointer(Pointer)
.public LATCH(Algorithm pointer)
@opencv_core.Ptr public static LATCH create(int bytes, @Cast(value="bool") boolean rotationInvariance, int half_ssd_size, double sigma)
@opencv_core.Ptr public static LATCH create()
public void setBytes(int bytes)
public int getBytes()
public void setRotationInvariance(@Cast(value="bool") boolean rotationInvariance)
public void setHalfSSDsize(int half_ssd_size)
public int getHalfSSDsize()
public void setSigma(double sigma)
public double getSigma()
@opencv_core.Str public BytePointer getDefaultName()
Algorithm
getDefaultName
in class Feature2D
Copyright © 2024. All rights reserved.