Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi! As I see, you declare a 2 dimensional Mat, so you can use Mat.at<>() like this:

downSize.at<float>(row, column)
This works fine.

Hi! As I see, you declare a 2 dimensional Mat, your source has type CV_U8C1, so you can should use Mat.at<>() like this:

downSize.at<float>(row, Mat.at<unsigned char>(row, column)
This works fine.

.

Hi! As I see, your source has type CV_U8C1, so you should use Mat.at<unsigned char>(row, column). Destination type isn't taken into account, as described here: resize.

Hi! As I see, your source has type CV_U8C1, so you should use Mat.at<unsigned downSize.at<unsigned char>(row, column). Destination type isn't taken into account, as described here: resize.