{"action":"created","issue":{"url":"https://api.github.com/repos/scikit-image/scikit-image/issues/1524","labels_url":"https://api.github.com/repos/scikit-image/scikit-image/issues/1524/labels{/name}","comments_url":"https://api.github.com/repos/scikit-image/scikit-image/issues/1524/comments","events_url":"https://api.github.com/repos/scikit-image/scikit-image/issues/1524/events","html_url":"https://github.com/scikit-image/scikit-image/pull/1524","id":79671370,"number":1524,"title":"skimage.draw.ellipse speedups","user":{"login":"bennlich","id":704368,"avatar_url":"https://avatars.githubusercontent.com/u/704368?v=3","gravatar_id":"","url":"https://api.github.com/users/bennlich","html_url":"https://github.com/bennlich","followers_url":"https://api.github.com/users/bennlich/followers","following_url":"https://api.github.com/users/bennlich/following{/other_user}","gists_url":"https://api.github.com/users/bennlich/gists{/gist_id}","starred_url":"https://api.github.com/users/bennlich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bennlich/subscriptions","organizations_url":"https://api.github.com/users/bennlich/orgs","repos_url":"https://api.github.com/users/bennlich/repos","events_url":"https://api.github.com/users/bennlich/events{/privacy}","received_events_url":"https://api.github.com/users/bennlich/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-23T00:41:09Z","updated_at":"2015-05-27T11:52:52Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/scikit-image/scikit-image/pulls/1524","html_url":"https://github.com/scikit-image/scikit-image/pull/1524","diff_url":"https://github.com/scikit-image/scikit-image/pull/1524.diff","patch_url":"https://github.com/scikit-image/scikit-image/pull/1524.patch"},"body":" `_ellipse_in_shape` is slow when passed large `shape` parameters because it creates a large `ogrid` mesh. This PR finds the smallest bounding box that fits the ellipse, and constrains the `shape` parameter before calling `_ellipse_in_shape`.\r\n\r\nOn my macbook pro, the old version took about 0.01s for a `shape` of `[744, 863]`. The new version takes on the order of 0.00001s (1000x faster!)."},"comment":{"url":"https://api.github.com/repos/scikit-image/scikit-image/issues/comments/105883433","html_url":"https://github.com/scikit-image/scikit-image/pull/1524#issuecomment-105883433","issue_url":"https://api.github.com/repos/scikit-image/scikit-image/issues/1524","id":105883433,"user":{"login":"jni","id":492549,"avatar_url":"https://avatars.githubusercontent.com/u/492549?v=3","gravatar_id":"","url":"https://api.github.com/users/jni","html_url":"https://github.com/jni","followers_url":"https://api.github.com/users/jni/followers","following_url":"https://api.github.com/users/jni/following{/other_user}","gists_url":"https://api.github.com/users/jni/gists{/gist_id}","starred_url":"https://api.github.com/users/jni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jni/subscriptions","organizations_url":"https://api.github.com/users/jni/orgs","repos_url":"https://api.github.com/users/jni/repos","events_url":"https://api.github.com/users/jni/events{/privacy}","received_events_url":"https://api.github.com/users/jni/received_events","type":"User","site_admin":false},"created_at":"2015-05-27T11:52:52Z","updated_at":"2015-05-27T11:52:52Z","body":"Oh! Um, basically, run `python setup.py install` from the scikit-image root directory to install your local scikit-image code. You probably don't want to do this in your production environment. Tools such a conda allow you to do this in a \"sandboxed\" environment, where you can experiment to your heart's content. See the [installers](http://conda.pydata.org/miniconda.html#miniconda) and the [test drive](http://conda.pydata.org/docs/test-drive.html). Once you have conda installed, change to your cloned scikit-image directory, then:\r\n\r\n```console\r\n$ conda create -n skimage-dev python=3.4 scikit-image\r\n$ source activate skimage-dev\r\n$ python setup.py install\r\n$ cd doc/examples\r\n$ python plot_shapes.py\r\n```\r\n\r\n(You can add other packages, of course, by adding them to that line, e.g. ipython-notebook)\r\n\r\nIf you make further changes to `draw.py`, you'll need to run the `python setup.py install` line again.\r\n\r\nI hope that helps!"}}