Login  Register

histogram from ROI

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

histogram from ROI

Barnes Anna (UNIVERSITY COLLEGE LONDON HOSPITALS NHS FOUNDATION
              TRUST - RRV)
4 posts
Dear All
is it possible to output all pixel values from an ROI to create an histogram of values?

I've been using Plugins>Tools>Display Pixel Values but this only seems to give the output from a rectangular ROI within the one I've drawn.

I'm using ImageJ 1.45s for windows.

Thanks
Anna


Anna Barnes, PhD, CSci, MIPEM
Clinical Scientist
UCL Institute of Nuclear Medicine
UCL Hospitals NHS Foundation Trust
235 Euston Road   |   London NW1 2BU   |   UK
[hidden email]
+44(0)203 447 0523

********************************************************************************************************************

This message may contain confidential information. If you are not the intended recipient please inform the
sender that you have received the message in error before deleting it.
Please do not disclose, copy or distribute information in this e-mail or take any action in reliance on its contents:
to do so is strictly prohibited and may be unlawful.

Thank you for your co-operation.

NHSmail is the secure email and directory service available for all NHS staff in England and Scotland
NHSmail is approved for exchanging patient data and other sensitive information with NHSmail and GSi recipients
NHSmail provides an email address for your career in the NHS and can be accessed anywhere

********************************************************************************************************************

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: histogram from ROI

Michael Schmid
2136 posts
Hi Anna,

the ImageJ Macro function getHistogram does exactly what you want, no need to output the pixels.
  http://rsb.info.nih.gov/ij/developer/macro/functions.html#getHistogram

When programming Java, use
  myImagePlus.getStatistics(AREA+MEAN+MODE+MIN_MAX, nBins, histMin, histMax)

Michael
________________________________________________________________
On Aug 28, 2012, at 13:47, Barnes Anna wrote:

> Dear All
> is it possible to output all pixel values from an ROI to create an histogram of values?
>
> I've been using Plugins>Tools>Display Pixel Values but this only seems to give the output from a rectangular ROI within the one I've drawn.
>
> I'm using ImageJ 1.45s for windows.
>
> Thanks
> Anna

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