Porting macro from ScionImage - Getting average value(?) of series of concentric rings.

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

Porting macro from ScionImage - Getting average value(?) of series of concentric rings.

Matthew M Parsons
(I'm new to this list, ImageJ/FUJI, and "scientific imaging" in general, so gentle pointing to something I missed in searching the archives or anything of the sort is appreciated.)

I've inherited a lab that's still using ScionImage and a custom macro. So before I delve much deeper into sussing out the logic and trying to port it to ImageJ, can anyone point me in the direction of any existing plugins/filters/etc that either do this already or would make sense to modify?

The user selects the cross-section of a circle using the line tool, runs the macro. It verifies the size (defaults 70mm) and number of "divisions" to slice the circle into rings. (Defaults 10.)

It then does some pixel averaging magic that I haven't quite managed to step through completely, and spits out some values like so: (This would be for 5 divisions.)

Region                 cm^-2
   27.9955             0.030247647
   20.9966             0.024067658
   13.9977             0.023161549
   6.9989             0.022575793
      0             0.022288802

Code available (In all its strongly-typed, pseudo-pascal glory) upon request.

(http://rsb.info.nih.gov/ij/plugins/concentric-circles.html looks to be what I want for the initial UI part.)


===============
Matthew Parsons - "Metro" IT (LAWR/ETOX/ WFCB) Veihmeyer Hall 113, and Crocker Nuclear Lab
(530) 378-4119


--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html