comparison scripts/image/imread.m @ 17118:c97a26408ee0

Implement PixelRegion option for imread(). * imread.m: document new option. * private/__imread__.m: parse new option and set defaults. * __magick_read__.cc (calculate region): new option to calculate the region to be read, shifts in memory required, and output image size. (read_indexed_images, read_images): implement reading of only specific regions of an image. (__magick_read__): get octave_scalar_map at start for simplicity.
author Carnë Draug <carandraug@octave.org>
date Wed, 31 Jul 2013 21:28:48 +0100
parents 3db796f89695
children d6499c14021c
comparison
equal deleted inserted replaced
17117:47b504503a3f 17118:c97a26408ee0
63 ## 63 ##
64 ## @item "Info" 64 ## @item "Info"
65 ## This option exists for @sc{Matlab} compatibility and has no effect. For 65 ## This option exists for @sc{Matlab} compatibility and has no effect. For
66 ## maximum performance while reading multiple images from a single file, 66 ## maximum performance while reading multiple images from a single file,
67 ## use the Index option. 67 ## use the Index option.
68 ##
69 ## @item "PixelRegion"
70 ## Controls the image region that is read. Takes as value a cell array
71 ## with two arrays of 3 elements @code{@{@var{rows} @var{cols}@}}. The
72 ## elements in the array are the start, increment and end pixel to be
73 ## read. If the increment value is ommited, defaults to 1.
68 ## @end table 74 ## @end table
69 ## 75 ##
70 ## @seealso{imwrite, imfinfo, imformats} 76 ## @seealso{imwrite, imfinfo, imformats}
71 ## @end deftypefn 77 ## @end deftypefn
72 78