OpenCV for Unity 3.0.4
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/5.0/index.html ) for the details of the argument of the method.
Loading...
Searching...
No Matches
OpenCVForUnity.FeaturesModule.DISK Class Reference

DISK feature detector and descriptor, based on a DNN model. More...

Public Member Functions

override string getDefaultName ()
 
Size getImageSize ()
 
double double height getImageSizeAsValueTuple ()
 
Vec2d getImageSizeAsVec2d ()
 
int getMaxKeypoints ()
 
float getScoreThreshold ()
 
void setImageSize (in Vec2d size)
 
void setImageSize (in(double width, double height) size)
 
void setImageSize (Size size)
 
void setMaxKeypoints (int maxKeypoints)
 
void setScoreThreshold (float threshold)
 
- Public Member Functions inherited from OpenCVForUnity.FeaturesModule.Feature2D
void compute (List< Mat > images, List< MatOfKeyPoint > keypoints, List< Mat > descriptors)
 
void compute (Mat image, MatOfKeyPoint keypoints, Mat descriptors)
 Computes the descriptors for a set of keypoints detected in an image (first variant) or image set (second variant).
 
int defaultNorm ()
 
int descriptorSize ()
 
int descriptorType ()
 
void detect (List< Mat > images, List< MatOfKeyPoint > keypoints)
 
void detect (List< Mat > images, List< MatOfKeyPoint > keypoints, List< Mat > masks)
 
void detect (Mat image, MatOfKeyPoint keypoints)
 Detects keypoints in an image (first variant) or image set (second variant).
 
void detect (Mat image, MatOfKeyPoint keypoints, Mat mask)
 Detects keypoints in an image (first variant) or image set (second variant).
 
void detectAndCompute (Mat image, Mat mask, MatOfKeyPoint keypoints, Mat descriptors)
 
void detectAndCompute (Mat image, Mat mask, MatOfKeyPoint keypoints, Mat descriptors, bool useProvidedKeypoints)
 
override bool empty ()
 Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read.
 
override string getDefaultName ()
 
void read (string fileName)
 
void write (string fileName)
 
- Public Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm
virtual void clear ()
 Clears the algorithm state.
 
IntPtr getNativeObjAddr ()
 
void save (string filename)
 
- Public Member Functions inherited from OpenCVForUnity.DisposableObject
void Dispose ()
 Releases resources used by this object.
 
void ThrowIfDisposed ()
 Throws ObjectDisposedException if this object has been disposed.
 

Static Public Member Functions

static new DISK __fromPtr__ (IntPtr addr)
 
static DISK create (string modelPath)
 Creates a DISK detector.
 
static DISK create (string modelPath, int maxKeypoints)
 Creates a DISK detector.
 
static DISK create (string modelPath, int maxKeypoints, float scoreThreshold)
 Creates a DISK detector.
 
static DISK create (string modelPath, int maxKeypoints, float scoreThreshold, in Vec2d imageSize)
 Creates a DISK detector.
 
static DISK create (string modelPath, int maxKeypoints, float scoreThreshold, in Vec2d imageSize, int backendId)
 Creates a DISK detector.
 
static DISK create (string modelPath, int maxKeypoints, float scoreThreshold, in Vec2d imageSize, int backendId, int targetId)
 Creates a DISK detector.
 
static DISK create (string modelPath, int maxKeypoints, float scoreThreshold, in(double width, double height) imageSize)
 Creates a DISK detector.
 
static DISK create (string modelPath, int maxKeypoints, float scoreThreshold, in(double width, double height) imageSize, int backendId)
 Creates a DISK detector.
 
static DISK create (string modelPath, int maxKeypoints, float scoreThreshold, in(double width, double height) imageSize, int backendId, int targetId)
 Creates a DISK detector.
 
static DISK create (string modelPath, int maxKeypoints, float scoreThreshold, Size imageSize)
 Creates a DISK detector.
 
static DISK create (string modelPath, int maxKeypoints, float scoreThreshold, Size imageSize, int backendId)
 Creates a DISK detector.
 
static DISK create (string modelPath, int maxKeypoints, float scoreThreshold, Size imageSize, int backendId, int targetId)
 Creates a DISK detector.
 
static DISK createFromMemory (MatOfByte bufferModel)
 Creates a DISK detector from an in-memory model buffer.
 
static DISK createFromMemory (MatOfByte bufferModel, int maxKeypoints)
 Creates a DISK detector from an in-memory model buffer.
 
static DISK createFromMemory (MatOfByte bufferModel, int maxKeypoints, float scoreThreshold)
 Creates a DISK detector from an in-memory model buffer.
 
static DISK createFromMemory (MatOfByte bufferModel, int maxKeypoints, float scoreThreshold, in Vec2d imageSize)
 Creates a DISK detector from an in-memory model buffer.
 
