Re: Histogram Calculation for FloatProcessor

Posted by Wayne Rasband-2 on
URL: http://imagej.273.s1.nabble.com/Histogram-Calculation-for-FloatProcessor-tp5019601p5019603.html

> On Oct 25, 2017, at 3:21 PM, Mahesh Kakuturu <[hidden email]> wrote:
>
> Hi All,
>
> I added the functionality to calculate histogram for 32 bit gray scale
> FloatProcessor. I did this change in ImageJ version 1.48v which is
> integrated with Micro-Manager 1.4 version.
> I would like to push these changes for the community. If you are willing to
> accept these change, please let me know the steps to commit the code to
> your repository.

The FloatProcessor in the current version of ImageJ (1.51r) includes this method:

   /** Returns a 256 bin histogram of the current ROI or of the entire image if there is no ROI. */
   public int[] getHistogram() {
      return getStatistics().histogram;
   }

-wayne

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