public class SIFT extends Feature2D
Modifier | Constructor and Description |
---|---|
protected |
SIFT(long addr) |
Modifier and Type | Method and Description |
---|---|
static SIFT |
__fromPtr__(long addr) |
static SIFT |
create()
(measured in SIFT algorithm as the local contrast)
number of octaves is computed automatically from the image resolution.
|
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,
boolean 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,
boolean enable_precise_upscale)
Create SIFT with specified descriptorType.
|
protected void |
finalize() |
double |
getContrastThreshold() |
String |
getDefaultName()
Returns the algorithm string identifier.
|
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) |
compute, compute, defaultNorm, descriptorSize, descriptorType, detect, detect, detect, detect, detectAndCompute, detectAndCompute, empty, read, write
clear, getNativeObjAddr, save
public static SIFT __fromPtr__(long addr)
public static SIFT create(int nfeatures, int nOctaveLayers, double contrastThreshold, double edgeThreshold, double sigma, boolean enable_precise_upscale)
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.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.public static SIFT create(int nfeatures, int nOctaveLayers, double contrastThreshold, double edgeThreshold, double sigma)
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.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.
index \(\texttt{x}\) to \(\texttt{2x}\). This prevents localization bias. The option
is disabled by default.public static SIFT create(int nfeatures, int nOctaveLayers, double contrastThreshold, double edgeThreshold)
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.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).
is captured with a weak camera with soft lenses, you might want to reduce the number.
index \(\texttt{x}\) to \(\texttt{2x}\). This prevents localization bias. The option
is disabled by default.public static SIFT create(int nfeatures, int nOctaveLayers, double contrastThreshold)
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.
is different from the contrastThreshold, i.e. the larger the edgeThreshold, the less features are
filtered out (more features are retained).
is captured with a weak camera with soft lenses, you might want to reduce the number.
index \(\texttt{x}\) to \(\texttt{2x}\). This prevents localization bias. The option
is disabled by default.public static SIFT create(int nfeatures, int nOctaveLayers)
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.
(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.
is different from the contrastThreshold, i.e. the larger the edgeThreshold, the less features are
filtered out (more features are retained).
is captured with a weak camera with soft lenses, you might want to reduce the number.
index \(\texttt{x}\) to \(\texttt{2x}\). This prevents localization bias. The option
is disabled by default.public static SIFT create(int nfeatures)
nfeatures
- The number of best features to retain. The features are ranked by their scores
(measured in SIFT algorithm as the local contrast)
number of octaves is computed automatically from the image resolution.
(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.
is different from the contrastThreshold, i.e. the larger the edgeThreshold, the less features are
filtered out (more features are retained).
is captured with a weak camera with soft lenses, you might want to reduce the number.
index \(\texttt{x}\) to \(\texttt{2x}\). This prevents localization bias. The option
is disabled by default.public static SIFT create()
public static SIFT create(int nfeatures, int nOctaveLayers, double contrastThreshold, double edgeThreshold, double sigma, int descriptorType, boolean enable_precise_upscale)
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.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.public static SIFT create(int nfeatures, int nOctaveLayers, double contrastThreshold, double edgeThreshold, double sigma, int descriptorType)
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.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.
index \(\texttt{x}\) to \(\texttt{2x}\). This prevents localization bias. The option
is disabled by default.public String getDefaultName()
Algorithm
getDefaultName
in class Feature2D
public void setNFeatures(int maxFeatures)
public int getNFeatures()
public void setNOctaveLayers(int nOctaveLayers)
public int getNOctaveLayers()
public void setContrastThreshold(double contrastThreshold)
public double getContrastThreshold()
public void setEdgeThreshold(double edgeThreshold)
public double getEdgeThreshold()
public void setSigma(double sigma)
public double getSigma()
Copyright © 2024. All rights reserved.