static DISK createFromMemory (MatOfByte bufferModel, int maxKeypoints, float scoreThreshold, in Vec2d imageSize, int backendId)
 Creates a DISK detector from an in-memory model buffer.
 
static DISK createFromMemory (MatOfByte bufferModel, int maxKeypoints, float scoreThreshold, in Vec2d imageSize, int backendId, int targetId)
 Creates a DISK detector from an in-memory model buffer.
 
static DISK createFromMemory (MatOfByte bufferModel, int maxKeypoints, float scoreThreshold, in(double width, double height) imageSize)
 Creates a DISK detector from an in-memory model buffer.
 
static DISK createFromMemory (MatOfByte bufferModel, int maxKeypoints, float scoreThreshold, in(double width, double height) imageSize, int backendId)
 Creates a DISK detector from an in-memory model buffer.
 
static DISK createFromMemory (MatOfByte bufferModel, int maxKeypoints, float scoreThreshold, in(double width, double height) imageSize, int backendId, int targetId)
 Creates a DISK detector from an in-memory model buffer.
 
static DISK createFromMemory (MatOfByte bufferModel, int maxKeypoints, float scoreThreshold, Size imageSize)
 Creates a DISK detector from an in-memory model buffer.
 
static DISK createFromMemory (MatOfByte bufferModel, int maxKeypoints, float scoreThreshold, Size imageSize, int backendId)
 Creates a DISK detector from an in-memory model buffer.
 
static DISK createFromMemory (MatOfByte bufferModel, int maxKeypoints, float scoreThreshold, Size imageSize, int backendId, int targetId)
 Creates a DISK detector from an in-memory model buffer.
 
- Static Public Member Functions inherited from OpenCVForUnity.FeaturesModule.Feature2D
static new Feature2D __fromPtr__ (IntPtr addr)
 
- Static Public Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm
static Algorithm __fromPtr__ (IntPtr addr)
 
- Static Public Member Functions inherited from OpenCVForUnity.DisposableObject
static IntPtr ThrowIfNullIntPtr (IntPtr ptr)
 Returns the native pointer, or throws CoreModule.CvException if it is zero.
 

Public Attributes

double width
 

Protected Member Functions

override void Dispose (bool disposing)
 
- Protected Member Functions inherited from OpenCVForUnity.FeaturesModule.Feature2D
override void Dispose (bool disposing)
 
- Protected Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm
- Protected Member Functions inherited from OpenCVForUnity.DisposableOpenCVObject
 DisposableOpenCVObject ()
 Initializes a new instance with a zero native pointer and dispose enabled.
 
 DisposableOpenCVObject (bool isEnabledDispose)
 Initializes a new instance with a zero native pointer.
 
 DisposableOpenCVObject (IntPtr ptr)
 Initializes a new instance with the specified native pointer and dispose enabled.
 
 DisposableOpenCVObject (IntPtr ptr, bool isEnabledDispose)
 Initializes a new instance with the specified native pointer.
 
- Protected Member Functions inherited from OpenCVForUnity.DisposableObject
 DisposableObject ()
 Initializes a new instance with dispose enabled.
 
 DisposableObject (bool isEnabledDispose)
 Initializes a new instance.
 

Additional Inherited Members

- Package Functions inherited from OpenCVForUnity.FeaturesModule.Feature2D
- Package Functions inherited from OpenCVForUnity.CoreModule.Algorithm
- Package Attributes inherited from OpenCVForUnity.DisposableOpenCVObject
- Properties inherited from OpenCVForUnity.DisposableObject
bool IsDisposed [get, protected set]
 
bool IsEnabledDispose [get, set]
 

Detailed Description

DISK feature detector and descriptor, based on a DNN model.

DISK (Deep Image Structure and Keypoints) is a learned local-feature pipeline that produces keypoints and 128-D L2-normalized descriptors via a single forward pass through a fully convolutional network. This class wraps an ONNX export of the pre-trained DISK model through cv::dnn::Net and exposes it under the standard cv::Feature2D interface so it can be used as a drop-in alternative to SIFT/ORB.

The class assumes the ONNX model has a single input named image taking an N×3×H×W float32 tensor in [0, 1] (RGB channel order) and three outputs named keypoints (N×2), scores (N) and descriptors (N×128).

Member Function Documentation

◆ __fromPtr__()

static new DISK OpenCVForUnity.FeaturesModule.DISK.__fromPtr__ ( IntPtr addr)
static

◆ create() [1/12]

static DISK OpenCVForUnity.FeaturesModule.DISK.create ( string modelPath)
static

Creates a DISK detector.

