i try to convert image into polar coordinates
1 次查看(过去 30 天)
显示 更早的评论
here a code :
a=imread('1e.png');
r=imresize(a,[64 64]);
bw=im2bw(r);
[m,n]=size(bw)
m =
64
n =
64
[x,y]=meshgrid(1:n,1:m);
c = ((m+1)/2,(n+1)/2); %make center of the image to be the origin
|
Error: Expression or statement is incorrect--possibly unbalanced (, {, or [.
[theta,rho] = cart2pol(x-c,y-c);
how to fix this ? thanks
1 个评论
采纳的回答
Chad Greene
2016-3-17
Sophia is correct. The problem is on this line:
c = ((m+1)/2,(n+1)/2); %make center of the image to be the origin
Do you want c to be a two-element array? If yes, change the line to
c = [(m+1)/2,(n+1)/2]; %make center of the image to be the origin
10 个评论
Walter Roberson
2016-3-19
Please show your code attempt complete with the texture mapping step, and please post the complete error message.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Convert Image Type 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!