{"action":"created","issue":{"url":"https://api.github.com/repos/ukoethe/vigra/issues/327","repository_url":"https://api.github.com/repos/ukoethe/vigra","labels_url":"https://api.github.com/repos/ukoethe/vigra/issues/327/labels{/name}","comments_url":"https://api.github.com/repos/ukoethe/vigra/issues/327/comments","events_url":"https://api.github.com/repos/ukoethe/vigra/issues/327/events","html_url":"https://github.com/ukoethe/vigra/issues/327","id":134912092,"number":327,"title":"Segfault in extractRegionFeatures","user":{"login":"stuarteberg","id":1655821,"avatar_url":"https://avatars.githubusercontent.com/u/1655821?v=3","gravatar_id":"","url":"https://api.github.com/users/stuarteberg","html_url":"https://github.com/stuarteberg","followers_url":"https://api.github.com/users/stuarteberg/followers","following_url":"https://api.github.com/users/stuarteberg/following{/other_user}","gists_url":"https://api.github.com/users/stuarteberg/gists{/gist_id}","starred_url":"https://api.github.com/users/stuarteberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stuarteberg/subscriptions","organizations_url":"https://api.github.com/users/stuarteberg/orgs","repos_url":"https://api.github.com/users/stuarteberg/repos","events_url":"https://api.github.com/users/stuarteberg/events{/privacy}","received_events_url":"https://api.github.com/users/stuarteberg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-19T16:44:47Z","updated_at":"2016-02-23T19:40:06Z","closed_at":null,"body":"The following program segfaults on my machine.  Presumably, the problem is related to the fact that I'm passing in a 1-pixel-wide image.  (I'm using today's master branch, 777f70b)\r\n\r\n```python\r\nimport numpy as np\r\nimport vigra\r\nvalues = np.arange(1000, dtype=np.float32)[None] # Add singleton dimension with [None]\r\nlabels = np.arange(1000, dtype=np.uint32)[None]\r\nacc = vigra.analysis.extractRegionFeatures(values, labels) #\r\n```\r\n\r\nI'm interested in using `extractRegionFeatures()` with (labeled) 1D data.  (I don't need coordinate-based features.)  I thought adding a singleton dimension as shown above would do the trick, but apparently that doesn't quite work. Is there a recommended way to process 1D data?"},"comment":{"url":"https://api.github.com/repos/ukoethe/vigra/issues/comments/187864512","html_url":"https://github.com/ukoethe/vigra/issues/327#issuecomment-187864512","issue_url":"https://api.github.com/repos/ukoethe/vigra/issues/327","id":187864512,"user":{"login":"stuarteberg","id":1655821,"avatar_url":"https://avatars.githubusercontent.com/u/1655821?v=3","gravatar_id":"","url":"https://api.github.com/users/stuarteberg","html_url":"https://github.com/stuarteberg","followers_url":"https://api.github.com/users/stuarteberg/followers","following_url":"https://api.github.com/users/stuarteberg/following{/other_user}","gists_url":"https://api.github.com/users/stuarteberg/gists{/gist_id}","starred_url":"https://api.github.com/users/stuarteberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stuarteberg/subscriptions","organizations_url":"https://api.github.com/users/stuarteberg/orgs","repos_url":"https://api.github.com/users/stuarteberg/repos","events_url":"https://api.github.com/users/stuarteberg/events{/privacy}","received_events_url":"https://api.github.com/users/stuarteberg/received_events","type":"User","site_admin":false},"created_at":"2016-02-23T19:40:06Z","updated_at":"2016-02-23T19:40:06Z","body":">What version of NumPy?\r\n\r\n 1.9"}}