Parameters
modelPathPath to the DISK ONNX model.
maxKeypointsMaximum number of keypoints to return per image. The strongest responses (by network score) are kept; -1 keeps all detections.
scoreThresholdDiscard keypoints with network score strictly below this value.
imageSizeTarget input size (width, height) fed to the network. Use Size() (the default) to fall back to the network's expected fixed input shape of 1024x1024. When overriding, both dimensions must be positive multiples of 16, since DISK downsamples by a factor of 16.
backendIdDNN backend identifier (see cv::dnn::Backend); 0 = DNN_BACKEND_DEFAULT.
targetIdDNN target identifier (see cv::dnn::Target); 0 = DNN_TARGET_CPU.

◆ create() [2/12]

static DISK OpenCVForUnity.FeaturesModule.DISK.create ( string modelPath,
int maxKeypoints )
static

Creates a DISK detector.

Parameters
modelPathPath to the DISK ONNX model.
maxKeypointsMaximum number of keypoints to return per image. The strongest responses (by network score) are kept; -1 keeps all detections.
scoreThresholdDiscard keypoints with network score strictly below this value.
imageSizeTarget input size (width, height) fed to the network. Use Size() (the default) to fall back to the network's expected fixed input shape of 1024x1024. When overriding, both dimensions must be positive multiples of 16, since DISK downsamples by a factor of 16.
backendIdDNN backend identifier (see cv::dnn::Backend); 0 = DNN_BACKEND_DEFAULT.
targetIdDNN target identifier (see cv::dnn::Target); 0 = DNN_TARGET_CPU.

◆ create() [3/12]

static DISK OpenCVForUnity.FeaturesModule.DISK.create ( string modelPath,
int maxKeypoints,
float scoreThreshold )
static

Creates a DISK detector.

Parameters
modelPathPath to the DISK ONNX model.
maxKeypointsMaximum number of keypoints to return per image. The strongest responses (by network score) are kept; -1 keeps all detections.
scoreThresholdDiscard keypoints with network score strictly below this value.
imageSizeTarget input size (width, height) fed to the network. Use Size() (the default) to fall back to the network's expected fixed input shape of 1024x1024. When overriding, both dimensions must be positive multiples of 16, since DISK downsamples by a factor of 16.
backendIdDNN backend identifier (see cv::dnn::Backend); 0 = DNN_BACKEND_DEFAULT.
targetIdDNN target identifier (see cv::dnn::Target); 0 = DNN_TARGET_CPU.

◆ create() [4/12]

static DISK OpenCVForUnity.FeaturesModule.DISK.create ( string modelPath,
int maxKeypoints,
float scoreThreshold,
in Vec2d imageSize )
static

Creates a DISK detector.

Parameters
modelPathPath to the DISK ONNX model.
maxKeypointsMaximum number of keypoints to return per image. The strongest responses (by network score) are kept; -1 keeps all detections.
scoreThresholdDiscard keypoints with network score strictly below this value.
imageSizeTarget input size (width, height) fed to the network. Use Size() (the default) to fall back to the network's expected fixed input shape of 1024x1024. When overriding, both dimensions must be positive multiples of 16, since DISK downsamples by a factor of 16.
backendIdDNN backend identifier (see cv::dnn::Backend); 0 = DNN_BACKEND_DEFAULT.
targetIdDNN target identifier (see cv::dnn::Target); 0 = DNN_TARGET_CPU.

◆ create() [5/12]

static DISK OpenCVForUnity.FeaturesModule.DISK.create ( string modelPath,
int maxKeypoints,
float scoreThreshold,
in Vec2d imageSize,
int backendId )
static

Creates a DISK detector.

Parameters
modelPathPath to the DISK ONNX model.
maxKeypointsMaximum number of keypoints to return per image. The strongest responses (by network score) are kept; -1 keeps all detections.
scoreThresholdDiscard keypoints with network score strictly below this value.
imageSizeTarget input size (width, height) fed to the network. Use Size() (the default) to fall back to the network's expected fixed input shape of 1024x1024. When overriding, both dimensions must be positive multiples of 16, since DISK downsamples by a factor of 16.
backendIdDNN backend identifier (see cv::dnn::Backend); 0 = DNN_BACKEND_DEFAULT.
targetIdDNN target identifier (see cv::dnn::Target); 0 = DNN_TARGET_CPU.

◆ create() [6/12]

static DISK OpenCVForUnity.FeaturesModule.DISK.create ( string modelPath,
int maxKeypoints,
float scoreThreshold,
in Vec2d imageSize,
int backendId,
int targetId )
static

Creates a DISK detector.

Parameters
modelPathPath to the DISK ONNX model.
maxKeypointsMaximum number of keypoints to return per image. The strongest responses (by network score) are kept; -1 keeps all detections.
scoreThresholdDiscard keypoints with network score strictly below this value.
imageSizeTarget input size (width, height) fed to the network. Use Size() (the default) to fall back to the network's expected fixed input shape of 1024x1024. When overriding, both dimensions must be positive multiples of 16, since DISK downsamples by a factor of 16.
backendIdDNN backend identifier (see cv::dnn::Backend); 0 = DNN_BACKEND_DEFAULT.
targetIdDNN target identifier (see cv::dnn::Target); 0 = DNN_TARGET_CPU.

