Skip to content

Instantly share code, notes, and snippets.

@luctrudeau
Created December 31, 2014 02:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luctrudeau/6c2628c90a1f2552f0d8 to your computer and use it in GitHub Desktop.
Save luctrudeau/6c2628c90a1f2552f0d8 to your computer and use it in GitHub Desktop.
rgb = imread(fileName);
[h, w, ~] = size(rgb);
cx = round(w / 2);
cy = round(h / 2);
imshow(rgb);
e = imellipse(gca, [cx - (cy), 0, h h]);
wait(e);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment