First time here? Check out the FAQ!
answered 2018-07-16 08:31:52 -0600
copyTo() does not take any flags, you probably wanted a conversion to float:
image.convertTo(tensor_image, CV_32F);
(note, that it only takes the "depth", not the number of channels here (those are unchanged).)