◆ create() [7/12]

static DISK OpenCVForUnity.FeaturesModule.DISK.create ( string modelPath,
int maxKeypoints,
float scoreThreshold,
in(double width, double height) imageSize )
static

Creates a DISK detector.

Parameters
modelPathPath to the DISK ONNX model.
maxKeypointsMaximum number of keypoints to return per image. The strongest responses (by network score) are kept; -1 keeps all detections.
scoreThresholdDiscard keypoints with network score strictly below this value.
imageSizeTarget input size (width, height) fed to the network. Use Size() (the default) to fall back to the network's expected fixed input shape of 1024x1024. When overriding, both dimensions must be positive multiples of 16, since DISK downsamples by a factor of 16.
backendIdDNN backend identifier (see cv::dnn::Backend); 0 = DNN_BACKEND_DEFAULT.
targetIdDNN target identifier (see cv::dnn::Target); 0 = DNN_TARGET_CPU.

◆ create() [8/12]

static DISK OpenCVForUnity.FeaturesModule.DISK.create ( string modelPath,
int maxKeypoints,
float scoreThreshold,
in(double width, double height) imageSize,
int backendId )
static

Creates a DISK detector.

Parameters
modelPathPath to the DISK ONNX model.
maxKeypointsMaximum number of keypoints to return per image. The strongest responses (by network score) are kept; -1 keeps all detections.
scoreThresholdDiscard keypoints with network score strictly below this value.
imageSizeTarget input size (width, height) fed to the network. Use Size() (the default) to fall back to the network's expected fixed input shape of 1024x1024. When overriding, both dimensions must be positive multiples of 16, since DISK downsamples by a factor of 16.
backendIdDNN backend identifier (see cv::dnn::Backend); 0 = DNN_BACKEND_DEFAULT.
targetIdDNN target identifier (see cv::dnn::Target); 0 = DNN_TARGET_CPU.

◆ create() [9/12]

static DISK OpenCVForUnity.FeaturesModule.DISK.create ( string modelPath,
int maxKeypoints,
float scoreThreshold,
in(double width, double height) imageSize,
int backendId,
int targetId )
static

Creates a DISK detector.

Parameters
modelPathPath to the DISK ONNX model.
maxKeypointsMaximum number of keypoints to return per image. The strongest responses (by network score) are kept; -1 keeps all detections.
scoreThresholdDiscard keypoints with network score strictly below this value.
imageSizeTarget input size (width, height) fed to the network. Use Size() (the default) to fall back to the network's expected fixed input shape of 1024x1024. When overriding, both dimensions must be positive multiples of 16, since DISK downsamples by a factor of 16.
backendIdDNN backend identifier (see cv::dnn::Backend); 0 = DNN_BACKEND_DEFAULT.
targetIdDNN target identifier (see cv::dnn::Target); 0 = DNN_TARGET_CPU.

◆ create() [10/12]

static DISK OpenCVForUnity.FeaturesModule.DISK.create ( string modelPath,
int maxKeypoints,
float scoreThreshold,
Size imageSize )
static

Creates a DISK detector.

Parameters
modelPathPath to the DISK ONNX model.
maxKeypointsMaximum number of keypoints to return per image. The strongest responses (by network score) are kept; -1 keeps all detections.
scoreThresholdDiscard keypoints with network score strictly below this value.
imageSizeTarget input size (width, height) fed to the network. Use Size() (the default) to fall back to the network's expected fixed input shape of 1024x1024. When overriding, both dimensions must be positive multiples of 16, since DISK downsamples by a factor of 16.
backendIdDNN backend identifier (see cv::dnn::Backend); 0 = DNN_BACKEND_DEFAULT.
targetIdDNN target identifier (see cv::dnn::Target); 0 = DNN_TARGET_CPU.

◆ create() [11/12]

static DISK OpenCVForUnity.FeaturesModule.DISK.create ( string modelPath,
int maxKeypoints,
float scoreThreshold,
Size imageSize,
int backendId )
static

Creates a DISK detector.

Parameters
modelPathPath to the DISK ONNX model.
maxKeypointsMaximum number of keypoints to return per image. The strongest responses (by network score) are kept; -1 keeps all detections.
scoreThresholdDiscard keypoints with network score strictly below this value.
imageSizeTarget input size (width, height) fed to the network. Use Size() (the default) to fall back to the network's expected fixed input shape of 1024x1024. When overriding, both dimensions must be positive multiples of 16, since DISK downsamples by a factor of 16.
backendIdDNN backend identifier (see cv::dnn::Backend); 0 = DNN_BACKEND_DEFAULT.
targetIdDNN target identifier (see cv::dnn::Target); 0 = DNN_TARGET_CPU.

