Skip to content

Commit 32eb2dc

Browse files
update compat for Clustering (#93)
This required minor updates for changes in the Clustering API, hence we now support only this one version. Co-authored-by: Tim Holy <tim.holy@gmail.com>
1 parent 3294585 commit 32eb2dc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Project.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ImageSegmentation"
22
uuid = "80713f31-8817-5129-9cf8-209ff8fb23e1"
3-
version = "1.8.0"
3+
version = "1.8.1"
44

55
[deps]
66
Clustering = "aaaa29a8-35af-508c-8bc3-b662a17a0fe5"
@@ -18,7 +18,7 @@ StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
1818
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
1919

2020
[compat]
21-
Clustering = "0.10, 0.11, 0.12, 0.13, 0.14"
21+
Clustering = "0.15"
2222
DataStructures = "0.17.11, 0.18"
2323
Distances = "0.8, 0.9.2, 0.10"
2424
Documenter = "0.24, 0.25"

src/meanshift.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function meanshift(img::Array{CT, 2}, spatial_radius::Real, range_radius::Real;
6767
modes[:, i[1] + (i[2]-1)*rows] = [pt[1]/spatial_radius, pt[2]/spatial_radius, pt[3]/range_radius]
6868
end
6969

70-
clusters = dbscan(modes, 1.414)
70+
clusters = dbscan(modes, 1.414).clusters
7171
num_segments = length(clusters)
7272
TM = meantype(CT)
7373
result = similar(img, Int)

0 commit comments

Comments
 (0)