Reputation: 369
I am using detectMSERFeatures
function of Matlab 2014b version, for getting an image's features but this function is giving an error, please help.
Code:
colorImage = imread('handicapSign.jpg');
I = rgb2gray(colorImage);
% Detect MSER regions.
[mserRegions, mserConnComp] = detectMSERFeatures(I, ...
'RegionAreaRange',[200 8000],'ThresholdDelta',4);
figure
imshow(I)
Error:
Error using detectMSERFeatures
Too many output arguments, please help.
Upvotes: 0
Views: 767
Reputation: 4477
detectMSERFeatures
returns the second output MSER regions in a connected component structure starting from 16a. Before that, it returned only one output regions
which is a MSERRegions object. You need to update your code to get only one output from detectMSERFeatures. Depending on what you need to do after detectMSERFeatures
you can use extractFeatures
function to extract feature vectors with the output from detectMSERFeatures
. Checkout the documentation for R2014b, for examples.
Upvotes: 1