Error while using extractFeatures function

4 ビュー (過去 30 日間)
SHASHANK LOKHANDE
SHASHANK LOKHANDE 2019 年 12 月 19 日
回答済み: Luuk van Oosten 2019 年 12 月 20 日
After execution of following statements:
%% Detecting an Object in the Image of a Cluttered Scene
%% Clear workspace
close all;
clear all;
clc;
%% Read Images
I1 = imread('LostBook.JPG');
figure;imshow(I1);title('Object');
I2 = imread('ClutteredScene3.jpg');
figure;
imshow(I2);
title('Scene');
%% Detect SURF Features
points1 = detectSURFFeatures(rgb2gray(I1));
points2 = detectSURFFeatures(rgb2gray(I2));
%% Extract Features
[feats1,validpts1] = extractFeatures(rgb2gray(I1),points1);
[feats2,validpts2] = extractFeatures(rgb2gray(I2),points2);
Following errors occur:
Error using extractFeatures
Too many output arguments.
I tried many times for different versions of MATLAB.

回答 (1 件)

Luuk van Oosten
Luuk van Oosten 2019 年 12 月 20 日
Hello,
Could be multiple reasons why you get this error. Did you check this? It lists a couple of causes and solutions to your problem.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by