Title: Does af.regions work on 3D image input? · Issue #264 · arrayfire/arrayfire-python · GitHub
Open Graph Title: Does af.regions work on 3D image input? · Issue #264 · arrayfire/arrayfire-python
X Title: Does af.regions work on 3D image input? · Issue #264 · arrayfire/arrayfire-python
Description: From the documentation it appears as though the method is designed to work in 2D only: `def regions(image, conn = CONNECTIVITY.FOUR, out_type = Dtype.f32): """ Find the connected components in the image. Parameters ---------- image : af....
Open Graph Description: From the documentation it appears as though the method is designed to work in 2D only: `def regions(image, conn = CONNECTIVITY.FOUR, out_type = Dtype.f32): """ Find the connected components in the ...
X Description: From the documentation it appears as though the method is designed to work in 2D only: `def regions(image, conn = CONNECTIVITY.FOUR, out_type = Dtype.f32): """ Find the connected com...
Opengraph URL: https://github.com/arrayfire/arrayfire-python/issues/264
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Does af.regions work on 3D image input?","articleBody":"From the documentation it appears as though the method is designed to work in 2D only:\r\n`def regions(image, conn = CONNECTIVITY.FOUR, out_type = Dtype.f32):\r\n \"\"\"\r\n Find the connected components in the image.\r\n\r\n Parameters\r\n ----------\r\n image : af.Array\r\n - A 2 D arrayfire array representing an image.\r\n\r\n conn : optional: af.CONNECTIVITY. default: af.CONNECTIVITY.FOUR.\r\n - Specifies the connectivity of the pixels.\r\n\r\n out_type : optional: af.Dtype. default: af.Dtype.f32.\r\n - Specifies the type for the output.\r\n\r\n Returns\r\n ---------\r\n\r\n output : af.Array\r\n - An array where each pixel is labeled with its component number.\r\n\r\n \"\"\"\r\n output = Array()\r\n safe_call(backend.get().af_regions(c_pointer(output.arr), image.arr,\r\n conn.value, out_type.value))\r\n return output`","author":{"url":"https://github.com/solarflarefx","@type":"Person","name":"solarflarefx"},"datePublished":"2023-11-16T15:39:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/264/arrayfire-python/issues/264"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6eb2c269-1395-f89a-5382-e70a50a7d1e7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EC8C:36419E:8C1E414:B6DE13F:696CD830 |
| html-safe-nonce | e9f77e66c6d6b00d743e4e1cd314da454dc738e34b791f929925ffae22cd5ba2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQzhDOjM2NDE5RTo4QzFFNDE0OkI2REUxM0Y6Njk2Q0Q4MzAiLCJ2aXNpdG9yX2lkIjoiODQ5MTMyNTc5MTA3OTgxNTIxNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6edc3055c18eaad3c39ebe8c1b7c7765ff743bb7a024a9d1f7680e97b6dccd50 |
| hovercard-subject-tag | issue:1997155538 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/arrayfire/arrayfire-python/264/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5514ac32927c72f1ab3c7f6ac76a76cf416ae517d42b3f5f6326cd2d50c851c0/arrayfire/arrayfire-python/issues/264 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5514ac32927c72f1ab3c7f6ac76a76cf416ae517d42b3f5f6326cd2d50c851c0/arrayfire/arrayfire-python/issues/264 |
| og:image:alt | From the documentation it appears as though the method is designed to work in 2D only: `def regions(image, conn = CONNECTIVITY.FOUR, out_type = Dtype.f32): """ Find the connected components in the ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | solarflarefx |
| hostname | github.com |
| expected-hostname | github.com |
| None | 31994babd8463b50f2371f63aab0826561f4efe3981ac0ebc4c33e6c41032dbd |
| turbo-cache-control | no-preview |
| go-import | github.com/arrayfire/arrayfire-python git https://github.com/arrayfire/arrayfire-python.git |
| octolytics-dimension-user_id | 5395442 |
| octolytics-dimension-user_login | arrayfire |
| octolytics-dimension-repository_id | 37599258 |
| octolytics-dimension-repository_nwo | arrayfire/arrayfire-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 37599258 |
| octolytics-dimension-repository_network_root_nwo | arrayfire/arrayfire-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f5a202c3c4aefc9cf00c8c78951a1e72eaebebeb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width