Skip to content

Remove redundant cluster size check#423

Open
Gold856 wants to merge 1 commit intoAprilRobotics:masterfrom
Gold856:remove-redundant-check
Open

Remove redundant cluster size check#423
Gold856 wants to merge 1 commit intoAprilRobotics:masterfrom
Gold856:remove-redundant-check

Conversation

@Gold856
Copy link

@Gold856 Gold856 commented Jan 24, 2026

Since fit_quad checks that the cluster size is above 24, the min_cluster_pixels comparision is essentially useless for values below 24. Invert it so that min_cluster_pixels is now 24, and remove the now redundant hardcoded 24 check. Move the size variable down as well for better locality of behavior.

Since fit_quad checks that the cluster size is above 24, the min_cluster_pixels comparision is essentially useless for values below 24. Invert it so that min_cluster_pixels is now 24, and remove the now redundant hardcoded 24 check. Move the size variable down as well for better locality of behavior.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments