Login  Register

Re: surface roughness calculation

Posted by dscho on Jan 17, 2007; 12:46pm
URL: http://imagej.273.s1.nabble.com/surface-roughness-calculation-tp3700556p3700561.html

Hi,

this should work with more than 255 slices:

-- snip --
run("Divide...", "stack value=255");
s=nSlices();

run("32-bit");
for (i=2;i<=s;i++) {
 setSlice(i);
 run("Multiply...", "slice value="+i);
}
run("Z Project...", "start=1 stop=" + s + " projection=[Max Intensity]");
rename("blanket");
setMinAndMax(0, s);
run("Fire");
run("Enhance Contrast", "saturated=0");
-- snap --

Ciao,
Dscho