Skip to content

Commit

Permalink
Merge pull request #1755 from girder/zero-not-empty
Browse files Browse the repository at this point in the history
Zero empty areas in tile frames
  • Loading branch information
manthey authored Jan 3, 2025
2 parents 841d774 + ec5fa0d commit 98aa12f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
### Changes

- Suppress a warning about nd2 files that we can't do anything about ([#1749](../../pull/1749))
- Zero empty areas in tile frames ([#1752](../../pull/1752))

### Bug Fixes

Expand Down
2 changes: 1 addition & 1 deletion large_image/tilesource/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,7 @@ def _addSubimageToImage(
if image is None:
if (x, y, width, height) == (0, 0, subimage.shape[1], subimage.shape[0]):
return subimage
image = np.empty(
image = np.zeros(
(height, width, subimage.shape[2]), # type: ignore[misc]
dtype=subimage.dtype)
elif len(image.shape) != len(subimage.shape) or image.shape[-1] != subimage.shape[-1]:
Expand Down

0 comments on commit 98aa12f

Please sign in to comment.