intensityProjection {MaxContrastProjection} | R Documentation

## Intensity Projection

### Description

Perform an intensity projection of a stack of images. The type of projection depends on the `projType`

### Usage

    intensityProjection(imageStack, projType = "max")

### Arguments

`imageStack` | A numeric 3D array-like which should ne projected. The dimensions should be (spatial_1, spatial_2, numer_of_images)
`projType` | A string indicating the type of projection. Defaults to "max" and can take on the following values: `"max", "min", "mean", "median", "sd", "sum"`

### Details

The `projType` determines the time of projection to be used:

max

  Each pixel of the output image takes on the maximum value of the z-stack underneath the corresponding pixel of the input image stack.

min

  Each pixel of the output image takes on the minimum value of the z-stack underneath the corresponding pixel of the input image stack.

mean

  Each pixel of the output image takes on the mean value of the z-stack underneath the corresponding pixel of the input image stack.

median

  Each pixel of the output image takes on the median value of the z-stack underneath the corresponding pixel of the input image stack.

sd

  Each pixel of the output image takes on the standard deviation of the values of the z-stack underneath the corresponding pixel of the input image stack.

sum

  Each pixel of the output image takes on the sum of the values of the z-stack underneath the corresponding pixel of the input image stack.

### Value

A 2D matrix corresponding to the maximum intensity projection of `imageStack`

### Author(s)

Jan Sauer

### Examples

    dat = array(c(1,1,2,2,1,2,3,1), dim = c(2,2,2))
    proj = intensityProjection(dat, projType = "max")
    print(proj)

[Package MaxContrastProjection version 1.11.0 Index]