◆ create() [12/12]

static DISK OpenCVForUnity.FeaturesModule.DISK.create ( string modelPath,
int maxKeypoints,
float scoreThreshold,
Size imageSize,
int backendId,
int targetId )
static

Creates a DISK detector.

Parameters
modelPathPath to the DISK ONNX model.
maxKeypointsMaximum number of keypoints to return per image. The strongest responses (by network score) are kept; -1 keeps all detections.
scoreThresholdDiscard keypoints with network score strictly below this value.
imageSizeTarget input size (width, height) fed to the network. Use Size() (the default) to fall back to the network's expected fixed input shape of 1024x1024. When overriding, both dimensions must be positive multiples of 16, since DISK downsamples by a factor of 16.
backendIdDNN backend identifier (see cv::dnn::Backend); 0 = DNN_BACKEND_DEFAULT.
targetIdDNN target identifier (see cv::dnn::Target); 0 = DNN_TARGET_CPU.

◆ createFromMemory() [1/12]

static DISK OpenCVForUnity.FeaturesModule.DISK.createFromMemory ( MatOfByte bufferModel)
static

Creates a DISK detector from an in-memory model buffer.

This overload loads the DISK ONNX model from a buffer instead of a file on disk. It is intended for cases where the model is read from application resources (for example Android assets) and is not available as a path on the filesystem.

Parameters
bufferModelA buffer containing the contents of the DISK ONNX model.
maxKeypointsMaximum number of keypoints to return per image. The strongest responses (by network score) are kept; -1 keeps all detections.
scoreThresholdDiscard keypoints with network score strictly below this value.
imageSizeTarget input size (width, height) fed to the network. Use Size() (the default) to fall back to the network's expected fixed input shape of 1024x1024. When overriding, both dimensions must be positive multiples of 16, since DISK downsamples by a factor of 16.
backendIdDNN backend identifier (see cv::dnn::Backend); 0 = DNN_BACKEND_DEFAULT.
targetIdDNN target identifier (see cv::dnn::Target); 0 = DNN_TARGET_CPU.
Note
In C++ this is an overload of create. The Python/Java/Objective-C bindings expose it as createFromMemory, because Objective-C selectors are not disambiguated by argument type and would otherwise clash with the file-path create.

◆ createFromMemory() [2/12]

static DISK OpenCVForUnity.FeaturesModule.DISK.createFromMemory ( MatOfByte bufferModel,
int maxKeypoints )
static

Creates a DISK detector from an in-memory model buffer.

This overload loads the DISK ONNX model from a buffer instead of a file on disk. It is intended for cases where the model is read from application resources (for example Android assets) and is not available as a path on the filesystem.

Parameters
bufferModelA buffer containing the contents of the DISK ONNX model.
maxKeypointsMaximum number of keypoints to return per image. The strongest responses (by network score) are kept; -1 keeps all detections.
scoreThresholdDiscard keypoints with network score strictly below this value.
imageSizeTarget input size (width, height) fed to the network. Use Size() (the default) to fall back to the network's expected fixed input shape of 1024x1024. When overriding, both dimensions must be positive multiples of 16, since DISK downsamples by a factor of 16.
backendIdDNN backend identifier (see cv::dnn::Backend); 0 = DNN_BACKEND_DEFAULT.
targetIdDNN target identifier (see cv::dnn::Target); 0 = DNN_TARGET_CPU.
Note
In C++ this is an overload of create. The Python/Java/Objective-C bindings expose it as createFromMemory, because Objective-C selectors are not disambiguated by argument type and would otherwise clash with the file-path create.

◆ createFromMemory() [3/12]

static DISK OpenCVForUnity.FeaturesModule.DISK.createFromMemory ( MatOfByte bufferModel,
int maxKeypoints,
float scoreThreshold )
static

Creates a DISK detector from an in-memory model buffer.

This overload loads the DISK ONNX model from a buffer instead of a file on disk. It is intended for cases where the model is read from application resources (for example Android assets) and is not available as a path on the filesystem.

Parameters
bufferModelA buffer containing the contents of the DISK ONNX model.
maxKeypointsMaximum number of keypoints to return per image. The strongest responses (by network score) are kept; -1 keeps all detections.
scoreThresholdDiscard keypoints with network score strictly below this value.
imageSizeTarget input size (width, height) fed to the network. Use Size() (the default) to fall back to the network's expected fixed input shape of 1024x1024. When overriding, both dimensions must be positive multiples of 16, since DISK downsamples by a factor of 16.
backendIdDNN backend identifier (see cv::dnn::Backend); 0 = DNN_BACKEND_DEFAULT.
targetIdDNN target identifier (see cv::dnn::Target); 0 = DNN_TARGET_CPU.
Note
In C++ this is an overload of create. The Python/Java/Objective-C bindings expose it as createFromMemory, because Objective-C selectors are not disambiguated by argument type and would otherwise clash with the file-path create.

