Glymur 0.13.5__tar.gz → 0.13.6__tar.gz
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.
- {glymur-0.13.5 → glymur-0.13.6}/CHANGES.txt +3 -0
- {glymur-0.13.5 → glymur-0.13.6}/Glymur.egg-info/PKG-INFO +1 -1
- {glymur-0.13.5 → glymur-0.13.6}/PKG-INFO +1 -1
- {glymur-0.13.5 → glymur-0.13.6}/glymur/tiff.py +1 -1
- {glymur-0.13.5 → glymur-0.13.6}/glymur/version.py +1 -1
- {glymur-0.13.5 → glymur-0.13.6}/setup.cfg +1 -1
- {glymur-0.13.5 → glymur-0.13.6}/tests/test_tiff2jp2.py +24 -0
- {glymur-0.13.5 → glymur-0.13.6}/Glymur.egg-info/SOURCES.txt +0 -0
- {glymur-0.13.5 → glymur-0.13.6}/Glymur.egg-info/dependency_links.txt +0 -0
- {glymur-0.13.5 → glymur-0.13.6}/Glymur.egg-info/entry_points.txt +0 -0
- {glymur-0.13.5 → glymur-0.13.6}/Glymur.egg-info/not-zip-safe +0 -0
- {glymur-0.13.5 → glymur-0.13.6}/Glymur.egg-info/requires.txt +0 -0
- {glymur-0.13.5 → glymur-0.13.6}/Glymur.egg-info/top_level.txt +0 -0
- {glymur-0.13.5 → glymur-0.13.6}/LICENSE.txt +0 -0
- {glymur-0.13.5 → glymur-0.13.6}/MANIFEST.in +0 -0
- {glymur-0.13.5 → glymur-0.13.6}/README.md +0 -0
- {glymur-0.13.5 → glymur-0.13.6}/glymur/__init__.py +0 -0
- {glymur-0.13.5 → glymur-0.13.6}/glymur/_iccprofile.py +0 -0
- {glymur-0.13.5 → glymur-0.13.6}/glymur/codestream.py +0 -0
- {glymur-0.13.5 → glymur-0.13.6}/glymur/command_line.py +0 -0
- {glymur-0.13.5 → glymur-0.13.6}/glymur/config.py +0 -0
- {glymur-0.13.5 → glymur-0.13.6}/glymur/core.py +0 -0
- {glymur-0.13.5 → glymur-0.13.6}/glymur/data/__init__.py +0 -0
- {glymur-0.13.5 → glymur-0.13.6}/glymur/data/goodstuff.j2k +0 -0
- {glymur-0.13.5 → glymur-0.13.6}/glymur/data/heliov.jpx +0 -0
- {glymur-0.13.5 → glymur-0.13.6}/glymur/data/nemo.jp2 +0 -0
- {glymur-0.13.5 → glymur-0.13.6}/glymur/jp2box.py +0 -0
- {glymur-0.13.5 → glymur-0.13.6}/glymur/jp2k.py +0 -0
- {glymur-0.13.5 → glymur-0.13.6}/glymur/jp2kr.py +0 -0
- {glymur-0.13.5 → glymur-0.13.6}/glymur/lib/__init__.py +0 -0
- {glymur-0.13.5 → glymur-0.13.6}/glymur/lib/openjp2.py +0 -0
- {glymur-0.13.5 → glymur-0.13.6}/glymur/lib/tiff.py +0 -0
- {glymur-0.13.5 → glymur-0.13.6}/glymur/options.py +0 -0
- {glymur-0.13.5 → glymur-0.13.6}/pyproject.toml +0 -0
- {glymur-0.13.5 → glymur-0.13.6}/tests/test_callbacks.py +0 -0
- {glymur-0.13.5 → glymur-0.13.6}/tests/test_cinema.py +0 -0
- {glymur-0.13.5 → glymur-0.13.6}/tests/test_codestream.py +0 -0
- {glymur-0.13.5 → glymur-0.13.6}/tests/test_colour_specification_box.py +0 -0
- {glymur-0.13.5 → glymur-0.13.6}/tests/test_config.py +0 -0
- {glymur-0.13.5 → glymur-0.13.6}/tests/test_geo.py +0 -0
- {glymur-0.13.5 → glymur-0.13.6}/tests/test_jp2box.py +0 -0
- {glymur-0.13.5 → glymur-0.13.6}/tests/test_jp2box_jpx.py +0 -0
- {glymur-0.13.5 → glymur-0.13.6}/tests/test_jp2box_uuid.py +0 -0
- {glymur-0.13.5 → glymur-0.13.6}/tests/test_jp2box_xml.py +0 -0
- {glymur-0.13.5 → glymur-0.13.6}/tests/test_jp2k.py +0 -0
- {glymur-0.13.5 → glymur-0.13.6}/tests/test_jp2k_writes.py +0 -0
- {glymur-0.13.5 → glymur-0.13.6}/tests/test_jp2kr.py +0 -0
- {glymur-0.13.5 → glymur-0.13.6}/tests/test_libtiff.py +0 -0
- {glymur-0.13.5 → glymur-0.13.6}/tests/test_openjp2.py +0 -0
- {glymur-0.13.5 → glymur-0.13.6}/tests/test_printing.py +0 -0
- {glymur-0.13.5 → glymur-0.13.6}/tests/test_set_decoded_components.py +0 -0
- {glymur-0.13.5 → glymur-0.13.6}/tests/test_slicing.py +0 -0
- {glymur-0.13.5 → glymur-0.13.6}/tests/test_threading.py +0 -0
- {glymur-0.13.5 → glymur-0.13.6}/tests/test_warnings.py +0 -0
|
@@ -862,7 +862,7 @@ class Tiff2Jp2k(object):
|
|
|
862
862
|
partial_jp2_tile_rows = (self.imageheight / jth) != (self.imageheight // jth) # noqa : E501
|
|
863
863
|
partial_jp2_tile_cols = (self.imagewidth / jtw) != (self.imagewidth // jtw) # noqa : E501
|
|
864
864
|
|
|
865
|
-
num_jp2k_tile_rows = int(np.ceil(self.
|
|
865
|
+
num_jp2k_tile_rows = int(np.ceil(self.imageheight / jth))
|
|
866
866
|
num_jp2k_tile_cols = int(np.ceil(self.imagewidth / jtw))
|
|
867
867
|
|
|
868
868
|
jp2k_tile_row = int(np.ceil(jp2k_tile_num // num_jp2k_tile_cols))
|
|
@@ -43,6 +43,7 @@ class TestSuite(fixtures.TestCommon):
|
|
|
43
43
|
cls.ycbcr_bg = root.joinpath('ycbcr_bg.tif')
|
|
44
44
|
cls.ycbcr_stripped = root.joinpath('ycbcr_stripped.tif')
|
|
45
45
|
cls.stripped = root.joinpath('stripped.tif')
|
|
46
|
+
cls.moon63 = root.joinpath('moon63.tif')
|
|
46
47
|
|
|
47
48
|
test_tiff_dir = tempfile.mkdtemp()
|
|
48
49
|
cls.test_tiff_path = pathlib.Path(test_tiff_dir)
|
|
@@ -1919,3 +1920,26 @@ class TestSuite(fixtures.TestCommon):
|
|
|
1919
1920
|
expected = expected[:, :, :3]
|
|
1920
1921
|
|
|
1921
1922
|
np.testing.assert_array_equal(actual, expected)
|
|
1923
|
+
|
|
1924
|
+
def test_unevenly_tiled(self):
|
|
1925
|
+
"""
|
|
1926
|
+
SCENARIO: Convert monochromatic TIFF file to JP2. The TIFF is tiled
|
|
1927
|
+
2x3, and the 2nd row of tiles consists of partial tiles.
|
|
1928
|
+
|
|
1929
|
+
EXPECTED RESULT: The JP2 file validates
|
|
1930
|
+
"""
|
|
1931
|
+
with Tiff2Jp2k(
|
|
1932
|
+
self.moon63, self.temp_jp2_filename, tilesize=(32, 32)
|
|
1933
|
+
) as j:
|
|
1934
|
+
j.run()
|
|
1935
|
+
|
|
1936
|
+
jp2 = Jp2k(self.temp_jp2_filename)
|
|
1937
|
+
actual = jp2[:]
|
|
1938
|
+
expected = skimage.io.imread(self.moon63)
|
|
1939
|
+
np.testing.assert_array_equal(actual, expected)
|
|
1940
|
+
|
|
1941
|
+
c = jp2.get_codestream()
|
|
1942
|
+
self.assertEqual(c.segment[1].xsiz, 96)
|
|
1943
|
+
self.assertEqual(c.segment[1].ysiz, 63)
|
|
1944
|
+
self.assertEqual(c.segment[1].xtsiz, 32)
|
|
1945
|
+
self.assertEqual(c.segment[1].ytsiz, 32)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|