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
If Julia is being run with multiple threads, this now will default
to using all threads in `feature_transform`. The multithreaded
implementation is relatively straightforward, although the recursive algorithm
makes it a little hard to wrap your head around:
- `computeft!` for dimension `d` is dependent only on slices of dimensions `1:d`,
and indeed for all except the final call to `voronoift!` just on dimensions `1:d-1`.
Hence you can divide the last dimension `N` into chunks and give each to a thread.
- For the final `voronoift!` call along dimension `N`, it's a
one-dimensional operation along this dimension. Hence you can just
split the next-to-last dimension into chunks instead.
This change was responsible for performance improvements in `distance_transform`
noted in JuliaImages/image_benchmarks#1.
Julia 1.3 is required for `@spawn`
Copy file name to clipboardExpand all lines: src/deprecations.jl
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -4,3 +4,6 @@
4
4
@deprecatelabel_components!(out::AbstractArray{Int,N}, A::AbstractArray{T,N}, connectivity::Array{Bool,N}, bkg) where {T,N} label_components!(out, A, connectivity; bkg=bkg)
0 commit comments