Mercurial Hosting > traffic-intelligence
comparison scripts/compute-homography.py @ 591:aded6c1c2ebd
added framework script and function to compute matchings
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Fri, 05 Dec 2014 17:00:37 -0500 |
parents | 9c429c7efe89 |
children | 3058e00887bc |
comparison
equal
deleted
inserted
replaced
590:0fa73cbe9fdb | 591:aded6c1c2ebd |
---|---|
15 - the last two lines are the x and y coordinates in the origin space (usually image space) | 15 - the last two lines are the x and y coordinates in the origin space (usually image space) |
16 | 16 |
17 If providing video and world images, with a number of points to input | 17 If providing video and world images, with a number of points to input |
18 and a ration to convert pixels to world distance unit (eg meters per pixel), | 18 and a ration to convert pixels to world distance unit (eg meters per pixel), |
19 the images will be shown in turn and the user should click | 19 the images will be shown in turn and the user should click |
20 in the same order the corresponding points in world and image spaces.''', formatter_class=argparse.RawDescriptionHelpFormatter,) | 20 in the same order the corresponding points in world and image spaces.''', formatter_class=argparse.RawDescriptionHelpFormatter) |
21 | 21 |
22 parser.add_argument('-p', dest = 'pointCorrespondencesFilename', help = 'name of the text file containing the point correspondences') | 22 parser.add_argument('-p', dest = 'pointCorrespondencesFilename', help = 'name of the text file containing the point correspondences') |
23 parser.add_argument('-i', dest = 'videoFrameFilename', help = 'filename of the video frame') | 23 parser.add_argument('-i', dest = 'videoFrameFilename', help = 'filename of the video frame') |
24 parser.add_argument('-w', dest = 'worldFilename', help = 'filename of the aerial photo/ground map') | 24 parser.add_argument('-w', dest = 'worldFilename', help = 'filename of the aerial photo/ground map') |
25 parser.add_argument('-n', dest = 'nPoints', help = 'number of corresponding points to input', default = 4, type = int) | 25 parser.add_argument('-n', dest = 'nPoints', help = 'number of corresponding points to input', default = 4, type = int) |