
204 Feature Extraction and Image Processing
the Cartesian definition given in Equation 5.74. According to this equation the displacement
vector is given by
(1, 0) = ( ) – b (5.84)
The matrix T stores the co-ordinates of (1, 0). This matrix is expanded to accommodate
all the computed entries.
Code 5.11 shows the implementation of the gathering process of the GHT. In this case
we use the Cartesian definition in Equation 5.74. The co-ordinates of points given by
%Generalised Hough Transform
function GHT(inputimage,RTable)
%image size
[rows,columns]=size(inputimage);
%table size
[rowsT,h,columnsT]=size(RTable);
D=pi/rowsT;
%edges
[M,Ang]=Edges(inputimage);
M=MaxSupr(M,Ang); ...