[MS] Ensure to have binar images before uses of connected component.
[MS] Add a threshold before connected Component to ensure to have binary images.