Humboldt-Universität zu Berlin - Faculty of Mathematics and Natural Sciences - Strukturforschung / Elektronenmikroskopie

selectSubVolume.txt

number sx,sy,sz,top,left,bottom,right
Image stack,subStack

if (!GetFrontImage(stack))
throw("Please open an image stack first!")

if (GetSelection(stack,top,left,bottom,right)) {
Get3DSize(stack,sx,sy,sz)
subStack = stack[left,top,0,right,bottom,sz]
setname(subStack,"selection of "+getname(stack))
showimage(subStack)
}