To make the first order image moments m01 and m10 zero in order to achieve translation invariance using Zernike moments, the image centroid needs to be calculated and then the image needs to be translated so that the centroid is at the center of the image. This can be done using the following steps:
xc = m10 / m00 yc = m01 / m00
where m10, m01, and m00 are the first order image moments.
Translate the image so that the centroid is at the center of the image. This can be done by shifting the image by (xc - x0) pixels horizontally and (yc - y0) pixels vertically, where (x0, y0) is the center of the image.
Calculate the Zernike moments of the translated image.
By making the first order image moments zero in this way, the Zernike moments become invariant to translations of the image.
Asked: 2023-02-01 11:00:00 +0000
Seen: 12 times
Last updated: Sep 15 '21