written flow of code
1. Added connected components
2. workaround for complex kernel in Gabor filter