imsubset {imageUtilities}R Documentation

Produces a subset of an image

Description

Produces a subset of an image

Usage

  imsubset(img, fx, fy, lx, ly, one.based = TRUE)

Arguments

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.

Value

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.

Note

This should mask Voir's imsubset, however, it may not.


[Package imageUtilities version 1.0.3 Index]