I want to implement a similar function as shown below using opencv.
image=double(imread('mask.jpg'));
I implemented something like this. How to convert it to double.
cv::Mat image= imread(arg[1]);
where arg[1]contains my image, which should be stored in the Matimage as a double. How to implement it.
source
share