Skip to content

Commit

Permalink
Merge pull request #2517 from alicevision/dev/lockOpticalCenter
Browse files Browse the repository at this point in the history
Add locks for intrinsics
  • Loading branch information
fabiencastan authored Sep 9, 2024
2 parents 4502e98 + 273906c commit 6cdbd46
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion meshroom/nodes/aliceVision/CameraInit.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,27 @@
value=True,
uid=[0],
),
desc.BoolParam(
name="scaleLocked",
label="Focal length Locked",
description="The focal length is locked for estimation.",
value=False,
uid=[0],
),
desc.BoolParam(
name="offsetLocked",
label="Optical Center Locked",
description="The optical center coordinates are locked for estimation.",
value=False,
uid=[0],
),
desc.BoolParam(
name="distortionLocked",
label="Distortion Locked",
description="The distortion parameters are locked for estimation.",
value=False,
uid=[0],
),
desc.ChoiceParam(
name="type",
label="Camera Type",
Expand Down Expand Up @@ -677,7 +698,7 @@ def createViewpointsFile(self, node, additionalViews=()):
view['metadata'] = json.loads(view['metadata'])

sfmData = {
"version": [1, 2, 8],
"version": [1, 2, 10],
"views": views + newViews,
"intrinsics": intrinsics,
"featureFolder": "",
Expand Down

0 comments on commit 6cdbd46

Please sign in to comment.