large-image-source-tiff 1.21.1.dev9__py3-none-any.whl → 1.21.1.dev26__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- large_image_source_tiff/__init__.py +12 -0
- {large_image_source_tiff-1.21.1.dev9.dist-info → large_image_source_tiff-1.21.1.dev26.dist-info}/METADATA +3 -3
- large_image_source_tiff-1.21.1.dev26.dist-info/RECORD +10 -0
- large_image_source_tiff-1.21.1.dev9.dist-info/RECORD +0 -10
- {large_image_source_tiff-1.21.1.dev9.dist-info → large_image_source_tiff-1.21.1.dev26.dist-info}/LICENSE +0 -0
- {large_image_source_tiff-1.21.1.dev9.dist-info → large_image_source_tiff-1.21.1.dev26.dist-info}/WHEEL +0 -0
- {large_image_source_tiff-1.21.1.dev9.dist-info → large_image_source_tiff-1.21.1.dev26.dist-info}/entry_points.txt +0 -0
- {large_image_source_tiff-1.21.1.dev9.dist-info → large_image_source_tiff-1.21.1.dev26.dist-info}/top_level.txt +0 -0
@@ -159,6 +159,12 @@ class TiffFileTileSource(FileTileSource, metaclass=LruCacheMetaclass):
|
|
159
159
|
raise TileSourceError(
|
160
160
|
'Tiff image must have at least two levels.')
|
161
161
|
|
162
|
+
sampleformat = highest._tiffInfo.get('sampleformat')
|
163
|
+
bitspersample = highest._tiffInfo.get('bitspersample')
|
164
|
+
self._dtype = numpy.dtype('%s%d' % (
|
165
|
+
tifftools.constants.SampleFormat[sampleformat or 1].name,
|
166
|
+
bitspersample
|
167
|
+
))
|
162
168
|
# Sort the directories so that the highest resolution is the last one;
|
163
169
|
# if a level is missing, put a None value in its place.
|
164
170
|
self._tiffDirectories = [directories.get(key) for key in
|
@@ -286,6 +292,12 @@ class TiffFileTileSource(FileTileSource, metaclass=LruCacheMetaclass):
|
|
286
292
|
self.levels = max(1, int(math.ceil(math.log(max(
|
287
293
|
dir0.imageWidth / dir0.tileWidth,
|
288
294
|
dir0.imageHeight / dir0.tileHeight)) / math.log(2))) + 1)
|
295
|
+
sampleformat = dir0._tiffInfo.get('sampleformat')
|
296
|
+
bitspersample = dir0._tiffInfo.get('bitspersample')
|
297
|
+
self._dtype = numpy.dtype('%s%d' % (
|
298
|
+
tifftools.constants.SampleFormat[sampleformat or 1].name,
|
299
|
+
bitspersample
|
300
|
+
))
|
289
301
|
info = _cached_read_tiff(self._largeImagePath)
|
290
302
|
frames = []
|
291
303
|
associated = [] # for now, a list of directories
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: large-image-source-tiff
|
3
|
-
Version: 1.21.1.
|
3
|
+
Version: 1.21.1.dev26
|
4
4
|
Summary: A TIFF tilesource for large_image.
|
5
5
|
Home-page: https://github.com/girder/large_image
|
6
6
|
Author: Kitware, Inc.
|
@@ -18,12 +18,12 @@ Classifier: Programming Language :: Python :: 3.10
|
|
18
18
|
Classifier: Programming Language :: Python :: 3.11
|
19
19
|
Requires-Python: >=3.6
|
20
20
|
License-File: LICENSE
|
21
|
-
Requires-Dist: large-image (>=1.21.1.
|
21
|
+
Requires-Dist: large-image (>=1.21.1.dev26)
|
22
22
|
Requires-Dist: pylibtiff
|
23
23
|
Requires-Dist: tifftools (>=1.2.0)
|
24
24
|
Requires-Dist: importlib-metadata (<5) ; python_version < "3.8"
|
25
25
|
Provides-Extra: girder
|
26
|
-
Requires-Dist: girder-large-image (>=1.21.1.
|
26
|
+
Requires-Dist: girder-large-image (>=1.21.1.dev26) ; extra == 'girder'
|
27
27
|
|
28
28
|
A TIFF tilesource for large_image.
|
29
29
|
|
@@ -0,0 +1,10 @@
|
|
1
|
+
large_image_source_tiff/__init__.py,sha256=25g4pv-LqNcTUl66tK_lKrHIkNurHR95FzM5scjZNpQ,35475
|
2
|
+
large_image_source_tiff/exceptions.py,sha256=lOy1l29rX3vzqPkCF25UMkUEkVWghjgT1caugs2BFpg,657
|
3
|
+
large_image_source_tiff/girder_source.py,sha256=Dp2e3O4VTANYXZI_eybgzs5BcyuMcw2-MAzCUJ8zzPg,1031
|
4
|
+
large_image_source_tiff/tiff_reader.py,sha256=ClApm24n9wodcnh25qyvAwFxwZ9Y3cvkKbJ0zK60Sdk,37720
|
5
|
+
large_image_source_tiff-1.21.1.dev26.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
|
6
|
+
large_image_source_tiff-1.21.1.dev26.dist-info/METADATA,sha256=yQQWOZPtrbF3PombSRsHDUD9ytN8nCaW2KOl1xhljtc,1153
|
7
|
+
large_image_source_tiff-1.21.1.dev26.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
8
|
+
large_image_source_tiff-1.21.1.dev26.dist-info/entry_points.txt,sha256=iZ43sIcj98SND7nDUC-_4qroBL6apyXN4iSbPXZ8LE4,166
|
9
|
+
large_image_source_tiff-1.21.1.dev26.dist-info/top_level.txt,sha256=QRx_D2oeiOOz_5FlBOAoDPF-E4Q-aFmerUWlaeP14B8,24
|
10
|
+
large_image_source_tiff-1.21.1.dev26.dist-info/RECORD,,
|
@@ -1,10 +0,0 @@
|
|
1
|
-
large_image_source_tiff/__init__.py,sha256=bgrZrYiud_OuD-FXP-f1dOc_TmlYvsC25gWNmrYNyuY,34929
|
2
|
-
large_image_source_tiff/exceptions.py,sha256=lOy1l29rX3vzqPkCF25UMkUEkVWghjgT1caugs2BFpg,657
|
3
|
-
large_image_source_tiff/girder_source.py,sha256=Dp2e3O4VTANYXZI_eybgzs5BcyuMcw2-MAzCUJ8zzPg,1031
|
4
|
-
large_image_source_tiff/tiff_reader.py,sha256=ClApm24n9wodcnh25qyvAwFxwZ9Y3cvkKbJ0zK60Sdk,37720
|
5
|
-
large_image_source_tiff-1.21.1.dev9.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
|
6
|
-
large_image_source_tiff-1.21.1.dev9.dist-info/METADATA,sha256=Wq8Ktje_XLZ15AXJclj5hwvao8kUdvsQOlTAaO8ASWY,1150
|
7
|
-
large_image_source_tiff-1.21.1.dev9.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
8
|
-
large_image_source_tiff-1.21.1.dev9.dist-info/entry_points.txt,sha256=iZ43sIcj98SND7nDUC-_4qroBL6apyXN4iSbPXZ8LE4,166
|
9
|
-
large_image_source_tiff-1.21.1.dev9.dist-info/top_level.txt,sha256=QRx_D2oeiOOz_5FlBOAoDPF-E4Q-aFmerUWlaeP14B8,24
|
10
|
-
large_image_source_tiff-1.21.1.dev9.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|