Skip to content

Commit

Permalink
Issue #33: Update to scikit-surgeryimage 0.8.5
Browse files Browse the repository at this point in the history
  • Loading branch information
MattClarkson committed Feb 8, 2021
1 parent 1ca80a7 commit 4524f60
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ nbsphinx
scipy
opencv-contrib-python
scikit-surgerycore
scikit-surgeryimage>=0.8.4
scikit-surgeryimage>=0.8.5
scikit-surgeryopencvcpp
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
'scipy',
'opencv-contrib-python',
'scikit-surgerycore',
'scikit-surgeryimage>=0.8.4',
'scikit-surgeryimage>=0.8.5',
'scikit-surgeryopencvcpp',
],

Expand Down
13 changes: 12 additions & 1 deletion tests/video/test_iterative.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,26 @@ def get_point_detector(intrinsic_matrix, distortion_matrix):
model_points[counter][5] = 0
counter = counter + 1

dot_detector_params = cv2.SimpleBlobDetector_Params()
dot_detector_params.filterByConvexity = False
dot_detector_params.filterByInertia = False
dot_detector_params.filterByCircularity = False
dot_detector_params.filterByArea = True
dot_detector_params.minArea = 50
dot_detector_params.maxArea = 50000

point_detector = \
dotty_pd.DottyGridPointDetector(
model_points,
fiducial_indexes,
intrinsic_matrix,
distortion_matrix,
reference_image_size=(reference_image_size[1],
reference_image_size[0])
reference_image_size[0]),
threshold_window_size=191,
dot_detector_params=dot_detector_params
)

return point_detector


Expand Down

0 comments on commit 4524f60

Please sign in to comment.