Skip to content

Weird method definition for >= #1799

Description

@nsajko

# For images
Base.:>=(I::GMTimage{T}, val::Real) where T <: Unsigned = mat2img(collect(I.image .>= val), I)

The type signature of the method:

Furthermore, I don't think >= is supposed to get methods added to it at all. Adding a method to <= instead might be an improvement.

I suggest not defining that method at all, or at least defining <= instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions