-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Store original image downsample in LabeledImageServer (#27)
Previously all labeledservers had downsample of 1, meaning they effectively lost any concept of the original image's resolution. This lead to an inconvenient API for the most common use cases (matched use of similar labelled and original images). Now, running ls = LabeledImageServer(original_server.metadata, features, downsample=2) ls.read_region(downsample=1) will return an image of the size of original_server, rather than downsampled by 2. It also means that region requests are resized to the labeledserver's downsampled coordinate space, without needing to run region.downsample_region() on every request.
- Loading branch information
1 parent
6af8673
commit 64670cf
Showing
4 changed files
with
171 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters