Skip to content

Commit

Permalink
Fix typo's
Browse files Browse the repository at this point in the history
  • Loading branch information
langestefan committed Dec 12, 2024
1 parent a1d9cc5 commit 91c6830
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions docs/src/tutorials/conic/ellipse_fitting.jl
Original file line number Diff line number Diff line change
Expand Up @@ -206,15 +206,13 @@ function edge_detector(
end
# </details>

#
#
# We apply the Sobel operator to the binary image:
edges = edge_detector(convert(Matrix{Float64}, x_bin), 1e-1, 1e2)
edges = thinning(edges; algo = GuoAlgo())

# And finally we cluster the edges using dbscan so we can fit ellipses to individual
# galaxies. We can control the minimum size of galaxies by setting the minimum
# cluster size.
# galaxies. We can control the minimum size of galaxies by changing the minimum cluster
# size.
points = findall(edges)
points = getfield.(points, :I)
points = hcat([p[1] for p in points], [p[2] for p in points])'
Expand All @@ -225,8 +223,8 @@ result = dbscan(
min_cluster_size = 20,
)

# The result of the clustering is a list of clusters, where each cluster is a list of
# points to which we will asign a unique color.
# The result of the clustering is a list of clusters to which we will assign a unique
# color. Each cluster is a list of points that belong to the same galaxy.
clusters = result.clusters
N_clusters = length(clusters)

Expand Down Expand Up @@ -301,7 +299,7 @@ end
# \end{align}
# ```
# And hence can be modelled as a second-order cone program (SOCP) using
# [`MOI.SecondOrderCone`](@ref) as follows:
# [`MOI.RotatedSecondOrderCone`](@ref) as follows:

ellipses_C1 = Vector{Dict{Symbol,Any}}()

Expand Down

0 comments on commit 91c6830

Please sign in to comment.