Therefore, an object of the disclosure is to provide a method of sparse edge encoding for an image that can alleviate at least one of the drawbacks of the prior art.
According to the disclosure, a method of sparse edge encoding for an image is to be implemented by a computer. The computer stores an original image, and the original image has a plurality of pixels. The method includes a step of cross-correlating the pixels of the original image with a mask matrix to obtain a plurality of Laplacian charges (L-charges) respectively corresponding to the pixels. Those of the L-charges that correspond to those of the pixels which represent an edge of an object in the original image have greater absolute values than other L-charges of the L-charges. The mask matrix is a square matrix, and a sum of all elements of the mask matrix is zero. |