◆ createFromMemory() [4/12]

static DISK OpenCVForUnity.FeaturesModule.DISK.createFromMemory ( MatOfByte bufferModel,
int maxKeypoints,
float scoreThreshold,
in Vec2d imageSize )
static

Creates a DISK detector from an in-memory model buffer.

This overload loads the DISK ONNX model from a buffer instead of a file on disk. It is intended for cases where the model is read from application resources (for example Android assets) and is not available as a path on the filesystem.

Parameters
bufferModelA buffer containing the contents of the DISK ONNX model.
maxKeypointsMaximum number of keypoints to return per image. The strongest responses (by network score) are kept; -1 keeps all detections.
scoreThresholdDiscard keypoints with network score strictly below this value.
imageSizeTarget input size (width, height) fed to the network. Use Size() (the default) to fall back to the network's expected fixed input shape of 1024x1024. When overriding, both dimensions must be positive multiples of 16, since DISK downsamples by a factor of 16.
backendIdDNN backend identifier (see cv::dnn::Backend); 0 = DNN_BACKEND_DEFAULT.
targetIdDNN target identifier (see cv::dnn::Target); 0 = DNN_TARGET_CPU.
Note
In C++ this is an overload of create. The Python/Java/Objective-C bindings expose it as createFromMemory, because Objective-C selectors are not disambiguated by argument type and would otherwise clash with the file-path create.

◆ createFromMemory() [5/12]

static DISK OpenCVForUnity.FeaturesModule.DISK.createFromMemory ( MatOfByte bufferModel,
int maxKeypoints,
float scoreThreshold,
in Vec2d imageSize,
int backendId )
static

Creates a DISK detector from an in-memory model buffer.

This overload loads the DISK ONNX model from a buffer instead of a file on disk. It is intended for cases where the model is read from application resources (for example Android assets) and is not available as a path on the filesystem.

Parameters
bufferModelA buffer containing the contents of the DISK ONNX model.
maxKeypointsMaximum number of keypoints to return per image. The strongest responses (by network score) are kept; -1 keeps all detections.
scoreThresholdDiscard keypoints with network score strictly below this value.
imageSizeTarget input size (width, height) fed to the network. Use Size() (the default) to fall back to the network's expected fixed input shape of 1024x1024. When overriding, both dimensions must be positive multiples of 16, since DISK downsamples by a factor of 16.
backendIdDNN backend identifier (see cv::dnn::Backend); 0 = DNN_BACKEND_DEFAULT.
targetIdDNN target identifier (see cv::dnn::Target); 0 = DNN_TARGET_CPU.
Note
In C++ this is an overload of create. The Python/Java/Objective-C bindings expose it as createFromMemory, because Objective-C selectors are not disambiguated by argument type and would otherwise clash with the file-path create.

◆ createFromMemory() [6/12]

static DISK OpenCVForUnity.FeaturesModule.DISK.createFromMemory ( MatOfByte bufferModel,
int maxKeypoints,
float scoreThreshold,
in Vec2d imageSize,
int backendId,
int targetId )
static

Creates a DISK detector from an in-memory model buffer.

This overload loads the DISK ONNX model from a buffer instead of a file on disk. It is intended for cases where the model is read from application resources (for example Android assets) and is not available as a path on the filesystem.

Parameters
bufferModelA buffer containing the contents of the DISK ONNX model.
maxKeypointsMaximum number of keypoints to return per image. The strongest responses (by network score) are kept; -1 keeps all detections.
scoreThresholdDiscard keypoints with network score strictly below this value.
imageSizeTarget input size (width, height) fed to the network. Use Size() (the default) to fall back to the network's expected fixed input shape of 1024x1024. When overriding, both dimensions must be positive multiples of 16, since DISK downsamples by a factor of 16.
backendIdDNN backend identifier (see cv::dnn::Backend); 0 = DNN_BACKEND_DEFAULT.
targetIdDNN target identifier (see cv::dnn::Target); 0 = DNN_TARGET_CPU.
Note
In C++ this is an overload of create. The Python/Java/Objective-C bindings expose it as createFromMemory, because Objective-C selectors are not disambiguated by argument type and would otherwise clash with the file-path create.

◆ createFromMemory() [7/12]

static DISK OpenCVForUnity.FeaturesModule.DISK.createFromMemory ( MatOfByte bufferModel,
int maxKeypoints,
float scoreThreshold,
in(double width, double height) imageSize )
static

Creates a DISK detector from an in-memory model buffer.

This overload loads the DISK ONNX model from a buffer instead of a file on disk. It is intended for cases where the model is read from application resources (for example Android assets) and is not available as a path on the filesystem.

