connect the objects in binary image
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Dear All ; I have the following image:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/154568/image.jpeg)
but when I covert to binary image , I got the incomplete object due to light reflection, how can i connect it ?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/154570/image.jpeg)
if possible how can i remove the light reflection, i have tried the following code but i could not determine the threshold value properly , could you advise ?
imflat = img; imflat(img>150) = 150; imagesc(imflat)
1 comentario
Gautam
el 15 de Feb. de 2016
Does the streak of bright white line in the first image correspond to the unwanted light reflection that you are referring to? If you are binarising the image and want to remove these apparent gaps in the second image due to the reflection, I suggest you to use morphological Closing operation on the image. Refer the following documentation for more information:
Respuestas (0)
Ver también
Categorías
Más información sobre Feature Detection and Extraction en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!