Commit 02674c1
authored
Remove redundant cluster size check (#423)
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.1 parent 8c52e4c commit 02674c1
2 files changed
+2
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
378 | 378 | | |
379 | 379 | | |
380 | 380 | | |
381 | | - | |
| 381 | + | |
382 | 382 | | |
383 | 383 | | |
384 | 384 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
778 | 778 | | |
779 | 779 | | |
780 | 780 | | |
781 | | - | |
782 | | - | |
783 | | - | |
784 | | - | |
785 | 781 | | |
786 | 782 | | |
787 | 783 | | |
| |||
866 | 862 | | |
867 | 863 | | |
868 | 864 | | |
| 865 | + | |
869 | 866 | | |
870 | 867 | | |
871 | 868 | | |
| |||
0 commit comments