Parameters
bufferModelA buffer containing the contents of the DISK ONNX model.
maxKeypointsMaximum number of keypoints to return per image. The strongest responses (by network score) are kept; -1 keeps all detections.
scoreThresholdDiscard keypoints with network score strictly below this value.
imageSizeTarget input size (width, height) fed to the network. Use Size() (the default) to fall back to the network's expected fixed input shape of 1024x1024. When overriding, both dimensions must be positive multiples of 16, since DISK downsamples by a factor of 16.
backendIdDNN backend identifier (see cv::dnn::Backend); 0 = DNN_BACKEND_DEFAULT.
targetIdDNN target identifier (see cv::dnn::Target); 0 = DNN_TARGET_CPU.
Note
In C++ this is an overload of create. The Python/Java/Objective-C bindings expose it as createFromMemory, because Objective-C selectors are not disambiguated by argument type and would otherwise clash with the file-path create.

◆ createFromMemory() [8/12]

static DISK OpenCVForUnity.FeaturesModule.DISK.createFromMemory ( MatOfByte bufferModel,
int maxKeypoints,
float scoreThreshold,
in(double width, double height) imageSize,
int backendId )
static

Creates a DISK detector from an in-memory model buffer.

This overload loads the DISK ONNX model from a buffer instead of a file on disk. It is intended for cases where the model is read from application resources (for example Android assets) and is not available as a path on the filesystem.

Parameters
bufferModelA buffer containing the contents of the DISK ONNX model.
maxKeypointsMaximum number of keypoints to return per image. The strongest responses (by network score) are kept; -1 keeps all detections.
scoreThresholdDiscard keypoints with network score strictly below this value.
imageSizeTarget input size (width, height) fed to the network. Use Size() (the default) to fall back to the network's expected fixed input shape of 1024x1024. When overriding, both dimensions must be positive multiples of 16, since DISK downsamples by a factor of 16.
backendIdDNN backend identifier (see cv::dnn::Backend); 0 = DNN_BACKEND_DEFAULT.
targetIdDNN target identifier (see cv::dnn::Target); 0 = DNN_TARGET_CPU.
Note
In C++ this is an overload of create. The Python/Java/Objective-C bindings expose it as createFromMemory, because Objective-C selectors are not disambiguated by argument type and would otherwise clash with the file-path create.

◆ createFromMemory() [9/12]

static DISK OpenCVForUnity.FeaturesModule.DISK.createFromMemory ( MatOfByte bufferModel,
int maxKeypoints,
float scoreThreshold,
in(double width, double height) imageSize,
int backendId,
int targetId )
static

Creates a DISK detector from an in-memory model buffer.

This overload loads the DISK ONNX model from a buffer instead of a file on disk. It is intended for cases where the model is read from application resources (for example Android assets) and is not available as a path on the filesystem.

Parameters
bufferModelA buffer containing the contents of the DISK ONNX model.
maxKeypointsMaximum number of keypoints to return per image. The strongest responses (by network score) are kept; -1 keeps all detections.
scoreThresholdDiscard keypoints with network score strictly below this value.
imageSizeTarget input size (width, height) fed to the network. Use Size() (the default) to fall back to the network's expected fixed input shape of 1024x1024. When overriding, both dimensions must be positive multiples of 16, since DISK downsamples by a factor of 16.
backendIdDNN backend identifier (see cv::dnn::Backend); 0 = DNN_BACKEND_DEFAULT.
targetIdDNN target identifier (see cv::dnn::Target); 0 = DNN_TARGET_CPU.
Note
In C++ this is an overload of create. The Python/Java/Objective-C bindings expose it as createFromMemory, because Objective-C selectors are not disambiguated by argument type and would otherwise clash with the file-path create.

◆ createFromMemory() [10/12]

static DISK OpenCVForUnity.FeaturesModule.DISK.createFromMemory ( MatOfByte bufferModel,
int maxKeypoints,
float scoreThreshold,
Size imageSize )
static

Creates a DISK detector from an in-memory model buffer.

This overload loads the DISK ONNX model from a buffer instead of a file on disk. It is intended for cases where the model is read from application resources (for example Android assets) and is not available as a path on the filesystem.

Parameters
bufferModelA buffer containing the contents of the DISK ONNX model.
maxKeypointsMaximum number of keypoints to return per image. The strongest responses (by network score) are kept; -1 keeps all detections.
scoreThresholdDiscard keypoints with network score strictly below this value.
imageSizeTarget input size (width, height) fed to the network. Use Size() (the default) to fall back to the network's expected fixed input shape of 1024x1024. When overriding, both dimensions must be positive multiples of 16, since DISK downsamples by a factor of 16.
backendIdDNN backend identifier (see cv::dnn::Backend); 0 = DNN_BACKEND_DEFAULT.
targetIdDNN target identifier (see cv::dnn::Target); 0 = DNN_TARGET_CPU.
Note
In C++ this is an overload of create. The Python/Java/Objective-C bindings expose it as createFromMemory, because Objective-C selectors are not disambiguated by argument type and would otherwise clash with the file-path create.

