Commit e5f6c554 authored by Matt Clarkson's avatar Matt Clarkson

Merge branch '36-initialse-ids-as-integer' into 'master'

Issue #36: Initialise ChessboardPointDetector.ids as int16.

Closes #36

See merge request WEISS/SoftwareRepositories/SNAPPY/scikit-surgeryimage!21
parents fe79497d 8601cdfc
Pipeline #3165 failed with stages
in 9 minutes and 7 seconds
......@@ -32,7 +32,7 @@ class ChessboardPointDetector(PointDetector):
self.square_size_in_mm = square_size_in_mm
self.object_points = np.zeros((self.expected_number_of_points, 3))
self.ids = np.zeros((self.expected_number_of_points, 1))
self.ids = np.zeros((self.expected_number_of_points, 1), dtype=np.int16)
for i in range(0, self.expected_number_of_points):
self.object_points[i][0] = (i % self.number_in_x) \
* self.square_size_in_mm
......
Markdown is supported
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