Matlab fourier descriptors what's wrong?
问题 I am using Gonzalez frdescp function to get Fourier descriptors of a boundary. I use this code, and I get two totally different sets of numbers describing two identical but different in scale shapes. So what is wrong? im = imread('c:\classes\a1.png'); im = im2bw(im); b = bwboundaries(im); f = frdescp(b{1}); // fourier descriptors for the boundary of the first object ( my pic only contains one object anyway ) // Normalization f = f(2:20); // getting the first 20 & deleting the dc component f =