Robinson compass mask

A Robinson compass mask is a type of compass mask used for edge detection. It has eight major compass orientations, each will extract the edges in respect to its direction. A combined use of compass masks of different directions could detect the edges from different angles.
Technical explanation.
The Robinson compass mask is defined by taking a single mask and rotating it to form eight orientations:
formula_1
formula_2
formula_3
formula_4
formula_5
formula_6
formula_7
formula_8
The direction axis is the line of zeros in the matrix. Robinson compass mask is similar to kirsch compass masks, but is simpler to implement. Since the matrix coefficients only contains 0, 1, 2, and are symmetrical, only the results of four masks need to be calculated, the other four results are the negation of the first four results. An edge, or contour is an tiny area with neighboring distinct pixel values. The convolution of each mask with the image would create a high value output where there is a rapid change of pixel value, thus an edge point is found. All the detected edge points would line up as edges.
Example.
An example of Robinson compass masks applied to the original image. Obviously, the edges in the direction of the mask is enhanced. 