◆ createFromMemory() [11/12]

static DISK OpenCVForUnity.FeaturesModule.DISK.createFromMemory ( MatOfByte bufferModel,
int maxKeypoints,
float scoreThreshold,
Size imageSize,
int backendId )
static

Creates a DISK detector from an in-memory model buffer.

This overload loads the DISK ONNX model from a buffer instead of a file on disk. It is intended for cases where the model is read from application resources (for example Android assets) and is not available as a path on the filesystem.

Parameters
bufferModelA buffer containing the contents of the DISK ONNX model.
maxKeypointsMaximum number of keypoints to return per image. The strongest responses (by network score) are kept; -1 keeps all detections.
scoreThresholdDiscard keypoints with network score strictly below this value.
imageSizeTarget input size (width, height) fed to the network. Use Size() (the default) to fall back to the network's expected fixed input shape of 1024x1024. When overriding, both dimensions must be positive multiples of 16, since DISK downsamples by a factor of 16.
backendIdDNN backend identifier (see cv::dnn::Backend); 0 = DNN_BACKEND_DEFAULT.
targetIdDNN target identifier (see cv::dnn::Target); 0 = DNN_TARGET_CPU.
Note
In C++ this is an overload of create. The Python/Java/Objective-C bindings expose it as createFromMemory, because Objective-C selectors are not disambiguated by argument type and would otherwise clash with the file-path create.

◆ createFromMemory() [12/12]

static DISK OpenCVForUnity.FeaturesModule.DISK.createFromMemory ( MatOfByte bufferModel,
int maxKeypoints,
float scoreThreshold,
Size imageSize,
int backendId,
int targetId )
static

Creates a DISK detector from an in-memory model buffer.

This overload loads the DISK ONNX model from a buffer instead of a file on disk. It is intended for cases where the model is read from application resources (for example Android assets) and is not available as a path on the filesystem.

Parameters
bufferModelA buffer containing the contents of the DISK ONNX model.
maxKeypointsMaximum number of keypoints to return per image. The strongest responses (by network score) are kept; -1 keeps all detections.
scoreThresholdDiscard keypoints with network score strictly below this value.
imageSizeTarget input size (width, height) fed to the network. Use Size() (the default) to fall back to the network's expected fixed input shape of 1024x1024. When overriding, both dimensions must be positive multiples of 16, since DISK downsamples by a factor of 16.
backendIdDNN backend identifier (see cv::dnn::Backend); 0 = DNN_BACKEND_DEFAULT.
targetIdDNN target identifier (see cv::dnn::Target); 0 = DNN_TARGET_CPU.
Note
In C++ this is an overload of create. The Python/Java/Objective-C bindings expose it as createFromMemory, because Objective-C selectors are not disambiguated by argument type and would otherwise clash with the file-path create.

◆ Dispose()

override void OpenCVForUnity.FeaturesModule.DISK.Dispose ( bool disposing)
protectedvirtual

◆ getDefaultName()

override string OpenCVForUnity.FeaturesModule.DISK.getDefaultName ( )
virtual

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.

Reimplemented from OpenCVForUnity.CoreModule.Algorithm.

◆ getImageSize()

Size OpenCVForUnity.FeaturesModule.DISK.getImageSize ( )

◆ getImageSizeAsValueTuple()

double double height OpenCVForUnity.FeaturesModule.DISK.getImageSizeAsValueTuple ( )

◆ getImageSizeAsVec2d()

Vec2d OpenCVForUnity.FeaturesModule.DISK.getImageSizeAsVec2d ( )

◆ getMaxKeypoints()

int OpenCVForUnity.FeaturesModule.DISK.getMaxKeypoints ( )

◆ getScoreThreshold()

float OpenCVForUnity.FeaturesModule.DISK.getScoreThreshold ( )

◆ setImageSize() [1/3]

void OpenCVForUnity.FeaturesModule.DISK.setImageSize ( in Vec2d size)

◆ setImageSize() [2/3]

void OpenCVForUnity.FeaturesModule.DISK.setImageSize ( in(double width, double height) size)

◆ setImageSize() [3/3]

void OpenCVForUnity.FeaturesModule.DISK.setImageSize ( Size size)

◆ setMaxKeypoints()

void OpenCVForUnity.FeaturesModule.DISK.setMaxKeypoints ( int maxKeypoints)

◆ setScoreThreshold()

void OpenCVForUnity.FeaturesModule.DISK.setScoreThreshold ( float threshold)

Member Data Documentation

◆ width

double OpenCVForUnity.FeaturesModule.DISK.width

The documentation for this class was generated from the following files: