From b4a46093c808c67f574250fe7b5666fe2fe09693 Mon Sep 17 00:00:00 2001 From: Konstantysz Date: Fri, 3 Nov 2023 16:10:01 +0100 Subject: [PATCH] Add "intrinsics" command line argument --- pipeline.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pipeline.py b/pipeline.py index 02ee5ef..1d0f032 100755 --- a/pipeline.py +++ b/pipeline.py @@ -63,7 +63,10 @@ def createParser(): type = int, help = "Camera model: 1. Pinhole 2. Pinhole Radial 1 3. Pinhole Radial 3 (Default) 4. Pinhole Brown 5. Pinhole with a Simple Fish-eye Distortion", choices = [1, 2, 3, 4, 5]) - + imageListing.add_argument("--intrinsics", + type = str, + help = "Camera matrix formated as 'f_x;0;u_x;0;f_y;u_y;0;0;1'.") + computeFeature = parser.add_argument_group("OpenMVG Compute Features") computeFeature.add_argument("--descmethod", type = str, @@ -211,6 +214,8 @@ def createCommands(args): imageListingOptions += ["-f", args.flength] if args.cmodel != None: imageListingOptions += ["-c", args.cmodel] + if args.intrinsics != None: + imageListingOptions += ["-k", args.intrinsics] # OpenMVG Compute Features if args.descmethod != None: