Login  Register

Voxel depth not saved?

Posted by vischer on Jan 30, 2014; 11:26pm
URL: http://imagej.273.s1.nabble.com/Voxel-depth-not-saved-tp5006345.html

Hello,

in the following macro, I found that the voxel depth is not saved.
(And by the way, why does the "delete file" instruction return zero ?)
Running on OS X.


run("Close All");
print("\\Clear");
path = getDirectory("temp") + "ABC";
newImage("ABC", "8-bit color-mode label", 400, 300, 3, 3, 5);
setVoxelSize(0.5, 0.5, 0, "um");
getVoxelSize(width, height, depth, unit);
print("voxelDepth = ", depth, "  expected: 0");
saveAs("Tiff", path);
run("Revert");
deleted = File.delete(path);
print("deleted = ", deleted, "  expected: 1" );
print("file exists = ", File.exists(path), "  expected: 0" );
getVoxelSize(width, height, depth, unit);
print("voxelDepth = ", depth, "  expected: 0");



output:
=======
voxelDepth =  0   expected: 0
deleted =  0   expected: 1
file exists =  0   expected: 0
voxelDepth =  1   expected: 0



Norbert Vischer

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html