imsubset {imageUtilities} | R Documentation |
Produces a subset of an image
imsubset(img, fx, fy, lx, ly, one.based = TRUE)
img |
input image to subset |
fx |
first x/col (1-based) |
fy |
first y/row (1-based) |
lx |
last x/col (1-based) |
ly |
last y/row (1-based) |
one.based |
boolean, default TRUE, whether fx, fy, lx and ly are one or zero based. |
a (ly-fy+1) by (lx-fx+1) by (numchanns) array containing the subset of the image from fx to lx, fy to ly inclusive.
This should mask Voir's imsubset, however, it may not.