MATLAB: Matlab extract a specified number of features

computer visionComputer Vision ToolboxMATLABmatlab function

Hello,
Using the extractFeatures function:
[features1, valid_points1] = extractFeatures(I1, points1);
How can we change it so that the length of features 1 is the same as the length of points1?
E.g. if points1 are 27 coordinates how do we ensure features1 is 27 features?
Thanks in advance : )

Best Answer

Hi Animesh,
You do not have to change the function, extractFeatures function is taking points as input which is M-by-2 matrix of [x,y] coordinates and output features is an M-by-N matrix of M feature vectors.
For further information you may refer to the documentation page of extract features:
Hope this Helps!