Make 2D (orthogonal) projection of 3D image data

projection(a, projdim = "z", projfun = c("integrate", "mean", "sum"),
na.rm = T, mask = NULL, ...)

## Arguments

a Array of image data (im3d format) The image dimension down which to project The function that collapses each vector of image data down to a single pixel. Can be a character vector naming a function or a function. See details. Logical indicating whether to ignore NA values in the image data when calculating function results. default: TRUE A mask with the same extent as the image. Additional arguments for projfun

## Details

Note that projfun must have an argument na.rm like the S3 Summary groupGeneric functions such as sum, min etc.

Note also that the BoundingBox of a 2d projection is not well-defined for the axis along which the projection was made. Presently both the evaluation location and the BoundingBox extremes are set to 0 after a projection is made but FIXME this is not completely satisfactory. Perhaps defining this to be NA or the midpoint of the original axis would be better justified.

groupGeneric, clampmax

Other im3d: as.im3d, boundingbox, im3d-coords, im3d-io, im3d, imexpand.grid, imslice, is.im3d, mask, origin, threshold, unmask, voxdims

## Examples

if (FALSE) {
}