Object for storing binary feature vectors
This object provides the ability to pass data between the
matchFeatures functions. It can also
be used to manipulate and plot the data returned by
features = binaryFeatures(
binaryFeatures object from the
M-by-N input matrix,
featureVectors. This matrix contains
M feature vectors stored in N uint8
featureVectors — Input feature vectors
Input feature vectors, specified as an M-by-N input matrix. This matrix contains M binary feature vectors stored in N uint8 containers.
Features — Feature vectors
Feature vectors, saved as an M-by-N input matrix. This matrix contains M binary feature vectors stored in N uint8 containers.
NumBits — Number of bits per feature vector
Number of bits per feature vector, saved as an integer.
NumBits equals the number of uint8 feature vector
containers times 8.
NumFeatures — Number of feature vectors
Number of feature vectors contained in the
binaryFeatures object, saved as a positive
Match Two Sets of Binary Feature Vectors
Input feature vectors.
features1 = binaryFeatures(uint8([1 8 7 2; 8 1 7 2])); features2 = binaryFeatures(uint8([8 1 7 2; 1 8 7 2]));
Match the vectors using the Hamming distance.
[indexPairs matchMetric] = matchFeatures(features1, features2)
indexPairs = 2x2 uint32 matrix 1 2 2 1
matchMetric = 2x1 single column vector 0 0
C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.
Introduced in R2013a