First time here? Check out the FAQ!
answered 2017-05-08 22:52:19 -0600
I'm sorry I was wrong. i use im.ptr<float>(i)[j] but my Mat type is CV_8UC. i convert my Mat to CV_32F and use im.at<float>(i,j), fixed issue.