Find edges in 3-D intensity volume
returns the edges found in the intensity or a binary volumeBW
= edge3(V
,'approxcanny',阈值
)V
using the approximate Canny method. The approximate Canny method finds edges by looking for local maxima of the gradient ofV
.edge3
calculates the gradient using the derivative of a Gaussian smoothed volume.
The approximate Canny method uses two thresholds to detect strong and weak edges, and includes the weak edges in the output only if they are connected to strong edges. This method is more likely than the Sobel method to detect true weak edges.
accepts an intensity or a binary volumeBW
= edge3(V
,'Sobel',阈值
)V
和returns a binary volumeBW
with1
s where the function finds edges inV
和0
s elsewhere.
The Sobel method finds edges using the Sobel approximation to the derivative. It returns edges at those points where the gradient ofV
is maximum.edge3
ignores all edges that are not stronger than阈值
.