我正在使用Gonzalez的frdescp
函数来获取边界的傅里叶描述符。我使用了这段代码,但是我得到了两组完全不同的数字来描述两个相同但比例不同的形状。
那么问题出在哪里呢?
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 = abs(f) ;
f = f/f(1);
为什么我拥有两个圆,它们的尺寸不同,但值却相同,却得到了不同的描述符?