Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 1.11 KB

README.md

File metadata and controls

9 lines (7 loc) · 1.11 KB

ImageMoments

Accurate calculation of raw image moments with O(N+M) multiplications for grayscale images.

Raw Image Moments

Moment invariants are a big part of computer vision and pattern recognition.All of them require the calculation of raw image moments, which can be computer directly from the image. For a grayscale image or pixel array of size (N, M), the calculation of raw image moments typically requires O(NM) mulitplications, this can be very costly for large images (for binary images there are much faster methods, they won't be discussed here). These values are computed using 2D moments of the image. More information can be found here

The Discrete Radon Transformation

The DRT reduces this problem from 2D moments of one array, to 1D moments of 4 projection arrays. The original image can be projected vertically, horizontally and at 45, 135 degrees, and summed along those axis. The raw moments then become linear combinations of 1D moments of these arrays and there is no loss of information. This reduces the number of multiplications from O(NM) to O(N+M)