|
OpenCV 2.4.2 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opencv.features2d.DescriptorExtractor
public class DescriptorExtractor
Abstract base class for computing descriptors for image keypoints.
In this interface, a keypoint descriptor can be represented as a dense, fixed-dimension vector of a basic type. Most descriptors follow this pattern as it simplifies computing distances between descriptors. Therefore, a collection of descriptors is represented as "Mat", where each row is a keypoint descriptor.
Field Summary | |
---|---|
static int |
BRIEF
|
protected long |
nativeObj
|
static int |
OPPONENT_BRIEF
|
static int |
OPPONENT_ORB
|
static int |
OPPONENT_SIFT
|
static int |
OPPONENT_SURF
|
static int |
ORB
|
static int |
SIFT
|
static int |
SURF
|
Constructor Summary | |
---|---|
protected |
DescriptorExtractor(long addr)
|
Method Summary | |
---|---|
void |
compute(java.util.List<Mat> images,
java.util.List<MatOfKeyPoint> keypoints,
java.util.List<Mat> descriptors)
Computes the descriptors for a set of keypoints detected in an image (first variant) or image set (second variant). |
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). |
static DescriptorExtractor |
create(int extractorType)
Creates a descriptor extractor by name. |
int |
descriptorSize()
|
int |
descriptorType()
|
boolean |
empty()
|
protected void |
finalize()
|
void |
read(java.lang.String fileName)
|
void |
write(java.lang.String fileName)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int BRIEF
protected final long nativeObj
public static final int OPPONENT_BRIEF
public static final int OPPONENT_ORB
public static final int OPPONENT_SIFT
public static final int OPPONENT_SURF
public static final int ORB
public static final int SIFT
public static final int SURF
Constructor Detail |
---|
protected DescriptorExtractor(long addr)
Method Detail |
---|
public void compute(java.util.List<Mat> images, java.util.List<MatOfKeyPoint> keypoints, java.util.List<Mat> descriptors)
Computes the descriptors for a set of keypoints detected in an image (first variant) or image set (second variant).
images
- Image set.keypoints
- Input collection of keypoints. Keypoints for which a
descriptor cannot be computed are removed. Sometimes new keypoints can be
added, for example: SIFT
duplicates keypoint with several
dominant orientations (for each orientation).descriptors
- Computed descriptors. In the second variant of the method
descriptors[i]
are descriptors computed for a keypoints[i]".
Row
j is the
keypoints (or
keypoints[i])
is the descriptor for keypoint
j"-th keypoint.public 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).
image
- Image.keypoints
- Input collection of keypoints. Keypoints for which a
descriptor cannot be computed are removed. Sometimes new keypoints can be
added, for example: SIFT
duplicates keypoint with several
dominant orientations (for each orientation).descriptors
- Computed descriptors. In the second variant of the method
descriptors[i]
are descriptors computed for a keypoints[i]".
Row
j is the
keypoints (or
keypoints[i])
is the descriptor for keypoint
j"-th keypoint.public static DescriptorExtractor create(int extractorType)
Creates a descriptor extractor by name.
The current implementation supports the following types of a descriptor extractor:
"SIFT"
-- "SIFT"
"SURF"
-- "SURF"
"ORB"
-- "ORB"
"BRIEF"
-- "BriefDescriptorExtractor"
A combined format is also supported: descriptor extractor adapter name
("Opponent"
-- "OpponentColorDescriptorExtractor") + descriptor
extractor name (see above), for example: "OpponentSIFT"
.
extractorType
- a extractorTypepublic int descriptorSize()
public int descriptorType()
public boolean empty()
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public void read(java.lang.String fileName)
public void write(java.lang.String fileName)
|
Official OpenCV 2.4 Documentation | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |