How do i parse a string to a float or int. Mat a mat object representing the image to be written. In fact this is sort of documented.