intensityProjection {MaxContrastProjection} | R Documentation |
Perform an intensity projection of a stack of images. The type
of projection depends on the projType
intensityProjection(imageStack, projType = "max")
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:
|
The projType
determines the time of projection to be used:
Each pixel of the output image takes on the maximum value of the z-stack underneath the corresponding pixel of the input image stack.
Each pixel of the output image takes on the minimum value of the z-stack underneath the corresponding pixel of the input image stack.
Each pixel of the output image takes on the mean value of the z-stack underneath the corresponding pixel of the input image stack.
Each pixel of the output image takes on the median value of the z-stack underneath the corresponding pixel of the input image stack.
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.
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.
A 2D matrix corresponding to the maximum intensity projection of
imageStack
Jan Sauer
dat = array(c(1,1,2,2,1,2,3,1), dim = c(2,2,2)) proj = intensityProjection(dat, projType = "max") print(proj)