getZeroKoord: Find points of origins

Description Usage Arguments Value Examples

View source: R/getZeroKoord.R

Description

Determines the point of origin for a given volume by first selecting the

Usage

1
2
getZeroKoord(data, sparse = 500, draw = FALSE, col = "yellow",
  drawsteps = 15)

Arguments

data

data frame of volume for which the center or origin should be calculated

sparse

select only each n. voxel (n=sparse) to speed up calculations

draw

draw the identified planes

col

color of planes

drawsteps

select only each n. voxel (n=drawsteps) to draw as identified plane

Value

coordinates belonging to the point of origin (Zero Coordinate)

Examples

1
2
3
4
5
data <- data.frame(x=rep(1:10, 5), 
y=c(rep(1,10),rep(2,10),rep(3,10),rep(4,10),rep(5, 10)), 
z=rep(1, 50), rnorm(50))
data$COORD <- encodeXYZToCOORD(data$x, data$y, data$z)
getZeroKoord(data, 1)

mknoll/imageanalysisBrain documentation built on May 23, 2019, 2:01 a.m.