Problem with Creating Ellipse from Meshgrid on Image
2 次查看(过去 30 天)
显示 更早的评论
I am interested in creating an ellipse from a meshgrid, which is centered on my image; however, it doesn't quite work. Can anyone assist me?
[rows cols dims] = size(image)
[x,y] = meshgrid(1:cols, 1:rows);
f = sqrt((x-cols).^2/200 + (y-rows).^2/900) -1
I am not sure if my equation is correct?
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!