comparison scripts/io/Tiff.m @ 31199:30b28458bb06

Tiff: added method getDefaultStripLength * scripts/io/Tiff.m: added class method getDefaultStripLength to obtain the number of rows of a reasonably sized strip. * libtinterp/corefcn/__tiff__.cc: added internal function __tiff_default_strip_length__ to implement logic for getDefaultStripLength method. * scripts/image/private/__tiff_imwrite__.m: used the added method to obtain a default value for RowsPerStrip tag.
author magedrifaat <magedrifaat@gmail.com>
date Fri, 02 Sep 2022 03:30:45 +0200
parents 1604c8812b67
children be6ccdcd5775
comparison
equal deleted inserted replaced
31198:93eb0d6e7f62 31199:30b28458bb06
221 221
222 function tileNumber = computeTile (t, varargin) 222 function tileNumber = computeTile (t, varargin)
223 tileNumber = __tiff_compute_tile__ (t.tiff_handle, varargin{:}); 223 tileNumber = __tiff_compute_tile__ (t.tiff_handle, varargin{:});
224 endfunction 224 endfunction
225 225
226 function stripLength = getDefaultStripLength (t)
227 stripLength = __tiff_default_strip_length__ (t.tiff_handle);
228 endfunction
229
226 function dirNum = currentDirectory (t) 230 function dirNum = currentDirectory (t)
227 dirNum = __tiff_current_directory__ (t.tiff_handle); 231 dirNum = __tiff_current_directory__ (t.tiff_handle);
228 endfunction 232 endfunction
229 233
230 function isLast = lastDirectory (t) 234 function isLast = lastDirectory (t)