Create a bigimage using a modified version of image "tumor_091.tif" from the CAMELYON16 data set. The original image is a training image of a lymph node containing tumor tissue. The original image has eight resolution levels, and the finest level has resolution 53760-by-61440. The modified image has only three coarse resolution levels. The spatial referencing of the modified image has been adjusted to enforce a consistent aspect ratio and to register features at each level.
bim = bigimage('tumor_091R.tif');
Display the entire bigimage at the finest resolution level. Display a grid of the block boundaries.
Create a mask of the coarsest resolution level by following these steps:
Get a single-resolution image of the coarsest resolution level.
Convert the image to grayscale.
Binarize the image. In the binarized image, the object of interest is black and the background is white.
Take the complement of the binarized image. The resulting mask follows the convention in which the object of interest is white and the background is black.
Resolution level, specified as a positive integer that is less than or equal to the
number of resolution levels of bigimg. The default level is the
coarsest resolution level, bigimg.CoarsestResolutionLevel.
Single-resolution image, returned as a numeric array.
Tips
Check the LevelSizes
property of the input big image bigimg to confirm that the size of
image data at the specified level is small enough to fit in memory.