Using TopoJ to flatten out my 3D data

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Using TopoJ to flatten out my 3D data

oojeyboojey
Hi,

I've been imaging skin and have 3D data stacks (x-y-z all taken at effectively the same time) which I've used TopoJ to produce topographical maps of. I've been failing abysmally to work out a way to use the 2D topographical data to correct for the uneven, wrinkly surface of my data cube.

What I'd like to do is use the TopoJ data (where the intensity value for each xy coordinate corresponds to the z-slice in the stack where the sample surface is located) to chop off the empty space above my sample and insert extra pixels underneath the sample as needed so that the whole data cube ends up having a flat surface rather than a wrinkly one.

How can I go through each xy coordinate in a data cube and shuffle the data up or down in the z-direction?