VOI | R Documentation |
This function extracts a Volume Of Interest (VOI) of the desired size and shape from a 3D image stack.
VOI(Stack, shape = c("sphere", "cube"), size, pos)
Stack |
an image stack object |
shape |
maximum number of 3D pixels (voxels) considered as isolated islands |
size |
for a spheric VOI, the number of voxels along the diameter of the sphere; for a cubic VOI, number of voxels along the side of the cube. |
pos |
center position of the VOI. |
VOI
is a simple function to extract a VOI from a 3D image stack. It needs careful positioning.
An array of dimensions size x size x size containing the VOI subset from the image stack.
Alessio Veneziano
#Extract a spherical VOI at the barycenter of a Stack data(exampleStack) pos<-apply(which(Stack!=0,T),2,mean) voi<-VOI(exampleStack,"sphere",50,pos) image(voi[,,20])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.