I am a beginner to openCV and I have a .txt file which contains the map data of x and y in the format of [x:y] = [1:3, 3:5, 5:7, 8:9, 10:5, 7:3, ...... ] where the data before : is x and after : is y and how do I convert the data of x as row and y as column and write the above values in to the mat using OPENCV. any help would be appreciated.