arrayfire / arrayfire/arrayfire-python

Does af.regions work on 3D image input?

未關閉
#264 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Python
星號
422
分支
63
PR 合併指標
30 天內沒有已合併 PR

描述

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.Array
- A 2 D arrayfire array representing an image.

conn : optional: af.CONNECTIVITY. default: af.CONNECTIVITY.FOUR.
- Specifies the connectivity of the pixels.

out_type : optional: af.Dtype. default: af.Dtype.f32.
- Specifies the type for the output.

Returns
---------

output : af.Array
- An array where each pixel is labeled with its component number.

"""
output = Array()
safe_call(backend.get().af_regions(c_pointer(output.arr), image.arr,
conn.value, out_type.value))
return output`

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

從 af.regions 入口開始,將文件中對 2D 輸入的描述與 ArrayFire af_regions 對 3D 陣列的底層行為進行比較。使用最小的 3D 輸入驗證該行為,然後更新文件,說明支援的維度數與預期的連通性語意。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
python
領域
computer-vision
Issue 類型
文件
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
需要釐清
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。