|
Hi,
On Mon, 17 Mar 2008, Eric BADEL wrote:
> I simply need to decrease the spatial resolution of a 3D volume (stack)
> by a factor 2 in the 3 directions. Does a macro already exist for this ?
How about this?
-- snip --
getVoxelSize(x, y, z, unit);
setVoxelSize(1, 1, 1, "");
id = getImageID();
run("Reslice [/]...", "input=1 output=2 start=Top");
id2 = getImageID();
selectImage(id);
close();
run("Reslice [/]...", "input=1 output=2 start=Left");
id3 = getImageID();
selectImage(id2);
close();
run("Reslice [/]...", "input=2 output=4 start=Left");
selectImage(id3);
close();
run("Rotate 90 Degrees Right");
run("Flip Horizontally");
setVoxelSize(x * 2, y * 2, z * 2, unit);
-- snap --
Hth,
Dscho
|