comparison scripts/io/Tiff.m @ 31206:df8ee95752aa

imformats: moved Tiff logic to default_formats * scripts/image/imformats.m: added logic in default_formats to use Tiff functions for tiff images if available. * scripts/io/Tiff.m: removed the PKG_ADD logic in favor of the imformats logic to make the function handles valid.
author magedrifaat <magedrifaat@gmail.com>
date Sat, 03 Sep 2022 20:36:33 +0200
parents be6ccdcd5775
children ddbed40b811b
comparison
equal deleted inserted replaced
31205:35e1245409b8 31206:df8ee95752aa
1 ## PKG_ADD: ## Discard result to avoid polluting workspace with ans at startup.
2 ## PKG_ADD: if __have_feature__ ("TIFF")
3 ## PKG_ADD: [~] = imformats("update", "tif",
4 ## PKG_ADD: struct ("read", @__tiff_imread__,
5 ## PKG_ADD: "write", @__tiff_imwrite__,
6 ## PKG_ADD: "info", @__tiff_imfinfo__,
7 ## PKG_ADD: "ext", {{"tif", "tiff"}},
8 ## PKG_ADD: "isa", @__tiff_isa__,
9 ## PKG_ADD: "alpha", true,
10 ## PKG_ADD: "multipage", true,
11 ## PKG_ADD: "description", "Tagged Image File Format",
12 ## PKG_ADD: "coder", "TIFF"));
13 ## PKG_ADD: endif
14
15 classdef Tiff 1 classdef Tiff
16 properties (Constant = true) 2 properties (Constant = true)
17 TagID = __tiff_make_tagid__ (); 3 TagID = __tiff_make_tagid__ ();
18 4
19 Compression = struct ( 5 Compression = struct (