The example below, is from OpenCv documentation[1].
Mat H(100, 100, CV_64F);
for(int i = 0; i < H.rows; i++)
for(int j = 0; j < H.cols; j++)
H.at<double>(i,j)=1./(i+j);
This works perfectly fine. But in the last line what is ./ operator? And if I replace it with / it gives me floating point exception.
So, in both cases we have infinity when i and j are 0; then why do we get floating point exception for the second case?