large-image-source-multi 1.26.3.dev44__py3-none-any.whl → 1.26.3.dev46__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -970,7 +970,6 @@ class MultiFileTileSource(FileTileSource, metaclass=LruCacheMetaclass):
970
970
  x = y = 0
971
971
  # If there is no transform or the diagonals are positive and there is
972
972
  # no sheer, use getRegion with an appropriate size (be wary of edges)
973
- # TODO: when affine is generalized, only use this if scale is 1
974
973
  if (transform is None or
975
974
  transform[0][0] > 0 and transform[0][1] == 0 and
976
975
  transform[1][0] == 0 and transform[1][1] > 0):
@@ -1006,10 +1005,16 @@ class MultiFileTileSource(FileTileSource, metaclass=LruCacheMetaclass):
1006
1005
  sourceTile, _ = ts.getRegion(
1007
1006
  region=region, output=output, frame=sourceEntry.get('frame', 0),
1008
1007
  format=TILE_FORMAT_NUMPY)
1009
- # Otherwise, get an area twice as big as needed and use
1010
- # scipy.ndimage.affine_transform to transform it
1008
+ # Otherwise, determine where the target tile's corners are located on
1009
+ # the source; fetch that so that we have at least sqrt(2) more
1010
+ # resolution, then use scikit-image warp to transform it. scikit-image
1011
+ # does a better job than scipy.ndimage.affine_transform.
1011
1012
  else:
1012
- # TODO
1013
+ # try:
1014
+ # import skimge.transform
1015
+ # except ImportError:
1016
+ # msg = 'scikit-image is required for affine transforms.'
1017
+ # raise TileSourceError(msg)
1013
1018
  msg = 'Not implemented'
1014
1019
  raise TileSourceError(msg)
1015
1020
  # Crop
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: large-image-source-multi
3
- Version: 1.26.3.dev44
3
+ Version: 1.26.3.dev46
4
4
  Summary: A tilesource for large_image to composite other tile sources
5
5
  Home-page: https://github.com/girder/large_image
6
6
  Author: Kitware, Inc.
@@ -10,8 +10,6 @@ Keywords: large_image,tile source
10
10
  Classifier: Development Status :: 5 - Production/Stable
11
11
  Classifier: License :: OSI Approved :: Apache Software License
12
12
  Classifier: Programming Language :: Python :: 3
13
- Classifier: Programming Language :: Python :: 3.6
14
- Classifier: Programming Language :: Python :: 3.7
15
13
  Classifier: Programming Language :: Python :: 3.8
16
14
  Classifier: Programming Language :: Python :: 3.9
17
15
  Classifier: Programming Language :: Python :: 3.10
@@ -20,12 +18,12 @@ Classifier: Programming Language :: Python :: 3.12
20
18
  Requires-Python: >=3.6
21
19
  License-File: LICENSE
22
20
  Requires-Dist: jsonschema
23
- Requires-Dist: large-image >=1.26.3.dev44
21
+ Requires-Dist: large-image >=1.26.3.dev46
24
22
  Requires-Dist: pyyaml
25
- Requires-Dist: scipy
26
- Requires-Dist: importlib-metadata <5 ; python_version < "3.8"
23
+ Provides-Extra: all
24
+ Requires-Dist: scikit-image ; extra == 'all'
27
25
  Provides-Extra: girder
28
- Requires-Dist: girder-large-image >=1.26.3.dev44 ; extra == 'girder'
26
+ Requires-Dist: girder-large-image >=1.26.3.dev46 ; extra == 'girder'
29
27
 
30
28
  A tilesource for large_image to composite other tile sources
31
29
 
@@ -0,0 +1,8 @@
1
+ large_image_source_multi/__init__.py,sha256=OYrP-QxlgffUGn2ECO2w1EB0nFK3EKEBcfDg8BdZkbM,45745
2
+ large_image_source_multi/girder_source.py,sha256=YOp9hFCv-fzEhOIGAPdRewmyHM1jNu6WLr5Vt6cFtIA,1356
3
+ large_image_source_multi-1.26.3.dev46.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
4
+ large_image_source_multi-1.26.3.dev46.dist-info/METADATA,sha256=1ghsNHiKQMYDlmuTJV3aTT7JbeQ711Uh3hDafv3KB5w,1142
5
+ large_image_source_multi-1.26.3.dev46.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
6
+ large_image_source_multi-1.26.3.dev46.dist-info/entry_points.txt,sha256=1ufcPRbofaLVrGNESx1R9QhdUovr4jTzte185wHqpcU,172
7
+ large_image_source_multi-1.26.3.dev46.dist-info/top_level.txt,sha256=v6W6Hkx77lY-DGQ8XqRgbdxYSJRLFv90dCrIJe15d2A,25
8
+ large_image_source_multi-1.26.3.dev46.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- large_image_source_multi/__init__.py,sha256=Oi60j1pnN3UKEes1z0KJHhhtY5wptzILeS9QZzLap5Q,45450
2
- large_image_source_multi/girder_source.py,sha256=YOp9hFCv-fzEhOIGAPdRewmyHM1jNu6WLr5Vt6cFtIA,1356
3
- large_image_source_multi-1.26.3.dev44.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
4
- large_image_source_multi-1.26.3.dev44.dist-info/METADATA,sha256=C-QMksH2k1KQJ-psEy2y1kkLZtXsryAoBA6iW_VxY1M,1260
5
- large_image_source_multi-1.26.3.dev44.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
6
- large_image_source_multi-1.26.3.dev44.dist-info/entry_points.txt,sha256=1ufcPRbofaLVrGNESx1R9QhdUovr4jTzte185wHqpcU,172
7
- large_image_source_multi-1.26.3.dev44.dist-info/top_level.txt,sha256=v6W6Hkx77lY-DGQ8XqRgbdxYSJRLFv90dCrIJe15d2A,25
8
- large_image_source_multi-1.26.3.dev44.dist-info/RECORD,,