Posted by
Peter Haub on
Jan 17, 2020; 4:24pm
URL: http://imagej.273.s1.nabble.com/Clean-up-ROIs-tp5022832p5022835.html
Dear Phillipe,
here is one way to split your object:
If your ROI is displayed as a binary image with an intensity << 255,
e.g. 10,
then you can convolve it (Process>Filters>Convolve) with the following
kernel (kernel should be normalized )
0 1 0
1 4 1
0 1 0
This will separate all pixels with edge neighbors from those with only
corner neighbors.
You can use threshold to restore the original image but without pixels
with only corner neighbors.
Since this pixels with only corner neighbors are the 'connectors' you
want to get rid of you have separated objects after thresholding the
convolved image.
If necessary you can identify the largest of the splitted objects by
using the ultimate point created on the original 'ROI image'.
Hope that gives you a start.
Regards,
Peter
On 17.01.2020 15:02, CARL Philippe (LBP) wrote:
> Dear all,
> Please find under the following link:
>
http://punias.free.fr/ImageJ/Clean_up_ROIs.jpg> a picture of two ROIs.
> The ROI on the left had been obtained through a threshold process followed by an Analyze particles.
> As the right ROI is obtained by a "by hand cleaning" of the right one.
> My question is whether there may be a way to perform such a "cleaning" automatically?
> I thank you very much in advance for your lighting on this.
> My best regards,
> Philippe
>
> Philippe CARL
> Laboratoire de Bioimagerie et Pathologies
> UMR 7021 CNRS - Université de Strasbourg
> Faculté de Pharmacie
> 74 route du Rhin
> 67401 ILLKIRCH
> Tel : +33(0)3 68 85 41 84
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html