Next: Edge Detection
Up: gradient
Previous: Digital Gradient
The following compass operators can detect edges of a particular direction:
Other compass operators
For all convolution kernels above, the sum of all elements is zero, i.e.,
the output from a homogeneous image region is zero. If the orientation of
the edge is not needed, we run these compass operators in all directions and
find if the maximum of them is greater than a threshold value.
Higher angular resolution can be achieved by increase the mask size. The
two kernels below are for 30 and 60 degrees, respectively:
The gradient image
obtained by applying the
gradient operator to the original image
can be used in various ways
to enhance the details of the image. For example, gradient image can be used
to high-boost to emphasize the details in the image while still keeping the
rest as background:
-
where
and
are two weights specified by the user.
-
-
Here
is some specified threshold, and
is a constant.
Alternatively, we can emphasize the details while suppressing the back
ground:
Here
and
are two gray levels assigned to the details and the
background.
Next: Edge Detection
Up: gradient
Previous: Digital Gradient
Ruye Wang
2016-10-18