我将图片边界坐标(x,y)转换成极坐标图(theta,rho),现在我需要在频域中处理数据rho。有人可以建议怎么做,拜托?这是我的代码和图片:
BW=im2bw(I);
BWH=imfill(BW,'holes');
BWE=edge(BWH,'canny');
boundaries=bwboundaries(BWE);
b=boundaries; x=b(:,2); y=b(:,1);
% cartesian plot
X=x-mean(x);
Y=y-mean(y);
THETA=X;
RHO=Y;
[THETA,RHO]=cart2pol(X,Y);
% polar plot
RHO1=smooth(RHO,10);
% smoothing data
plot(RHO1);
频域是什么意思,是通过fft ??
提前致谢!