Find edges in 3-D intensity volume
returns the edges found in the intensity or a binary volume
BW = edge3(
using the approximate Canny method. The approximate Canny method finds edges by
looking for local maxima of the gradient of
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.
The Sobel method finds edges using the Sobel approximation to the derivative. It
returns edges at those points where the gradient of
edge3 ignores all edges that are not stronger than
Detect Edges of MRI Volume Using Approximate Canny Method
Load volumetric data and remove any singleton dimensions.
load mri V = squeeze(D);
View the volume using
Detect edges in the volume using
edge3 with the approximate Canny method.
BW = edge3(V,'approxcanny',0.6);
View the detected edges using
V — Input volume
3-D numeric array
Input volume, specified as a 3-D numeric array.
thresh — Sensitivity threshold
numeric scalar | 2-element numeric row vector
Sensitivity threshold, specified as one of the following.
|Approximate Canny||2-element numeric row vector. The first element is the
low threshold, and the second element is the high threshold,
|Numeric scalar representing the high threshold.
sigma — Standard deviation of the Gaussian filter
sqrt(2) | numeric scalar | 1-by-3 numeric vector
Standard deviation of the Gaussian filter, specified as a numeric scalar
for isotropic volumes or a 1-by-3 numeric vector of the form
[SigmaX SigmaY SigmaZ] for anisotropic volumes that
have different scales in each direction.