How to fill inside of the object?
Mostrar comentarios más antiguos
Hello every one,
I have one hand image(binary), which after doing segmentation i got the image with edges and now i want to fill inside of the hand which can see in the second following image.
I used imfill but it didnt change anything.
I will appreciate if anyone can help me to do it.
thanks
1 comentario
Rena Berman
el 24 de En. de 2017
(Answers dev) Restored question.
Respuesta aceptada
Más respuestas (1)
Jórdan Venâncio Leite
el 28 de Feb. de 2020
0 votos
Hello ImageAnalyst! how to draw a line across the top of a figure as you did with the bottom side?
4 comentarios
Image Analyst
el 28 de Feb. de 2020
Editada: Image Analyst
el 4 de Mzo. de 2020
Just use 1 instead of end
% Make temporary line along the top of the image.
binaryImage(1, :) = true; % Set all of row 1 to true/white/1
Jórdan Venâncio Leite
el 4 de Mzo. de 2020
Thanks ImageAnalyst! God bless you!
Image Analyst
el 4 de Mzo. de 2020
Editada: Image Analyst
el 4 de Mzo. de 2020
Sometimes you need to save the line, then do your fill or whatever, then set it back:
% Save existing line:
originalLine = binaryImage(1, :);
% Make temporary line along the top of the image.
binaryImage(1, :) = true; % Set all of row 1 to true/white/1
% Now do some processing, such as imfill() or whatever...
% Finally restore original line:
binaryImage(1, :) = originalLine;
Jórdan Venâncio Leite
el 11 de Mzo. de 2020
You're the guy!
Categorías
Más información sobre Time-Frequency Analysis en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


