从一篇论文里面看到了zernike矩,一直不懂矩是个什么东西,在网上找了一些资料,记录一下
在网上看到的一篇博客里面,理论部分归纳得很好
https://www.cnblogs.com/ronny/p/3985810.html
zernike矩的matlab 代码来自https://www.mathworks.com/matlabcentral/fileexchange/38900-zernike-moments
具体代码如下:
Zernikmoment(p,n,m)的代码
function [Z, A, Phi] = Zernikmoment(p,n,m)
% -------------------------------------------------------------------------
% Copyright C 2014 Amir Tahmasbi
% Texas A&M University
% amir.tahmasbi@tamu.edu
% http://people.tamu.edu/~amir.tahmasbi/index.html
%
% License Agreement: To acknowledge the use of the code please cite the
% following papers:
%
% [1] 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.
%
% [2] 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.
%
% -------------------------------------------------------------------------
% Function to find the Zernike moments for an N x N binary ROI
%
% [Z, A, Phi] = Zernikmoment(p,n,m)
% where
% p = input image N x N matrix (N should be an even number)
% n = The order of Zernike moment (scal