Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

strel_type: ignore OffsetArray wrapper #110

Open
johnnychen94 opened this issue Jul 14, 2022 · 0 comments
Open

strel_type: ignore OffsetArray wrapper #110

johnnychen94 opened this issue Jul 14, 2022 · 0 comments

Comments

@johnnychen94
Copy link
Member

julia> using OffsetArrays: centered, no_offset_view

julia> se = centered(no_offset_view(strel_diamond((3, 3))))
3×3 OffsetArray(::ImageMorphology.StructuringElements.SEDiamondArray{2, 2, UnitRange{Int64}, 0}, -1:1, -1:1) with eltype Bool with indices -1:1×-1:1:
 0  1  0
 1  1  1
 0  1  0

julia> strel_type(se)
ImageMorphology.StructuringElements.SEMask{2}()

julia> strel_type(strel_diamond((3, 3)))
ImageMorphology.StructuringElements.SEDiamond{2, 2, UnitRange{Int64}}((-1:1, -1:1), (1, 2), 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant