SciPy - Image Processing (scipy.ndimage)
What will be the labeled array output of this code?
import numpy as np
from scipy.ndimage import label
input_array = np.array([[0,1,1,0],
[1,1,0,0],
[0,0,1,1],
[0,1,1,0]])
labeled_array, num_features = label(input_array)
print(labeled_array)