Class for extracting keypoints and computing descriptors using the Scale Invariant Feature Transform (SIFT) algorithm by D. Lowe [Lowe04] .
More...
|
double | getContrastThreshold () |
|
override string | getDefaultName () |
|
double | getEdgeThreshold () |
|
int | getNFeatures () |
|
int | getNOctaveLayers () |
|
double | getSigma () |
|
void | setContrastThreshold (double contrastThreshold) |
|
void | setEdgeThreshold (double edgeThreshold) |
|
void | setNFeatures (int maxFeatures) |
|
void | setNOctaveLayers (int nOctaveLayers) |
|
void | setSigma (double sigma) |
|
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.
|
|
void | read (string fileName) |
|
void | write (string fileName) |
|
virtual void | clear () |
| Clears the algorithm state.
|
|
IntPtr | getNativeObjAddr () |
|
void | save (string filename) |
|
void | Dispose () |
|
void | ThrowIfDisposed () |
|
|
static new SIFT | __fromPtr__ (IntPtr addr) |
|
static SIFT | create () |
|
static SIFT | create (int nfeatures) |
|
static SIFT | create (int nfeatures, int nOctaveLayers) |
|
static SIFT | create (int nfeatures, int nOctaveLayers, double contrastThreshold) |
|
static SIFT | create (int nfeatures, int nOctaveLayers, double contrastThreshold, double edgeThreshold) |
|
static SIFT | create (int nfeatures, int nOctaveLayers, double contrastThreshold, double edgeThreshold, double sigma) |
|
static SIFT | create (int nfeatures, int nOctaveLayers, double contrastThreshold, double edgeThreshold, double sigma, bool enable_precise_upscale) |
|
static SIFT | create (int nfeatures, int nOctaveLayers, double contrastThreshold, double edgeThreshold, double sigma, int descriptorType) |
| Create SIFT with specified descriptorType.
|
|
static SIFT | create (int nfeatures, int nOctaveLayers, double contrastThreshold, double edgeThreshold, double sigma, int descriptorType, bool enable_precise_upscale) |
| Create SIFT with specified descriptorType.
|
|
static new Feature2D | __fromPtr__ (IntPtr addr) |
|
static Algorithm | __fromPtr__ (IntPtr addr) |
|
static IntPtr | ThrowIfNullIntPtr (IntPtr ptr) |
|
Class for extracting keypoints and computing descriptors using the Scale Invariant Feature Transform (SIFT) algorithm by D. Lowe [Lowe04] .
◆ __fromPtr__()
static new SIFT OpenCVForUnity.Features2dModule.SIFT.__fromPtr__ |
( |
IntPtr | addr | ) |
|
|
static |
◆ create() [1/9]
static SIFT OpenCVForUnity.Features2dModule.SIFT.create |
( |
| ) |
|
|
static |
- Parameters
-
nfeatures | The number of best features to retain. The features are ranked by their scores (measured in SIFT algorithm as the local contrast) |
nOctaveLayers | The number of layers in each octave. 3 is the value used in D. Lowe paper. The number of octaves is computed automatically from the image resolution. |
contrastThreshold | The contrast threshold used to filter out weak features in semi-uniform (low-contrast) regions. The larger the threshold, the less features are produced by the detector. |
- Note
- The contrast threshold will be divided by nOctaveLayers when the filtering is applied. When nOctaveLayers is set to default and if you want to use the value used in D. Lowe paper, 0.03, set this argument to 0.09.
- Parameters
-
edgeThreshold | The threshold used to filter out edge-like features. Note that the its meaning is different from the contrastThreshold, i.e. the larger the edgeThreshold, the less features are filtered out (more features are retained). |
sigma | The sigma of the Gaussian applied to the input image at the octave #0. If your image is captured with a weak camera with soft lenses, you might want to reduce the number. |
enable_precise_upscale | Whether to enable precise upscaling in the scale pyramid, which maps index \(\texttt{x}\) to \(\texttt{2x}\). This prevents localization bias. The option is disabled by default. |
◆ create() [2/9]
static SIFT OpenCVForUnity.Features2dModule.SIFT.create |
( |
int | nfeatures | ) |
|
|
static |
- Parameters
-
nfeatures | The number of best features to retain. The features are ranked by their scores (measured in SIFT algorithm as the local contrast) |
nOctaveLayers | The number of layers in each octave. 3 is the value used in D. Lowe paper. The number of octaves is computed automatically from the image resolution. |
contrastThreshold | The contrast threshold used to filter out weak features in semi-uniform (low-contrast) regions. The larger the threshold, the less features are produced by the detector. |
- Note
- The contrast threshold will be divided by nOctaveLayers when the filtering is applied. When nOctaveLayers is set to default and if you want to use the value used in D. Lowe paper, 0.03, set this argument to 0.09.
- Parameters
-
edgeThreshold | The threshold used to filter out edge-like features. Note that the its meaning is different from the contrastThreshold, i.e. the larger the edgeThreshold, the less features are filtered out (more features are retained). |
sigma | The sigma of the Gaussian applied to the input image at the octave #0. If your image is captured with a weak camera with soft lenses, you might want to reduce the number. |
enable_precise_upscale | Whether to enable precise upscaling in the scale pyramid, which maps index \(\texttt{x}\) to \(\texttt{2x}\). This prevents localization bias. The option is disabled by default. |
◆ create() [3/9]
static SIFT OpenCVForUnity.Features2dModule.SIFT.create |
( |
int | nfeatures, |
|
|
int | nOctaveLayers ) |
|
static |
- Parameters
-
nfeatures | The number of best features to retain. The features are ranked by their scores (measured in SIFT algorithm as the local contrast) |
nOctaveLayers | The number of layers in each octave. 3 is the value used in D. Lowe paper. The number of octaves is computed automatically from the image resolution. |
contrastThreshold | The contrast threshold used to filter out weak features in semi-uniform (low-contrast) regions. The larger the threshold, the less features are produced by the detector. |
- Note
- The contrast threshold will be divided by nOctaveLayers when the filtering is applied. When nOctaveLayers is set to default and if you want to use the value used in D. Lowe paper, 0.03, set this argument to 0.09.
- Parameters
-
edgeThreshold | The threshold used to filter out edge-like features. Note that the its meaning is different from the contrastThreshold, i.e. the larger the edgeThreshold, the less features are filtered out (more features are retained). |
sigma | The sigma of the Gaussian applied to the input image at the octave #0. If your image is captured with a weak camera with soft lenses, you might want to reduce the number. |
enable_precise_upscale | Whether to enable precise upscaling in the scale pyramid, which maps index \(\texttt{x}\) to \(\texttt{2x}\). This prevents localization bias. The option is disabled by default. |
◆ create() [4/9]
static SIFT OpenCVForUnity.Features2dModule.SIFT.create |
( |
int | nfeatures, |
|
|
int | nOctaveLayers, |
|
|
double | contrastThreshold ) |
|
static |
- Parameters
-
nfeatures | The number of best features to retain. The features are ranked by their scores (measured in SIFT algorithm as the local contrast) |
nOctaveLayers | The number of layers in each octave. 3 is the value used in D. Lowe paper. The number of octaves is computed automatically from the image resolution. |
contrastThreshold | The contrast threshold used to filter out weak features in semi-uniform (low-contrast) regions. The larger the threshold, the less features are produced by the detector. |
- Note
- The contrast threshold will be divided by nOctaveLayers when the filtering is applied. When nOctaveLayers is set to default and if you want to use the value used in D. Lowe paper, 0.03, set this argument to 0.09.
- Parameters
-
edgeThreshold | The threshold used to filter out edge-like features. Note that the its meaning is different from the contrastThreshold, i.e. the larger the edgeThreshold, the less features are filtered out (more features are retained). |
sigma | The sigma of the Gaussian applied to the input image at the octave #0. If your image is captured with a weak camera with soft lenses, you might want to reduce the number. |
enable_precise_upscale | Whether to enable precise upscaling in the scale pyramid, which maps index \(\texttt{x}\) to \(\texttt{2x}\). This prevents localization bias. The option is disabled by default. |
◆ create() [5/9]
static SIFT OpenCVForUnity.Features2dModule.SIFT.create |
( |
int | nfeatures, |
|
|
int | nOctaveLayers, |
|
|
double | contrastThreshold, |
|
|
double | edgeThreshold ) |
|
static |
- Parameters
-
nfeatures | The number of best features to retain. The features are ranked by their scores (measured in SIFT algorithm as the local contrast) |
nOctaveLayers | The number of layers in each octave. 3 is the value used in D. Lowe paper. The number of octaves is computed automatically from the image resolution. |
contrastThreshold | The contrast threshold used to filter out weak features in semi-uniform (low-contrast) regions. The larger the threshold, the less features are produced by the detector. |
- Note
- The contrast threshold will be divided by nOctaveLayers when the filtering is applied. When nOctaveLayers is set to default and if you want to use the value used in D. Lowe paper, 0.03, set this argument to 0.09.
- Parameters
-
edgeThreshold | The threshold used to filter out edge-like features. Note that the its meaning is different from the contrastThreshold, i.e. the larger the edgeThreshold, the less features are filtered out (more features are retained). |
sigma | The sigma of the Gaussian applied to the input image at the octave #0. If your image is captured with a weak camera with soft lenses, you might want to reduce the number. |
enable_precise_upscale | Whether to enable precise upscaling in the scale pyramid, which maps index \(\texttt{x}\) to \(\texttt{2x}\). This prevents localization bias. The option is disabled by default. |
◆ create() [6/9]
static SIFT OpenCVForUnity.Features2dModule.SIFT.create |
( |
int | nfeatures, |
|
|
int | nOctaveLayers, |
|
|
double | contrastThreshold, |
|
|
double | edgeThreshold, |
|
|
double | sigma ) |
|
static |
- Parameters
-
nfeatures | The number of best features to retain. The features are ranked by their scores (measured in SIFT algorithm as the local contrast) |
nOctaveLayers | The number of layers in each octave. 3 is the value used in D. Lowe paper. The number of octaves is computed automatically from the image resolution. |
contrastThreshold | The contrast threshold used to filter out weak features in semi-uniform (low-contrast) regions. The larger the threshold, the less features are produced by the detector. |
- Note
- The contrast threshold will be divided by nOctaveLayers when the filtering is applied. When nOctaveLayers is set to default and if you want to use the value used in D. Lowe paper, 0.03, set this argument to 0.09.
- Parameters
-
edgeThreshold | The threshold used to filter out edge-like features. Note that the its meaning is different from the contrastThreshold, i.e. the larger the edgeThreshold, the less features are filtered out (more features are retained). |
sigma | The sigma of the Gaussian applied to the input image at the octave #0. If your image is captured with a weak camera with soft lenses, you might want to reduce the number. |
enable_precise_upscale | Whether to enable precise upscaling in the scale pyramid, which maps index \(\texttt{x}\) to \(\texttt{2x}\). This prevents localization bias. The option is disabled by default. |
◆ create() [7/9]
static SIFT OpenCVForUnity.Features2dModule.SIFT.create |
( |
int | nfeatures, |
|
|
int | nOctaveLayers, |
|
|
double | contrastThreshold, |
|
|
double | edgeThreshold, |
|
|
double | sigma, |
|
|
bool | enable_precise_upscale ) |
|
static |
- Parameters
-
nfeatures | The number of best features to retain. The features are ranked by their scores (measured in SIFT algorithm as the local contrast) |
nOctaveLayers | The number of layers in each octave. 3 is the value used in D. Lowe paper. The number of octaves is computed automatically from the image resolution. |
contrastThreshold | The contrast threshold used to filter out weak features in semi-uniform (low-contrast) regions. The larger the threshold, the less features are produced by the detector. |
- Note
- The contrast threshold will be divided by nOctaveLayers when the filtering is applied. When nOctaveLayers is set to default and if you want to use the value used in D. Lowe paper, 0.03, set this argument to 0.09.
- Parameters
-
edgeThreshold | The threshold used to filter out edge-like features. Note that the its meaning is different from the contrastThreshold, i.e. the larger the edgeThreshold, the less features are filtered out (more features are retained). |
sigma | The sigma of the Gaussian applied to the input image at the octave #0. If your image is captured with a weak camera with soft lenses, you might want to reduce the number. |
enable_precise_upscale | Whether to enable precise upscaling in the scale pyramid, which maps index \(\texttt{x}\) to \(\texttt{2x}\). This prevents localization bias. The option is disabled by default. |
◆ create() [8/9]
static SIFT OpenCVForUnity.Features2dModule.SIFT.create |
( |
int | nfeatures, |
|
|
int | nOctaveLayers, |
|
|
double | contrastThreshold, |
|
|
double | edgeThreshold, |
|
|
double | sigma, |
|
|
int | descriptorType ) |
|
static |
Create SIFT with specified descriptorType.
- Parameters
-
nfeatures | The number of best features to retain. The features are ranked by their scores (measured in SIFT algorithm as the local contrast) |
nOctaveLayers | The number of layers in each octave. 3 is the value used in D. Lowe paper. The number of octaves is computed automatically from the image resolution. |
contrastThreshold | The contrast threshold used to filter out weak features in semi-uniform (low-contrast) regions. The larger the threshold, the less features are produced by the detector. |
- Note
- The contrast threshold will be divided by nOctaveLayers when the filtering is applied. When nOctaveLayers is set to default and if you want to use the value used in D. Lowe paper, 0.03, set this argument to 0.09.
- Parameters
-
edgeThreshold | The threshold used to filter out edge-like features. Note that the its meaning is different from the contrastThreshold, i.e. the larger the edgeThreshold, the less features are filtered out (more features are retained). |
sigma | The sigma of the Gaussian applied to the input image at the octave #0. If your image is captured with a weak camera with soft lenses, you might want to reduce the number. |
descriptorType | The type of descriptors. Only CV_32F and CV_8U are supported. |
enable_precise_upscale | Whether to enable precise upscaling in the scale pyramid, which maps index \(\texttt{x}\) to \(\texttt{2x}\). This prevents localization bias. The option is disabled by default. |
◆ create() [9/9]
static SIFT OpenCVForUnity.Features2dModule.SIFT.create |
( |
int | nfeatures, |
|
|
int | nOctaveLayers, |
|
|
double | contrastThreshold, |
|
|
double | edgeThreshold, |
|
|
double | sigma, |
|
|
int | descriptorType, |
|
|
bool | enable_precise_upscale ) |
|
static |
Create SIFT with specified descriptorType.
- Parameters
-
nfeatures | The number of best features to retain. The features are ranked by their scores (measured in SIFT algorithm as the local contrast) |
nOctaveLayers | The number of layers in each octave. 3 is the value used in D. Lowe paper. The number of octaves is computed automatically from the image resolution. |
contrastThreshold | The contrast threshold used to filter out weak features in semi-uniform (low-contrast) regions. The larger the threshold, the less features are produced by the detector. |
- Note
- The contrast threshold will be divided by nOctaveLayers when the filtering is applied. When nOctaveLayers is set to default and if you want to use the value used in D. Lowe paper, 0.03, set this argument to 0.09.
- Parameters
-
edgeThreshold | The threshold used to filter out edge-like features. Note that the its meaning is different from the contrastThreshold, i.e. the larger the edgeThreshold, the less features are filtered out (more features are retained). |
sigma | The sigma of the Gaussian applied to the input image at the octave #0. If your image is captured with a weak camera with soft lenses, you might want to reduce the number. |
descriptorType | The type of descriptors. Only CV_32F and CV_8U are supported. |
enable_precise_upscale | Whether to enable precise upscaling in the scale pyramid, which maps index \(\texttt{x}\) to \(\texttt{2x}\). This prevents localization bias. The option is disabled by default. |
◆ Dispose()
override void OpenCVForUnity.Features2dModule.SIFT.Dispose |
( |
bool | disposing | ) |
|
|
protectedvirtual |
◆ getContrastThreshold()
double OpenCVForUnity.Features2dModule.SIFT.getContrastThreshold |
( |
| ) |
|
◆ getDefaultName()
override string OpenCVForUnity.Features2dModule.SIFT.getDefaultName |
( |
| ) |
|
|
virtual |
◆ getEdgeThreshold()
double OpenCVForUnity.Features2dModule.SIFT.getEdgeThreshold |
( |
| ) |
|
◆ getNFeatures()
int OpenCVForUnity.Features2dModule.SIFT.getNFeatures |
( |
| ) |
|
◆ getNOctaveLayers()
int OpenCVForUnity.Features2dModule.SIFT.getNOctaveLayers |
( |
| ) |
|
◆ getSigma()
double OpenCVForUnity.Features2dModule.SIFT.getSigma |
( |
| ) |
|
◆ setContrastThreshold()
void OpenCVForUnity.Features2dModule.SIFT.setContrastThreshold |
( |
double | contrastThreshold | ) |
|
◆ setEdgeThreshold()
void OpenCVForUnity.Features2dModule.SIFT.setEdgeThreshold |
( |
double | edgeThreshold | ) |
|
◆ setNFeatures()
void OpenCVForUnity.Features2dModule.SIFT.setNFeatures |
( |
int | maxFeatures | ) |
|
◆ setNOctaveLayers()
void OpenCVForUnity.Features2dModule.SIFT.setNOctaveLayers |
( |
int | nOctaveLayers | ) |
|
◆ setSigma()
void OpenCVForUnity.Features2dModule.SIFT.setSigma |
( |
double | sigma | ) |
|
The documentation for this class was generated from the following file:
- OpenCVForUnity/Assets/OpenCVForUnity/org/opencv/features2d/SIFT.cs