フィルターのクリア

I am using following code for detecting surf features, bt the error is occur, so plz help me to solve it.

2 ビュー (過去 30 日間)
%read image
I = imread('C:\Users\LENOVO\Desktop\Genuine\2\2.2.png');
I2=rgb2gray(I);
%Detect SURF features.
points = detectSURFFeatures(I2);
%Display locations of interest in image.
imshow(I2); hold on ;
plot(points.selectStrongest(10
));
The following error is occured:
Error in (Line 7)
imshow(I2); hold on ;
  3 件のコメント
madhan ravi
madhan ravi 2019 年 2 月 9 日
you have file named feature.m please rename it remove it from working path.
Regina N
Regina N 2019 年 2 月 9 日
thank u madhan ravi....its working

サインインしてコメントする。

採用された回答

Image Analyst
Image Analyst 2019 年 2 月 9 日
編集済み: Image Analyst 2019 年 2 月 9 日
You have named your script feature.m. Though it's not a function you can find in the help, it is a built-in function that MATLAB uses internally:
>> which -all feature
built-in (undocumented)
Rename your m-file to something other than feature, or any other built-in function name. Check with "which -all" like I did above to make sure.
If you need more help, attach your image 'C:\Users\LENOVO\Desktop\Genuine\2\2.2.png' and your script (renamed m-file)with the paper clip icon.
It might be related to the plot line not ending correctly, and )); being on it's own line.

その他の回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by