NIH LISTSERV
NIH LISTSERV
IMAGEJ archives -- May 2002 (#132)

Go to: 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


Options: Reply | Post a New Message | Join or Leave IMAGEJ, or Change Options | Search
View: Chronologically | Most Recent First | Wrap Text (Proportional Font) | Don't Wrap Text (Non-proportional Font)
*

Content-Type: text/plain; charset="us-ascii"
Importance: Normal
Message-ID:  <[log in to unmask]>
Date:         Wed, 22 May 2002 15:57:01 -0400
Reply-To:     ImageJ Interest Group <[log in to unmask]>
Sender:       ImageJ Interest Group <[log in to unmask]>
From:         Kurt De Vos <[log in to unmask]>
Subject:      Re: batch processing of stacks and saving results
In-Reply-To:  <[log in to unmask]>

Hi, I believe something went wrong with the previous mail. It should end with: I'll think about a way to get around the saving problem. Maybe you should just write your own custom particle analyzer and append a export results method. Kurt > -----Original Message----- > From: ImageJ Interest Group [mailto:[log in to unmask]] On > Behalf Of Rachel Bearon > Sent: May 22, 2002 14:50 > To: [log in to unmask] > Subject: batch processing of stacks and saving results > > > I would like to process all files in a directory and record > the results. I wrote the following plugin to process one file > at a time, but I would like to be able to automatically loop > through all files in the directory. In the archives I found > reference to a method for opening and processing all files in > a directory, but it didn't seem to allow one to automatically > save the results to a specified file. > > import ij.*; > import ij.process.*; > import ij.gui.*; > import java.awt.*; > import ij.plugin.*; > > public class Macro_ implements PlugIn { > > public void run(String arg) { > IJ.run("Set Measurements...", "area centroid > decimal=3"); > IJ.run("Open...", "path=/home/rachelb/R14002R.tif"); > IJ.run("Processbugs "); > IJ.run("Custom Particle Analyzer", "minimum=4 > maximum=20 bins=20 show=Nothing display clear stack"); > IJ.run("Measurements...", > "path=/home/rachelb/R14002R.txt"); > } > > } > > (Processbugs is just a little plugin I wrote which does some > image calculations and thresholding.) > > Thanks in advance for any help! > > Rachel >




Back to: Top of message | Previous page | Main IMAGEJ page

NIH LISTSERV Home Page

CIT
Center for Information Technology
National Institutes of Health
Bethesda, Maryland 20892
301 594 6248 (v) 301 496 8294 (TDD)
Comments and Assistance
Accessibility wheelchair icon