Because Point2f is in the
#include opencv2\core\core.hpp
And Point2f rgbMat_center(rgbMat.cols/2.0F, rgbMat.rows/2.0F); this is wrong.
rgbMat is pointer so it has to be like rgbMat->cols.
4
solved stuck in implementing filters in different direction in opencv [closed]