You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>> se= strel('disk', 50)
se =strelis a disk shaped structuring element with properties:Neighborhood: [99×99 logical]
Dimensionality:2
I import this strel (kind of tricky to build from scratch) into Julia and do the recommended conversions
(temp) pkg> st
Status `\temp\Project.toml`
[787d08f9] ImageMorphology v0.4.4
julia>using ImageMorphology
julia> se_mask =centered(make_disk50_se());
julia> se_offsets =strel(CartesianIndex, se_mask);
julia> se
99×99OffsetArray(::BitMatrix, -49:49, -49:49) with eltype Bool with indices -49:49×-49:49:
(rest of output suppressed)
Then I do the benchmarking with a very simple image
I exported a strel from matlab using
strel
I import this strel (kind of tricky to build from scratch) into Julia and do the recommended conversions
Then I do the benchmarking with a very simple image
In my use case with a much larger and much more complex image Matlab does this work in about 0.11 seconds, while Julia takes close to 300 seconds 😕.
The text was updated successfully, but these errors were encountered: