statements for Results

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

statements for Results

Jerry (Gerald) Sedgewick
I am wondering if it is possible to write statements much like what one
would do in Excel within Image J.  For example, an if/then statement for
every row in the Results table that contains "slice 7," which would then
return a value.  It would be useful to get all desired values within
Image J, rather than also use Excel or like program.  Do any plugins
already exist for querying the Results array?

Thanks in advance.

Jerry Sedgewick

--
Jerry (Gerald) Sedgewick
Author: "Scientific Imaging with Photoshop: Methods, Measurement and Output."

Sedgewick Initiatives
965 Cromwell Avenue
Saint Paul, MN  55114
651-788-2261
[hidden email]
http://www.quickphotoshop.com
http://www.rawlight.com
http://www.jerrysedgewick.com
Reply | Threaded
Open this post in threaded view
|

Re: statements for Results

Gabriel Landini
On Wednesday 10 Mar 2010  08:30:54 you wrote:
> I am wondering if it is possible to write statements much like what one
> would do in Excel within Image J.

The RT only holds numbers except the "Label" column that can contain a string.

> For example, an if/then statement for
> every row in the Results table that contains "slice 7," which would then
> return a value.

Not that I am aware, but this would be messy to handle.
One would need an editor to edit cells and recompute the RT, each time a cell
is edited. It would be easier to just use a spreadsheet for this.

If you need to do this on the fly, you could read the RT into arrays and
resolve the queries with the macro language.
I do something like this in a few macros (Morphological_Clustering and
Morphological_PCA both in the Morphology collection).

Cheers,

G.