powered by
uses a label image to crop a smaller image from within a larger image
cropImage(image, labelImage, label = 1)
antsImage to crop
antsImage with label values. If not supplied, estimated from data.
the label value to use
subimage
# NOT RUN { fi <- antsImageRead(getANTsRData("r16")) cropped <- cropImage(fi) cropped <- cropImage(fi, fi, 250) # }
Run the code above in your browser using DataLab