What is the difference between convhull and bwconvhull functions?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Srinivas Reddy
am 15 Feb. 2018
Bearbeitet: Steven Lord
am 15 Feb. 2018
How can I use the function 'convhull' to get the output as shown in the figure?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/170403/image.png)
I've used the function 'bwconvhull' for getting the output but it ended up as:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/170405/image.jpeg)
0 Kommentare
Akzeptierte Antwort
Steven Lord
am 15 Feb. 2018
Bearbeitet: Steven Lord
am 15 Feb. 2018
You can't. Your hull isn't convex; a line drawn between the base of the wrist on the right side and the tip of the thumb would go outside your hull.
Perhaps you want to use alphaShape instead to get a shape that more closely follows the outline of the hands in your images? Note that alphaShape works on coordinates, not images, so you'd need to pass in the coordinates of the points in the hands as the input.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Bounding Regions finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!