Skip to content

Commit

Permalink
Make sensor downsampling consistent with rest of package.
Browse files Browse the repository at this point in the history
  • Loading branch information
ebezzam committed Feb 28, 2024
1 parent 0099117 commit b62e1ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lensless/hardware/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ def downsample(self, factor):

self.pixel_size = self.pixel_size * factor
self.pitch = self.pitch * factor
self.resolution = (self.resolution / factor).astype(int)
self.resolution = np.round(self.resolution / factor).astype(int)
self.size = self.pixel_size * self.resolution
self.image_shape = self.resolution
if self.color:
Expand Down

0 comments on commit b62e1ff

Please sign in to comment.