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: redirect.github.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:1bec0989-4144-47d7-6f0e-162e3f8d21ae |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AC02:9124A:1CFA80C:25B59B4:696B3936 |
| html-safe-nonce | 2e65f0eb916ae528fb02c022a4ced3db6332327a1084c495662085e3b64cc7cc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQzAyOjkxMjRBOjFDRkE4MEM6MjVCNTlCNDo2OTZCMzkzNiIsInZpc2l0b3JfaWQiOiIzNjg4NTc2Mzg1OTk2MDQ1MzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7721d5b7599769448da34d6ee643c557d0f578b6acd4a4365fad89f36bf205bc |
| 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 | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| 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 | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width