[OpenCV Docs](https://docs.opencv.org/4.13.0/df/dfb/group__imgproc__object.html#ga3a7850640f1fe1f58fe91a2d7583695d) The `TM_CCOEFF` matching method includes a term of $$ -\frac{1}{w\cdot h} \sum_{x'',y''}T(x'',y'') $$ which can solve the problem of brightness difference between the template and the image.
OpenCV Docs
The
TM_CCOEFFmatching method includes a term ofwhich can solve the problem of brightness difference between the template and the image.