Juan Francisco a écrit :
> Dear all:
> I´m using Image J 1.38o
> I´m interesting into do several profiles (of pixel values) at certains positions of an image and ecah profile with a legnth given. . Pls, dose anyone how to do this with ImageJ?
> Thanks very much!!
> JFC
>
>
> ---------------------------------
>
> ¿Con Mascota por primera vez? - Sé un mejor Amigo
> Entra en Yahoo! Respuestas.
>
>
>
>
Hi all,
A simple set of 2 macros can help you. Copy and paste the following code
in a new macro (plugins > new) , save it and install it (Plugins > Macro
> Install ...). Just hit F8 to prepare and F9 to catch your profiles in
a Result Table:
------------------------------SNIP------------------------------------
macro "prepare[F8]"{
showMessage("Select lines and Add them to ROI Manager");
run("ROI Manager...");
setTool(4);
}
macro "process [F9]"{
n=roiManager("count");
//Get profiles
for(i=0;i<n;i++){
roiManager("Select", i);
profil = getProfile();
for (l=0; l<profil.length; l++){
setResult("Profil "+i, l, profil[l]);
}
}
updateResults() ;
------------------------------SNAP------------------------------------
Hope it helps,
Cheers,
Kriss
--
Christophe CHAMOT
---------------------------------------------------------------------
Plate-Forme de Recherche UMR7592
"Imageries des Processus Dynamiques
en Biologie Cellulaire et Biologie du Développement "
Institut Jacques Monod, CNRS, Universités Paris 6 et 7
2, place Jussieu - Tour 43
75251 Paris cedex 05
Tel: 01 44 27 47 56
fax: 01 44 27 98 57
http://www.ijm.fr/---------------------------------------------------------------------