3.3 Mask images
Next, we can apply a mask to our H&E images to remove the background. Note that the masking procedure relies on sharp contrasts in the H&E image and will therefore perform poorly on images with diffuse borders in which case the masking strategy needs to be adjusted or done manually.
<- MaskImages(object = se)
se ImagePlot(se, method = "raster", type = "masked", annotate = FALSE)

Figure 3.3: Masked H&E images