문제

This function bwmorph(Img,'skel',Inf) return the skeleton of a binary image.

What I'm looking for is the algorithm used by this function to do it manualy ?

도움이 되었습니까?

해결책

If you want to see the actual code within a function in MATLAB, you can try using the TYPE command:

type bwmorph       %# Command form
type('bwmorph.m')  %# Function form

Keep in mind, this will not work on all MATLAB functions. You may get a message that says the function is a built-in function, in which case the code will not be displayed. You can also try opening the file in the MATLAB Editor using the EDIT command:

edit bwmorph.m     %# Command form
edit('bwmorph.m')  %# Function form

다른 팁

The documentation gives an overview of the algorithm (scroll down a ways).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top