Calculating connected components properties in python I’m translating a matlab script into python and I’m having troubles with this section: