Hi
I hope someone can help me with what I think may be very simple problem. Basically I would like a macro that would find the, say 10, minimum pixel values in a ROI and calculate the mean pixel value of these minima. Something similar to the Find Maxima command but with Minima. I have tried to do this, and had a search online but have not found a way to find the minimum pixels as opposed to the maximum. Thanks in advance for any help you can give me Lee -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
On 4/11/14, 1:37 PM, Lee Hampson wrote:
> Hi > > I hope someone can help me with what I think may be very simple problem. Basically I would like a macro that would find the, say 10, minimum pixel values in a ROI and calculate the mean pixel value of these minima. Something similar to the Find Maxima command but with Minima. I have tried to do this, and had a search online but have not found a way to find the minimum pixels as opposed to the maximum. > > Thanks in advance for any help you can give me > > Lee > Try checking the "Light Background" option in Find Maxima. --aryeh -- Aryeh Weiss Faculty of Engineering Bar Ilan University Ramat Gan 52900 Israel Ph: 972-3-5317638 FAX: 972-3-7384051 -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
In reply to this post by Lee Hampson
Hi Lee,
If the Find Maxima plugin gives you in theory what you need you can either (after ROI positioning) 1.) invert the image before maxima detection. Then your minima should turn into maxima. or 2.) run Find Maxima... with the checkbox "Light background" activated. cheers, Jan 2014-04-11 12:37 GMT+02:00 Lee Hampson <[hidden email]>: > Hi > > I hope someone can help me with what I think may be very simple problem. > Basically I would like a macro that would find the, say 10, minimum pixel > values in a ROI and calculate the mean pixel value of these minima. > Something similar to the Find Maxima command but with Minima. I have > tried to do this, and had a search online but have not found a way to find > the minimum pixels as opposed to the maximum. > > Thanks in advance for any help you can give me > > Lee > > -- > ImageJ mailing list: http://imagej.nih.gov/ij/list.html > -- CEO: Dr. rer. nat. Jan Brocher phone: +49 (0)6234 917 03 39 mobile: +49 (0)176 705 746 81 e-mail: [hidden email] info: [hidden email] inquiries: [hidden email] web: www.biovoxxel.de -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
In reply to this post by Lee Hampson
Generate(analyse/histogram) the frequency distribution histogram for the ROI - read the values and find the bin(s) with the lowest 10 intensities - hence the mean
Or invert the intensities in the image, find the maxima and correct for the fact they have been inverted. -----Original Message----- From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Lee Hampson Sent: den 11 april 2014 12:38 To: [hidden email] Subject: Finding Minima in ROI Hi I hope someone can help me with what I think may be very simple problem. Basically I would like a macro that would find the, say 10, minimum pixel values in a ROI and calculate the mean pixel value of these minima. Something similar to the Find Maxima command but with Minima. I have tried to do this, and had a search online but have not found a way to find the minimum pixels as opposed to the maximum. Thanks in advance for any help you can give me Lee -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Free forum by Nabble | Edit this page |