Login  Register

Re: Depth map and z scale

Posted by karo03 on Jun 25, 2007; 4:16pm
URL: http://imagej.273.s1.nabble.com/Depth-map-and-z-scale-tp3699025p3699028.html

... possibly you are looking for the macro blanket.txt from Gabriel  
Landini ?

//--------------8<-----------------
// Blanket Transform
// Implements K. Rodenacker's blanquet tranform
// where each pixel in the result represents the
// maximum slice number in which the pixel is set.
// Assumes a binary stack where image=255 and
// the background is 0.
// G. Landini 17/1/2007

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");
//--------------8<-----------------

Regards
Karsten

Am 25.06.2007 um 12:30 schrieb Orkun Ersoy:

> Hi All,
> I have a stack involving images taken by serial grinding and polishing
> (method in Chinga et al., 2004---Thanks Gary for this paper).
> For instance the thickness of each layer is 1 microns. I scaled the
> stack using Image/Properties and now have a z value equal to image
> number in stack.
> However, how can I create a depth map including the z value at each
> point?
> Best regards
>
> Res. Assist. Orkun ERSOY (MSc)
> Hacettepe University
> Department of Geological Engineering
> Beytepe Ankara Turkey
> +90 312 2977700 / 126
>