![]() | ![]() |
![]() |
Previous Message |
Next Message Previous in Topic | Next in Topic Previous by Same Author | Next by Same Author Previous Page (May 2002) | Back to Main IMAGEJ Page | | ![]()
Reply
| Post a New Message |
Join or Leave IMAGEJ, or Change Options
|
Search | ![]()
Chronologically |
Most Recent First |
Wrap Text (Proportional Font) |
Don't Wrap Text (Non-proportional Font) | ![]() |
Content-Type: text/plain; charset=US-ASCII; format=flowed Message-ID: <[log in to unmask]> Date: Tue, 21 May 2002 14:12:14 -0400 Reply-To: ImageJ Interest Group <[log in to unmask]> Sender: ImageJ Interest Group <[log in to unmask]> From: Wayne Rasband <[log in to unmask]> Subject: Fwd: Surface plots...> From: GC <[log in to unmask]> > Date: Mon May 20, 2002 07:59:33 AM US/Eastern > To: [log in to unmask] > Subject: Surface plots... > > Hi! > The procedure described by Michael Abramoff and Tony Collins yields > excellent > surface plots!!. It may be however easier to generate such surface > plots by > recording the procedure into a macro. I have recorded a simple macro > (plugin) following the instructions and it works fine. Just remember to > unmark > the "create new window for result" to avoid creating several images. > > Gary. > > /************************************************************************ > **/ > import ij.*; > import ij.process.*; > import ij.gui.*; > import java.awt.*; > import ij.plugin.*; > > /** Based on the procedure described by Michael Abramoff and Tony > Collins. The > Transformj, Volumej and Stack Reverser > plugins are required. > */ > > public class Surface_plot implements PlugIn { > > public void run(String arg) { > IJ.run("8-bit"); > IJ.run("Rotate "); // rotation around the z-axis only > //Mark adjust size to fit result > //Unmark create new window for result > IJ.run("Scale "); //Generates a stack containg the number of images > //specified in the Scaling factor in > Z-dimension field, try with >50 > slices > //Unmark create new window for result > IJ.run("Depth Coded Stack"); //OK > IJ.run("Image Calculator..."); //Original stack - depth_coded image > //Unmark create new window for result > IJ.run("Stack Reverser"); > IJ.run("Volume Renderer"); //Follows the instructions given > by Tony Collins > //http://www.isi.uu.nl/people/michael/surfaceplots.htm > } > > } > > >
![]() |
![]() Center for Information Technology National Institutes of Health Bethesda, Maryland 20892 301 594 6248 (v) 301 496 8294 (TDD) Comments and Assistance Accessibility ![]() |