Login  Register

Re: Adding a measurement type

Posted by Adrian Daerr-2 on Nov 22, 2013; 5:47pm
URL: http://imagej.273.s1.nabble.com/Adding-a-measurement-type-tp5005620p5005670.html

Hello,

On 11/20/2013 04:00 PM, Grant Harris wrote:
> I'd like to add a measurement for circular/directional statistics for calculating the average orientation of an area/ROI.
> I'd like to do this so that I can utilize the functionality of the RoiManager and the ResultsTable, e.g. select a number of ROIs, do the measurement, and have the results in a table.  Does anyone have an idea on how to do this?

I have no answer to your question, but merely want to highlight the part
of it which has not been discussed. So far contributions focussed
directly on the problem at hand of measuring orientations, but I would
find really interesting if there were also ideas on how to allow adding
custom measurements in general. I have wanted to do that on several
occasions (two examples: to measure fourier coefficients on the rim of
circular selections; to measure the mean intensity on the boundary of a
ROI). If there was a way to easily add to the measurement dialog a
function/plugin(via a new MeasurementFilter interface?)/macro that takes
an image+(roi/mask) as input and returns one or more double values, one
could calculate any quantity on selections with minimal coding, and
benefit from ImageJ's measurement functionalities mentioned by GH.

I have no idea if this is easy to implement, but it might be a feature
request worth considering for IJ1 or IJ2.

cheers,
Adrian
(frequent user of the Process->Math->Macro..., which by allowing for
arbitrary functions has sharply reduced the need for one-shot plugins
iterating over all pixels and images)

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