Dear Herbie,
Dear Wayne,
Thanks a lot for your precious help.
My way is still long but i progress with your help.
Thanks again

Regards,
Patricia
 

-----Message d'origine-----
De : Herbie <[email protected]> 
Envoyé : samedi 29 juin 2024 11:13
À : [email protected]
Objet : Re: Multiple selections / delete the outside of all selections at once

Greetings Patricia!

"I think I can achieve what I want ... But I don't know how to go about it."

Aha!

Maybe this macro does what you like to obtain:
//
setBackgroundColor(0,0,0);
setOption("BlackBackground",true);
run("Blobs (25K)");
run("Invert LUT");
setAutoThreshold("Default dark");
run("Analyze Particles...", "add");
roiManager("Select",Array.getSequence(roiManager("size")));
roiManager("Combine");
run("Clear Outside");
resetThreshold;
roiManager("Show None");
exit();
//

Regards

Herbie

::::::::::::::::::::::::::::::::::::::::::::
Am 29.06.24 um 07:01 schrieb OBEID Patricia:
> Hello everyone
> I'd like to simplify some images so that I can measure the areas of interest.
> Using a series of Thresholdings, I think I can achieve what I want ...
> But I don't know how to go about it. In fact, with Analyse Particles, ROIs 
> are generated and I would like, for example, to either remove the content of 
> all the ROIs from the image or Clear Outside.
> My problem is that I don't know how to select all the ROIs at the same time 
> and when I try Clear Outside, everything outside the first ROI is deleted ...
> With Blobs for example, I'd like to remove all the white background. Invert 
> LUT / Threshold selects all black shapes. But now I don't know what to do 
> with the ROI Manager generated by Analyze Particles.
> Is what I want to do possible?
> If so, can any of you help me write the command lines?
> Many thanks in advance for your help
> Patricia
> 
> 
> [cid:[email protected]]
> 
> Toute notre actualit� sur https://www.cea.fr/drf/irig et sur 
> Biomics<https://biosante-lab.fr/Pages/PAGES-SPECIALES/404.aspx?requestUrl=https://biosante-lab.fr/Pages/Biomics/Presentation.aspx>
> Et sur https://twitter.com/BiomicsLab
> 
> [Facebook]<https://fr-fr.facebook.com/cea.pageofficielle> [Youtube] 
> <https://www.youtube.com/channel/UCpTMWY8NRQby8zXUKhHznfg>  [Twitter] 
> <https://twitter.com/CEA_Officiel>  [LinkedIn] 
> <https://fr.linkedin.com/company/cea>  [Instagram] 
> <https://www.instagram.com/cea_officiel/>
> 
> 
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
> 

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

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

Reply via email to