how can i morphing a circle?
4 次查看(过去 30 天)
显示 更早的评论
The image of a circle to be transformed into an ellipse image using geometric effector. Develop code in MATLAB.
0 个评论
采纳的回答
Image Analyst
2012-9-11
See the FAQ: How do I create a circle? You can take the 4th example and make it do an ellipse by giving x and y different sized radii. Good luck.
0 个评论
更多回答(2 个)
Sean de Wolski
2012-9-11
C = bsxfun(@(x,y)hypot(x-50,y-50)<25,1:100,(1:100).'); %A circle
tform = [1 0 0;0.6 1 0;0 0 1]; %a transformation
tform = maketform('affine',tform); %create tform structure
C2 = imtransform(C,tform,'Size',size(C)); %transform
imshow(C2) %show
0 个评论
ioanna
2012-9-13
1 个评论
Image Analyst
2012-9-13
Whom are you talking to? You should put your follow up question as a comment to someone. You put it as an Answer to your own question, so basically you're asking yourself. To make something change gradually, you must change the input parameters gradually.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Type Identification 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!