crop: Crop an array

View source: R/zernike_misc.r

cropR Documentation

Crop an array

Description

Crop a matrix or 3D array. Main application is to trim excess pixels from an image array, wavefront, etc.

Usage

crop(img, cp, npad = 20, nxy=NULL)

Arguments

img

Array to be cropped.

cp

A list describing the pupil boundary.

npad

Amount of padding to leave around the edge.

nxy

Number pixels per side in cropped array.

Details

cp is the list provided by circle.pars.

Value

im

The cropped array

cp

Revised value of cp

Author(s)

M.L. Peck mpeck1@ix.netcom.com


mlpeck/zernike documentation built on March 19, 2024, 6:47 p.m.