alantrrs / OpenTLD

:eyes: C++ implementation of TLD
GNU General Public License v3.0
225 stars 99 forks source link

function"NNConf" #11

Open yangxian opened 12 years ago

yangxian commented 12 years ago

I don't understand the code: matchTemplate(m_pEx[i], example, ncc, CV_TM_CCORR_NORMED); // measure NCC to positive examples nccP = (ncc.at(0) + 1) * 0.5f; I think the nccP's result can't > 0.95 forever. who can tell me the writer‘s mean? Thanks very much.

zttkkk commented 12 years ago

ncc.at(0) ranges from 0.0 to 1.0 so (ncc.at(0) + 1) * 0.5f; ranges from 0.5 to 1.0 the threshold 0.95 is good