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

Simplify bwtraceboundary function signature #460

Open
hollandjg opened this issue Oct 24, 2024 · 0 comments
Open

Simplify bwtraceboundary function signature #460

hollandjg opened this issue Oct 24, 2024 · 0 comments

Comments

@hollandjg
Copy link
Collaborator

          Because both `UInt8` and `Int64` are subtypes of `Integer`, the function signature could be simplified to something like
function foo(
    image::AbstractArray{T,2};
    P0::Union{Tuple{Integer,Integer},CartesianIndex{2},Nothing}=nothing,
    closed::Bool=true,
) where {T<:Union{Integer,AbstractFloat,Bool}}

Originally posted by @cpaniaguam in #458 (comment)

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

2 participants