Merge pull request #6085 from StevenPuttemans:add_at_matrix_info

pull/6032/head
Maksim Shabunin 9 years ago
commit 7ba9b4fd1a
  1. 11
      modules/core/include/opencv2/core/mat.hpp

@ -1705,10 +1705,13 @@ public:
Keep in mind that the size identifier used in the at operator cannot be chosen at random. It depends Keep in mind that the size identifier used in the at operator cannot be chosen at random. It depends
on the image from which you are trying to retrieve the data. The table below gives a better insight in this: on the image from which you are trying to retrieve the data. The table below gives a better insight in this:
- If matrix is of type `CV_8U` or `CV_8S` then use `Mat.at<uchar>(y,x)`. - If matrix is of type `CV_8U` then use `Mat.at<uchar>(y,x)`.
- If matrix is of type `CV_16U` or `CV_16S` then use `Mat.at<ushort>(y,x)`. - If matrix is of type `CV_8S` then use `Mat.at<schar>(y,x)`.
- If matrix is of type `CV_32S` or `CV_32F` then use `Mat.at<float>(y,x)`. - If matrix is of type `CV_16U` then use `Mat.at<ushort>(y,x)`.
- If matrix is of type `CV_64FU` then use `Mat.at<double>(y,x)`. - If matrix is of type `CV_16S` then use `Mat.at<short>(y,x)`.
- If matrix is of type `CV_32S` then use `Mat.at<int>(y,x)`.
- If matrix is of type `CV_32F` then use `Mat.at<float>(y,x)`.
- If matrix is of type `CV_64F` then use `Mat.at<double>(y,x)`.
@param i0 Index along the dimension 0 @param i0 Index along the dimension 0
*/ */

Loading…
Cancel
Save