Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

error in cropping image

Asked by FIR

FIR (view profile)

on 14 Feb 2013

I have two images http://imgur.com/JHsjJkA,0GgHtBn#1

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 Comment

Walter Roberson

Walter Roberson (view profile)

on 14 Feb 2013

Please only indent code and not text when you are posting.

FIR

FIR (view profile)

Tags

Products

No products are associated with this question.

1 Answer

Answer by Walter Roberson

Walter Roberson (view profile)

on 14 Feb 2013

Code that uses "clear all" is always improperly designed.

0 Comments

Walter Roberson

Walter Roberson (view profile)

Contact us