I have some image files in the drawable folder. And now, I want to convert them into opencv Mat object. I've found a function:
Mat img = Highgui.imread(inFile);
which is reading a file path to get the Mat.
However, I can't get path of my images as I can only read them by using their id like R.drawable.img1.
How could I achieve what I want?
gryimg
? – Sturges