Skip to content

Commit

Permalink
Fix scale in ImagesBatch
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeyKozhevin committed Nov 27, 2024
1 parent da78992 commit 8c76fcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion batchflow/batch_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ def _calc_origin(self, image_shape, origin, background_shape):
return np.asarray(origin, dtype=np.int64)

@apply_parallel
def scale(self, image, factor, preserve_shape=False, origin='center', resample=0):
def scale(self, image, factor, preserve_shape=False, origin='center', resample=0, src=None, dst=None):
""" Scale the content of each image in the batch.
Resulting shape is obtained as original_shape * factor.
Expand Down

0 comments on commit 8c76fcb

Please sign in to comment.