Rank: 302089 based on 0 downloads (last 30 days) and 0 file submitted
photo

JAY R

E-mail

Personal Profile:
Professional Interests:
Image Processing, Signal Processing Statistical Signal Processing

 

Watch this Author's files

 

Comments and Ratings by JAY
Updated File Comments Rating
18 Apr 2013 Demo files for "Algorithm Development with MATLAB" Webinar These are the demo files for "Algorithm Development with MATLAB" Webinar held on April 5, 2011. Author: Jiro Doke

in the find ball script i get error on the 52 line that is after the else, kindly answer this. I am using R2009a version

%% Find center
% Now we are using REGIONPROPS to extract the centroid of the group of
% pixels representing the ball.
s = regionprops(ball1, {'centroid','area'});
if isempty(s)
error('No ball found!');
else
[~, id] = max([s.Area]);
hold on, plot(s(id).Centroid(1),s(id).Centroid(2),'wp','MarkerSize',20,'MarkerFaceColor','r'), hold off
disp(['Center location is (',num2str(s(id).Centroid(1),4),', ',num2str(s(id).Centroid(2),4),')'])
end

Contact us