The following compass operators can detect edges of a particular direction:
(31) |
(32) |
(33) |
Higher angular resolution can be achieved by increase the mask size. The two kernels below are for 30 and 60 degrees, respectively:
(34) |
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:
(35) |
(36) |
(37) |
Alternatively, we can emphasize the details while suppressing the back ground:
(38) |
(39) |