我试图提取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.
Run Code Online (Sandbox Code Playgroud)
我做了以下事情:
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 …Run Code Online (Sandbox Code Playgroud)