Info

此问题已关闭。 请重新打开它进行编辑或回答。

error in cropping image

3 次查看(过去 30 天)
FIR
FIR 2013-2-14
关闭: MATLAB Answer Bot 2021-8-20
I have detected surf features, when i try to imcrop the surf detected region, the cropped image does not have that surf point.
plz assist where i made wrong
i need the crooped image with surf points
clc
clear all
close all
[p,f]=uigetfile();
I=imread(strcat(f,p));
I1=rgb2gray(I);
points = detectSURFFeatures(I1);
imshow(I); hold on;
plot(points.selectStrongest(10))
S=imcrop((plot(points.selectStrongest(10))));
figure,imshow(S)
  1 个评论
Walter Roberson
Walter Roberson 2013-2-14
Please only indent code and not text when you are posting.

回答(1 个)

Walter Roberson
Walter Roberson 2013-2-14
Code that uses "clear all" is always improperly designed.

标签

Community Treasure Hunt

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

Start Hunting!

Translated by