Skip to content

Commit

Permalink
update compat for Clustering (#93)
Browse files Browse the repository at this point in the history
This required minor updates for changes in the Clustering API, hence we now support only this one version.

Co-authored-by: Tim Holy <[email protected]>
  • Loading branch information
SimonDanisch and timholy authored May 14, 2023
1 parent 3294585 commit 32eb2dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "ImageSegmentation"
uuid = "80713f31-8817-5129-9cf8-209ff8fb23e1"
version = "1.8.0"
version = "1.8.1"

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

[compat]
Clustering = "0.10, 0.11, 0.12, 0.13, 0.14"
Clustering = "0.15"
DataStructures = "0.17.11, 0.18"
Distances = "0.8, 0.9.2, 0.10"
Documenter = "0.24, 0.25"
Expand Down
2 changes: 1 addition & 1 deletion src/meanshift.jl
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function meanshift(img::Array{CT, 2}, spatial_radius::Real, range_radius::Real;
modes[:, i[1] + (i[2]-1)*rows] = [pt[1]/spatial_radius, pt[2]/spatial_radius, pt[3]/range_radius]
end

clusters = dbscan(modes, 1.414)
clusters = dbscan(modes, 1.414).clusters
num_segments = length(clusters)
TM = meantype(CT)
result = similar(img, Int)
Expand Down

2 comments on commit 32eb2dc

@timholy
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/83553

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v1.8.1 -m "<description of version>" 32eb2dcfca3bb3df774819ec36abbac1810b6537
git push origin v1.8.1

Please sign in to comment.