我试图提取Radon Signature以识别衣服的图案(条纹,格子,不规则和无图案),就像在1中所做的那样。
要实施的算法:
1. Use sobel operator to compute the gradient map as f(x,y).
2. Perform Radon transform based on maximum disk area.
3. Compute the variance of r under all theta directions.
4. Employ L2-norm to normalize the feature vector.
5. Plot Radon Signature as a bar chart of var(r) for all theta values.
我已经完成了以下事项:
img = imread('plaid.jpg');
grey = rgb2gray(img);
img2 = edge(grey, 'sobel');
vararray=zeros(1,size(theta,2));
theta = -89:90;
for j = 1: size(theta,2)
[R3,xp3] = radon (img2,theta(j));
vararray(j) = var(R3);
end
vararray = vararray/norm(vararray);
figure(1), bar(theta,vararray),title('Radon Signature');
我相信我的误差在前两个步骤中。我不确定如何只对最大的圆盘区域执行Radon变换。
我的结果显示在右侧,而文章(下面引用)显示在左侧。
然而,我的结果至少应该显示两个明显的峰值,就像文章的结果一样,但它们并没有。
任何帮助都将受到赞赏。
算法来源:“面向视障人士的辅助服装图案识别”作者:Xiaodong Yang(IEEE学生会员),Shuai Yuan和YingLi Tian(IEEE高级会员)