fractal box count macro problem

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

fractal box count macro problem

Josep M. Lanau
Hi all,

I am trying to get the Fractal Dimension (D value)result from the Fractal
Box Count implemented in ImageJ (v.1.39r; Analyze>Tools>Box Count) in a
macro (i use the default run("Fractal Box
Count...", "box=2,3,4,6,8,12,16,32,64")). I work with binary outlines.

I need to get it in a variable to output it later, along all the other
results that the macro calculates. BoxCount returns a plot and also the
size and count results in the Results window for each box size, followed by
a blank line and the D result in the "size column" (D=value).

I have tried by using df=getResult(1, 11), DF2=getResult("size",11), and
df=getResult("Size") commands, but they return am error (results table
empty in line 9).

Can anyone help??

Thank you...

Josep M.
Reply | Threaded
Open this post in threaded view
|

Re: fractal box count macro problem

Wayne Rasband
On Aug 23, 2009, at 2:19 PM, Josep M. Lanau wrote:

> Hi all,
>
> I am trying to get the Fractal Dimension (D value)result from the
> Fractal
> Box Count implemented in ImageJ (v.1.39r; Analyze>Tools>Box Count) in a
> macro (i use the default run("Fractal Box
> Count...", "box=2,3,4,6,8,12,16,32,64")). I work with binary outlines.
>
> I need to get it in a variable to output it later, along all the other
> results that the macro calculates. BoxCount returns a plot and also the
> size and count results in the Results window for each box size,
> followed by
> a blank line and the D result in the "size column" (D=value).
>
> I have tried by using df=getResult(1, 11), DF2=getResult("size",11),
> and
> df=getResult("Size") commands, but they return am error (results table
> empty in line 9).
This is fixed in ImageJ 1.43f (see attached screenshot). A macro can
retrieve the fractal dimension using D=getResult("D"), the 2x2 box
count using count2=getResult("C2"), the 3x3 box count using
count3=getResult("C3"), etc.

V1.43f also extends the Image>Scale and Image>Adjust>Size commands so
that the can scale stacks and hyperstacks in the Z dimension, and the
Process>Batch>Process command is no longer model thanks to the
NonBlockingGenericDialog class contributed by Johannes Schindelin.

-wayne


screenshot.png (18K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: fractal box count macro problem

Josep M. Lanau
In reply to this post by Josep M. Lanau
Ok, I will update.
Thank you vey much, Wayne.

Josep M.