Given a 2×2 second moment matrix of edge pixels:
M=[1221]
obtained during the Canny edge detection process, compute the measure of straightness defined as:
Straightness=λmax+λminλmin−λmax
where λmax and λmin are the maximum and minimum eigenvalues of M respectively.
The value of the straightness is __________