Posted by
CARL Philippe (LBP) on
Oct 20, 2014; 10:06am
URL: http://imagej.273.s1.nabble.com/Plugin-for-finding-average-of-top-5-intensities-in-an-image-file-tp5010099p5010111.html
Dear Emanuele et Yaseen,
Using or creating a plugin for doing what you are looking for is somehow
over killing since a simple macro can already do the job.
And the following macro will actually open the Blobs picture and make the
needed work:
run("Blobs (25K)");
getDimensions(width, height, channels, slices, frames);
val = newArray(width * height);
for(i = 0; i != width; i++)
for(j = 0; j != height; j++)
val[j * width + i] = getPixel(i, j);
Array.sort (val);
Array.reverse (val);
sub = Array.trim(val, 5);
Array.getStatistics(sub, min, max, mean, stdDev);
print(mean);
My best regards,
Philippe
Philippe CARL
Laboratoire de Biophotonique et Pharmacologie
UMR 7213 CNRS - Université de Strasbourg
Faculté de Pharmacie
74 route du Rhin
67401 ILLKIRCH
Tel : +33(0)3 68 85 41 84
-----Message d'origine-----
De : ImageJ Interest Group [mailto:
[hidden email]] De la part de
Emanuele Martini
Envoyé : lundi 20 octobre 2014 09:15
À :
[hidden email]
Objet : Re: Plugin for finding average of top 5 intensities in an image
file.
Hi Yaseen,
I think that you can use histogram function, and then list the intensity and
find the top five pixels and the average of them.
I don't know if exists a plugin that does that, but i think that would be
not too much complicated write one.
Hoping to be helpful,
have a nice day
Emanuele Martini @IFOM-IEO Research Campus -MI-
--
View this message in context:
http://imagej.1557.x6.nabble.com/Plugin-for-finding-average-of-top-5-intensities-in-an-image-file-tp5010099p5010109.html
Sent from the ImageJ mailing list archive at Nabble.com.
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html