Chessboard detection: Difference between revisions

Content deleted Content added
m Replace magic links with templates per local RfC and MediaWiki RfC
matlab code was mostly comments and one standard library call; not informative
Line 61:
|width2=767|height2=548|image2=Harris corners detected on chessboard.png|caption2=Output of [[Corner detection#The Harris .26 Stephens .2F Plessey .2F Shi.E2.80.93Tomasi corner detection algorithm|Harris corner detector]]
}}
 
The following [[MATLAB]] code generates the above image using the [http://www.mathworks.com/products/image/ Image Processing Toolbox]:
 
<source lang="matlab">
% Load image
I = imread('Perspective_chessboard.png');
 
% Detect corners
C = corner(I,'Harris');
 
%--------------------------------------------------------------------------
% Display results
%--------------------------------------------------------------------------
% Original image
figure; imshow(I);
 
% Detected corners
figure; imshow(I); hold on;
plot(C(:,1),C(:,2),'ro');
%--------------------------------------------------------------------------
</source>
 
===Lines===