cropImage: crop a sub-image via a mask

View source: R/cropImage.R

cropImageR Documentation

crop a sub-image via a mask

Description

uses a label image to crop a smaller image from within a larger image

Usage

cropImage(image, labelImage, label = 1)

Arguments

image

antsImage to crop

labelImage

antsImage with label values. If not supplied, estimated from data.

label

the label value to use

Value

subimage

Author(s)

Brian B. Avants, Nicholas J. Tustison

Examples


fi <- antsImageRead(getANTsRData("r16"))
cropped <- cropImage(fi)
cropped <- cropImage(fi, fi, 100)


stnava/ANTsR documentation built on April 16, 2024, 12:17 a.m.