Skip to content

Commit

Permalink
Merge pull request #190 from clEsperanto/update-readme
Browse files Browse the repository at this point in the history
fix: connected components labeling
  • Loading branch information
StRigaud authored Jun 7, 2024
2 parents e57b691 + 5183190 commit d7d2a07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ input_image = cle.push(image)
inverted = cle.subtract_image_from_scalar(input_image, scalar=255)
blurred = cle.gaussian_blur(inverted, sigma_x=1, sigma_y=1)
binary = cle.threshold_otsu(blurred)
labeled = cle.connected_components_labeling_box(binary)
labeled = cle.connected_components_labeling(binary)

# The maxmium intensity in a label image corresponds to the number of objects
num_labels = cle.maximum_of_all_pixels(labeled)
Expand Down

0 comments on commit d7d2a07

Please sign in to comment.