Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Does af.regions work on 3D image input? #264

Open
@solarflarefx

Description

@solarflarefx

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`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp