How to get the threshold values so i can just get my hand in the binary image?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
I am trying to count the number of fingers shown by the user's hand for which i need a binary image with just the hand and other things removed.How should i find the threshold values to get something like this?
0 comentarios
Respuestas (1)
KALYAN ACHARJYA
el 13 de Sept. de 2019
Editada: KALYAN ACHARJYA
el 13 de Sept. de 2019
Hi Akshat,
In your image the object (ROI) and image is clearly separable, you can directly apply the imbinirize function on the input image.
result=imbinrize(gray_image);
Also you can set the threshold own limit (range 0 to 1, say 0.4 etc), and see the results, test with different threshold values and check the best result in your case. In addition after binary operation, you can do some morphological operation to smoth the boundary and segment ROI blobs on binirize image to extract the region of interest (not always).
Already I have mentioned, in your case the hand is clearly separable, just try it. If you will find any difficulty, let me know.
Good Wishes!
0 comentarios
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!