Problem with Creating Ellipse from Meshgrid on Image

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?

카테고리

도움말 센터File Exchange에서 Vehicle Scenarios에 대해 자세히 알아보기

태그

질문:

2013년 3월 6일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by