Okay, trying to subtract element by element two matrixes. I need to save the value of the elements of one matrix to then subtract the value of the second matrix. The problem comes (I THINK) when I realize I do not know the type value of the elements of the matrix. When debugging it, it just says. DEBUG ERROR abort ()
Images of what Im doing (sorry I am starting in open cv and c++) : (the error debugging appears, as I said when trying to save in tmp variable.