Read specific block of blocked image
Create a blocked image and display it.
bim = blockedImage('tumor_091R.tif'); bigimageshow(bim,... 'GridVisible','on', 'GridLevel', 1,... 'GridLineWidth', 2, 'GridColor','k','GridAlpha',0.3);
Display the value of the
5 6 1 2 2 1 1 1 1
Specify the block you want to read.
block = getBlock(bim, [3, 2, 1]);
Display the block.
blocksub— Block subscript vector
Block subscript vector, specified as a 1-by-N integer-valued
vector. Valid elements range from 1 to the corresponding element in the
[3, 2, 1]
blockdata— Block of pixels from blocked image
Block of pixels from blocked image, returned as a numeric array. Partial blocks
around the edges can be smaller than the
blockinfo— Metadata of block of pixels
Metadata of block of pixels, returned as a scalar
struct contains these fields.
|Subscripts of the first element in |
|Subscripts of the last element in |