Zernike Moments
This submission includes 3 mfiles and 6 image files:
1- Zernike_main.m (The main script that takes care of everything)
2- Zernikmoment.m (Calculates the Zernike moments for an NxN ROI)
3- radialpoly.m (Calculates the radial polynomials which are prerequisites for calculating Zernike moments)
4- Six .png files to test the code.
When you run the Zernike_main.m, it will calculate the Zernike moments of order n=4 and repetition m=2 for the input images. Since the first row images are just the rotated versions of a unique object (oval), the magnitudes of the Zernike moments for these three images are the same. In addition, the differences between the phases of the moments are proportional to the rotation angles of the images. Expectedly, the Zernike moments of two different shapes (e.g. oval and rectangle) are totally different. The reason of this behavior is the ability of Zernike moments in describing the shape of objects.
License agreement: To acknowledge the use of the code please cite the following papers:
A. Tahmasbi, F. Saki, S. B. Shokouhi, Classification of Benign and Malignant Masses Based on Zernike Moments, Comput. Biol. Med., vol. 41, no. 8, pp. 726-735, 2011.
F. Saki, A. Tahmasbi, H. Soltanian-Zadeh, S. B. Shokouhi, Fast opposite weight learning rules with application in breast cancer diagnosis, Comput. Biol. Med., vol. 43, no. 1, pp. 32-41, 2013.
Cite As
Amir Tahmasbi (2023). Zernike Moments (https://www.mathworks.com/matlabcentral/fileexchange/38900-zernike-moments), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Sciences > Physics > Atomic, Molecular & Optical >
- Sciences > Physics > Atomic, Molecular & Optical > Optics & Lasers > Zernike Polynomials >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Zernike_code/
Version | Published | Release Notes | |
---|---|---|---|
1.5 | - Updated to make the submission available as a toolbox in MATLAB R2014b.
|
|
|
1.4.0.0 | Just updated the description. |
||
1.3.0.0 | Added more sample shapes with different rotation angles. |
||
1.2.0.0 | Rephrased the summary for clarity. |
||
1.1.0.0 | Removed several minor mistakes in the description of the file. |
||
1.0.0.0 |