How to find out the best threshold to convert these images to binary?
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Penny13
el 14 de Ag. de 2019
Comentada: Penny13
el 15 de Ag. de 2019
Hello,
I want to convert these attached images to binary, I have used imbiarize built-in function but the resulted images are not what they should be(either too white or too black, so they are not much the same as the RGB images). Are there other ways to get the optimum threshold?
Thank you
1 comentario
Respuesta aceptada
KALYAN ACHARJYA
el 14 de Ag. de 2019
Try following ones:
- If you are interetsted for greens to be segment, no need to go for binary, you can directly segment it for RGB image.
- If you used the inbuilt imbinirize function, you can change the threshold value on gray images, by defauly the value is 0.5
- If the 1,2 are not the solutions, apply the Global image threshold using Otsu's method graythresh(grayImage)
- If 1,2,3, fails, try histeq, then apply the above solutuons
From the sample attach images, I dont think there will bea any issue to perfectly binarize the images. Although, if you share the final objective from the images, it would be helpful to recomemned any specific approach.
Lets keep learning!
2 comentarios
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!