JuliaImages / ImageSegmentation.jl

Partitioning images into meaningful regions
Other
47 stars 23 forks source link

error using region_splitting #38

Closed zahachtah closed 4 years ago

zahachtah commented 4 years ago

using the example in the docs I get

MethodError: no method matching isless(::RGB{Normed{UInt8,8}}, ::RGB{Normed{UInt8,8}}) Closest candidates are: isless(!Matched::Missing, ::Any) at missing.jl:66 isless(::Any, !Matched::Missing) at missing.jl:67

when doing

function homogeneous(img)
           min, max = extrema(img)
           max - min < 0.2
end

seg = region_splitting(img, homogeneous) 
zahachtah commented 4 years ago

my bad