JuliaImages / ImageFiltering.jl

Julia implementations of multidimensional array convolution and nonlinear stencil operations
Other
99 stars 51 forks source link

`findlocalmaxima` fail to handle repeated peaks #248

Open JiangXL opened 2 years ago

JiangXL commented 2 years ago
julia> findlocalmaxima([1 2 3 2 1])
1-element Vector{CartesianIndex{2}}:
 CartesianIndex(1, 3)

julia> findlocalmaxima([1 2 3 3 1])
CartesianIndex{2}[]

I'm not sure whether it is a bug or I need to handle this case outside findlocalmaxia