Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

how to unified the get back Mat.at<..> function ?

hello opencv community, in my code i'm dealing with mutiple Matrices type or depth Mat, is it possible to use Mat.at function without having any information about its type,

any help i would be glad

best regards

curr_pixel_value = frame.at<float>(row_index,clo_index);
curr_pixel_value = frame.at<uchar>(row_index,clo_index);
curr_pixel_value = frame.at<double>(row_index,clo_index);