Look at the houghpeaks function for Hough transform in matlab toolbox:
peaks = houghpeaks(H, numpeaks)
peaks = houghpeaks(..., param1, val1,param2, val2)
paramter:
'NHoodSize' : Two-element vector of positive odd integers: [M N].
Question: NHoodSize must be odd? why?
Wouldn't that be because otherwise you're not landing on a cell boundary?
vs.
In NHOOD calculations an element in the middle is being evaluated and somehow being influenced by the surrounding values.