KAZE (OpenCV 4.13.0 Java documentation) Примеры с cv2.imshow требуют сборки OpenCV с GUI. В ноутбуке с headless-версией используйте вывод изображений через Matplotlib.
public class KAZE
extends Feature2D
Class implementing the KAZE keypoint detector and descriptor extractor, described in CITE: ABD12 .
Note: AKAZE descriptor can only be used with KAZE or AKAZE keypoints .. [ABD12] KAZE Features. Pablo
F. Alcantarilla, Adrien Bartoli and Andrew J. Davison. In European Conference on Computer Vision
(ECCV), Fiorenze, Italy, October 2012.
Constructor Summary
Constructors Modifier Constructor Description protected KAZE (long addr)
Constructor Detail
KAZE
protected KAZE(long addr)
Method Detail
__fromPtr__
public static KAZE __fromPtr__(long addr)
create
public static KAZE create(boolean extended,
boolean upright,
float threshold,
int nOctaves,
int nOctaveLayers,
int diffusivity)
The KAZE constructor
Parameters:
extended - Set to enable extraction of extended (128-byte) descriptor.
- Set to enable use of upright descriptors (non rotation-invariant).
static KAZE create ()
The KAZE constructor
DIFF_CHARBONNIER
static KAZE create (boolean extended)
The KAZE constructor
static KAZE create (boolean extended,
boolean upright)
The KAZE constructor
static KAZE create (boolean extended,
boolean upright,
float threshold)
The KAZE constructor
static KAZE create (boolean extended,
boolean upright,
float threshold,
int nOctaves)
The KAZE constructor
static KAZE create (boolean extended,
boolean upright,
float threshold,
int nOctaves,
int nOctaveLayers)
The KAZE constructor
static KAZE create (boolean extended,
boolean upright,
float threshold,
int nOctaves,
int nOctaveLayers,
int diffusivity)
The KAZE constructor
java.lang.StringgetDefaultName ()
Returns the algorithm string identifier.
Methods inherited from class org.opencv.features2d.Feature2D
compute , compute , defaultNorm , descriptorSize , descriptorType , detect , detect , detect , detect , detectAndCompute , detectAndCompute , empty , read , write
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
upright
threshold - Detector response threshold to accept point
nOctaves - Maximum octave evolution of the image
nOctaveLayers - Default number of sublevels per scale level
diffusivity - Diffusivity type. DIFF_PM_G1, DIFF_PM_G2, DIFF_WEICKERT or
DIFF_CHARBONNIER
Returns:
automatically generated
create
public static KAZE create(boolean extended,
boolean upright,
float threshold,
int nOctaves,
int nOctaveLayers)
The KAZE constructor
Parameters:
extended - Set to enable extraction of extended (128-byte) descriptor.
upright - Set to enable use of upright descriptors (non rotation-invariant).
threshold - Detector response threshold to accept point
nOctaves - Maximum octave evolution of the image
nOctaveLayers - Default number of sublevels per scale level
DIFF_CHARBONNIER
Returns:
automatically generated
create
public static KAZE create(boolean extended,
boolean upright,
float threshold,
int nOctaves)
The KAZE constructor
Parameters:
extended - Set to enable extraction of extended (128-byte) descriptor.
upright - Set to enable use of upright descriptors (non rotation-invariant).
threshold - Detector response threshold to accept point
nOctaves - Maximum octave evolution of the image
DIFF_CHARBONNIER
Returns:
automatically generated
create
public static KAZE create(boolean extended,
boolean upright,
float threshold)
The KAZE constructor
Parameters:
extended - Set to enable extraction of extended (128-byte) descriptor.
upright - Set to enable use of upright descriptors (non rotation-invariant).
threshold - Detector response threshold to accept point
DIFF_CHARBONNIER
Returns:
automatically generated
create
public static KAZE create(boolean extended,
boolean upright)
The KAZE constructor
Parameters:
extended - Set to enable extraction of extended (128-byte) descriptor.
upright - Set to enable use of upright descriptors (non rotation-invariant).
DIFF_CHARBONNIER
Returns:
automatically generated
create
public static KAZE create(boolean extended)
The KAZE constructor
Parameters:
extended - Set to enable extraction of extended (128-byte) descriptor.
DIFF_CHARBONNIER
Returns:
automatically generated
setExtended
public void setExtended(boolean extended)
getExtended
public boolean getExtended()
setUpright
public void setUpright(boolean upright)
getUpright
public boolean getUpright()
setThreshold
public void setThreshold(double threshold)
getThreshold
public double getThreshold()
setNOctaves
public void setNOctaves(int octaves)
setNOctaveLayers
public void setNOctaveLayers(int octaveLayers)
getNOctaveLayers
public int getNOctaveLayers()
setDiffusivity
public void setDiffusivity(int diff)
getDiffusivity
public int getDiffusivity()