At a point in my code I have a cv::Mat
with the type CV_8U
and a cv::Mat
with the type CV_64f
. I want to know if there is a clever way to masking the floating point image with the char image without having to loop through the images and do it explicitly.
I realize this isn't a terribly pressing issue to just write, I'm just curious if it is possible to help with readability succinctness in my code.