edge3
Find edges in 3-D grayscale volume
Syntax
Description
returns the edges found in the grayscale or binary volume BW
= edge3(V
,"approxcanny",thresh
)V
using the approximate Canny method. The approximate Canny method finds edges by
looking for local maxima of the gradient of V
.
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 volume BW
= edge3(V
,"Sobel",thresh
)V
and returns a binary
volume BW
with 1
s where the function finds
edges in V
and 0
s elsewhere.
The Sobel method finds edges using the Sobel approximation to the derivative. It
returns edges at those points where the gradient of V
is
maximum. edge3
ignores all edges that are not stronger than
thresh
.