Login  Register

Re: reading values from a histogram within ImageJ

Posted by Michael Entrup on May 14, 2014; 11:23am
URL: http://imagej.273.s1.nabble.com/reading-values-from-a-histogram-within-ImageJ-tp5007730p5007735.html

Dear Jeremy,

to answer your first question, I have an URL for you: [1].

Scroll down until you reach 'getHistogram(values, counts, nBins[,
histMin, histMax])'. There are some examples that show how to work with
'getHistogram(...)'.

I can't give you a concrete answer to the second question. As far as I
know, you have to modify the code of the threshold routine. The source
code is available at [2]. If you are familiar with Java, you can create
a new plug-in, that uses a modified version of this code.

Best regards
Michael

[1] http://rsbweb.nih.gov/ij/developer/macro/functions.html#G
[2] http://rsbweb.nih.gov/ij/source/ij/process/AutoThresholder.java


Am 14.05.2014 09:32, schrieb Jeremy Adler:
> 1) How can I read the values in a histogram within ImageJ
> I can export the values but I want to perform a calculation within imageJ.
> Presumably the data in the histogram exists somewhere as a 256,1 32 bit array.
>
> 2) When thresholding it would be helpful to be able to see the log version of the histogram, to identify how well the threshold fits minor peaks. The log version is available from analyse/histogram.

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