You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
help="Do not use samples where the calibration pattern is moving faster \
134
134
than this speed in px/frame. Set to eg. 0.5 for rolling shutter cameras.")
135
+
parser.add_option("-r", "--range-policy",
136
+
type="string", default="upper",
137
+
help="For 16 bit images, the policy to use for determining the range of pixel values to use for thresholding. Choose from 'upper', 'dynamic', or 'legacy'.")
138
+
135
139
136
140
parser.add_option_group(group)
137
141
@@ -219,10 +223,13 @@ def main():
219
223
else:
220
224
checkerboard_flags=cv2.CALIB_CB_FAST_CHECK
221
225
226
+
range_policy=options.range_policy
227
+
assertrange_policyin ['upper', 'dynamic', 'legacy'], "Invalid range policy: %s"%range_policy
0 commit comments