CvLSH Class OpenCvSharp Class Library
Locality Sensitive Hash (LSH) table
Inheritance Hierarchy

SystemObject
  OpenCvSharpDisposableObject
    OpenCvSharpDisposableCvObject
      OpenCvSharpCvLSH

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public class CvLSH : DisposableCvObject

The CvLSH type exposes the following members.

Constructors

  NameDescription
Public methodCvLSH(IntPtr)
Initializes from pointer
Public methodCvLSH(Int32, Int32)
Construct in-memory LSH table, with n bins.
Public methodCvLSH(IntPtr, Int32)
Construct a Locality Sensitive Hash (LSH) table, for indexing d-dimensional vectors of given type. Vectors will be hashed L times with k-dimensional p-stable (p=2) functions.
Public methodCvLSH(Int32, Int32, Int32)
Construct in-memory LSH table, with n bins.
Public methodCvLSH(IntPtr, Int32, Int32)
Construct a Locality Sensitive Hash (LSH) table, for indexing d-dimensional vectors of given type. Vectors will be hashed L times with k-dimensional p-stable (p=2) functions.
Public methodCvLSH(Int32, Int32, Int32, Int32)
Construct in-memory LSH table, with n bins.
Public methodCvLSH(IntPtr, Int32, Int32, Int32)
Construct a Locality Sensitive Hash (LSH) table, for indexing d-dimensional vectors of given type. Vectors will be hashed L times with k-dimensional p-stable (p=2) functions.
Public methodCvLSH(Int32, Int32, Int32, Int32, MatrixType)
Construct in-memory LSH table, with n bins.
Public methodCvLSH(IntPtr, Int32, Int32, Int32, MatrixType)
Construct a Locality Sensitive Hash (LSH) table, for indexing d-dimensional vectors of given type. Vectors will be hashed L times with k-dimensional p-stable (p=2) functions.
Public methodCvLSH(Int32, Int32, Int32, Int32, MatrixType, Double)
Construct in-memory LSH table, with n bins.
Public methodCvLSH(IntPtr, Int32, Int32, Int32, MatrixType, Double)
Construct a Locality Sensitive Hash (LSH) table, for indexing d-dimensional vectors of given type. Vectors will be hashed L times with k-dimensional p-stable (p=2) functions.
Public methodCvLSH(Int32, Int32, Int32, Int32, MatrixType, Double, Int64)
Construct in-memory LSH table, with n bins.
Public methodCvLSH(IntPtr, Int32, Int32, Int32, MatrixType, Double, Int64)
Construct a Locality Sensitive Hash (LSH) table, for indexing d-dimensional vectors of given type. Vectors will be hashed L times with k-dimensional p-stable (p=2) functions.
Top
Properties

  NameDescription
Protected propertyAllocatedMemory
Gets or sets a memory address allocated by AllocMemory.
(Inherited from DisposableObject.)
Protected propertyAllocatedMemorySize
Gets or sets the byte length of the allocated memory
(Inherited from DisposableObject.)
Public propertyCvPtr
Native pointer of OpenCV structure
(Inherited from DisposableCvObject.)
Public propertyIsDisposed
Gets a value indicating whether this instance has been disposed.
(Inherited from DisposableObject.)
Public propertyIsEnabledDispose
Gets or sets a value indicating whether you permit disposing this instance.
(Inherited from DisposableObject.)
Public propertySize
Return the number of vectors in the LSH.
Top
Methods

  NameDescription
Public methodAdd(CvMat)
Add vectors to the LSH structure, optionally returning indices.
Public methodAdd(CvMat, CvMat)
Add vectors to the LSH structure, optionally returning indices.
Protected methodAllocGCHandle
Pins the object to be allocated by cvSetData.
(Inherited from DisposableObject.)
Protected methodAllocMemory
Allocates the specified size of memory.
(Inherited from DisposableObject.)
Public methodStatic memberCreateLSH(IntPtr, Int32)
Construct a Locality Sensitive Hash (LSH) table, for indexing d-dimensional vectors of given type. Vectors will be hashed L times with k-dimensional p-stable (p=2) functions.
Public methodStatic memberCreateLSH(IntPtr, Int32, Int32)
Construct a Locality Sensitive Hash (LSH) table, for indexing d-dimensional vectors of given type. Vectors will be hashed L times with k-dimensional p-stable (p=2) functions.
Public methodStatic memberCreateLSH(IntPtr, Int32, Int32, Int32)
Construct a Locality Sensitive Hash (LSH) table, for indexing d-dimensional vectors of given type. Vectors will be hashed L times with k-dimensional p-stable (p=2) functions.
Public methodStatic memberCreateLSH(IntPtr, Int32, Int32, Int32, MatrixType)
Construct a Locality Sensitive Hash (LSH) table, for indexing d-dimensional vectors of given type. Vectors will be hashed L times with k-dimensional p-stable (p=2) functions.
Public methodStatic memberCreateLSH(IntPtr, Int32, Int32, Int32, MatrixType, Double)
Construct a Locality Sensitive Hash (LSH) table, for indexing d-dimensional vectors of given type. Vectors will be hashed L times with k-dimensional p-stable (p=2) functions.
Public methodStatic memberCreateLSH(IntPtr, Int32, Int32, Int32, MatrixType, Double, Int64)
Construct a Locality Sensitive Hash (LSH) table, for indexing d-dimensional vectors of given type. Vectors will be hashed L times with k-dimensional p-stable (p=2) functions.
Public methodStatic memberCreateMemoryLSH(Int32, Int32)
Construct in-memory LSH table, with n bins.
Public methodStatic memberCreateMemoryLSH(Int32, Int32, Int32)
Construct in-memory LSH table, with n bins.
Public methodStatic memberCreateMemoryLSH(Int32, Int32, Int32, Int32)
Construct in-memory LSH table, with n bins.
Public methodStatic memberCreateMemoryLSH(Int32, Int32, Int32, Int32, MatrixType)
Construct in-memory LSH table, with n bins.
Public methodStatic memberCreateMemoryLSH(Int32, Int32, Int32, Int32, MatrixType, Double)
Construct in-memory LSH table, with n bins.
Public methodStatic memberCreateMemoryLSH(Int32, Int32, Int32, Int32, MatrixType, Double, Int64)
Construct in-memory LSH table, with n bins.
Public methodDispose
Releases the resources
(Inherited from DisposableObject.)
Protected methodDispose(Boolean)
Clean up any resources being used.
(Overrides DisposableCvObjectDispose(Boolean).)
Public methodEquals (Inherited from Object.)
Protected methodFinalize
Destructor
(Inherited from DisposableObject.)
Public methodStatic memberFromPtr
Initializes from pointer
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodNotifyMemoryPressure
Notifies the allocated size of memory.
(Inherited from DisposableObject.)
Public methodQuery
Query the LSH n times for at most k nearest points; data is n x d, indices and dist are n x k. At most emax stored points will be accessed.
Public methodRelease
Free the given LSH structure.
Public methodRemove
Remove vectors from LSH, as addressed by given indices.
Public methodThrowIfDisposed
If this object is disposed, then ObjectDisposedException is thrown.
(Inherited from DisposableObject.)
Public methodToString (Inherited from Object.)
Top
Fields

  NameDescription
Protected fielddataHandle
Gets or sets a handle which allocates using cvSetData.
(Inherited from DisposableObject.)
Protected fieldptr
Data pointer
(Inherited from DisposableCvObject.)
Top
See Also

Reference