Opencv map predefined GT cordinates to different aspect ratio

asked 2017-12-27 03:17:05 -0500

U.Swap gravatar image

updated 2017-12-27 03:26:50 -0500

I have a dataset of eye gluacoma with predefined ground truths of optic disc and optic cup, but the image size in the dataset is way too large, they are around 2045x1752 so the GT cordinates are also as per that cordinate ratio, but am looking to resize the image to lower aspect ratio say 450x400, and relocate the GT cordinates according to a new aspect ratio, but am bit confused with that, so any approch towards this problem would be appreciated.

Note: Here the GT cordinates are in seperate csv file, it's not already labled in the dataset image itself.

edit retag flag offensive close merge delete


i don't quite understand the problem. there is a scale factor for x, and another for y, and you just multiply your coords with that ?

berak gravatar imageberak ( 2017-12-27 04:10:08 -0500 )edit

What are GT coordinates?

sjhalayka gravatar imagesjhalayka ( 2017-12-27 12:55:03 -0500 )edit

GT == ground truth

berak gravatar imageberak ( 2017-12-27 12:56:36 -0500 )edit

they are list of tuples with x,y co-ordinates

U.Swap gravatar imageU.Swap ( 2017-12-28 07:09:54 -0500 )edit