//VolumeSlicer //Generate sequences of volume renderings for animation //Michael Doube //m.doube at qmul.ac.uk //ImageJ macro to interface with Kai Uwe Barthel's Volume Viewer plugin //based on his macro, RotatingVolume.txt //http://rsb.info.nih.gov/ij/plugins/volume-viewer.html //Modified: 2007-04-11 17:58 BST //List of default values var display_mode; var lut; var scale_min = 0.5; var scale_max = 1.5; var zaspect = 1; var depth = 6; var minthreshold = 128; var maxthreshold = 128; var mindist = -100; var maxdist = 100; var n = 10; var xposstart = 120; var zposstart = 15; var xrottot = 0; var zrottot = 60; var axes = 0; var markers = 0; var name = -1; macro "VolumeSlicer.txt [b]" { requires("1.33r"); saveSettings(); if (nImages==0) exit("No images are open"); //List all the open images titles = newArray(nImages); for (i=1; i<=nImages; i++) { selectImage(i); titles[i-1]=getTitle; } for (i = 0; i