User`s guide
7 Analysis and Enhancement
• Starting row = Index
• Starting row index = 2
• Ending row = Index
• Ending row index = 2
The Idx port of the Find Local Maxima block outputs a matrix whose second
row represents the zero-based indices o f the theta values that correspond
to the peaks in the Hough matrix. Now that you have these indices, you
can use a Selector block to extract the corresponding theta values from the
vector output of the Hough Transform block.
11 Use the Submatrix3 block to find the indices that correspond to the rho
values of the two peak values in the H ough matrix. Set the parameters as
follows:
• Ending row =
Index
• Ending row index = 1
The Idx port of the Find Local M axima block outputs a matrix whose first
row represents the zero-based indices of the rho values that correspond to
the peaks in the Hough matrix. Now that you have these indices, you can
use a Selector block to extract the corresponding rho values from the vector
output of the Hough Transform block.
12 Use the Selector2 and Selector3 blocks to find the theta and rho values
that correspond to the peaks in the Hough matrix. These values, output
by the Hough Transform block, are located at the indices output by the
Submatrix2 and Submatrix3 blocks. Set both block parameters as follows:
• Index mode =
Zero-based
• 1
– In dex Option =
Index vector (port)
• Inputportsize= -1
You s et t he Index mode to Zero-based because the Find Local Maxima
block outputs zero-based indices at the Idx port.
7-22