Commit cbf95f20 authored by Vincent POLLET's avatar Vincent POLLET
Browse files

Fix variable refactor

parent 5989ec30
......@@ -41,7 +41,7 @@ class StereoParameters:
erode = False,
inpaint = False):
self.algorythm = algorythm
self.algorithm = algorithm
# OPENCV_SGBM
self.min_disparity = min_disparity
......
......@@ -76,7 +76,7 @@ def stereo_match(img_l, img_r, camera_pair, stereo_parameters=StereoParameters()
#block match
if stereo_parameters.algorythm == stereo_parameters.STEREO_CV_SGBM:
if stereo_parameters.algorithm == stereo_parameters.STEREO_CV_SGBM:
stereo = cv.StereoSGBM_create(minDisparity = stereo_parameters.min_disparity,
numDisparities = stereo_parameters.num_disparities,
......@@ -96,7 +96,7 @@ def stereo_match(img_l, img_r, camera_pair, stereo_parameters=StereoParameters()
else:
raise Exception('Unknown stereo algorythm')
raise Exception('Unknown stereo algorithm')
# inpaint depth map holes
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment