Hi
Thank you for your response.
DFF algorithm estimate for each pixel at the boundry the probabilities belongs to each class.
I’ve understood  each bit if equal 1 then this pixel correspond to Class_i
but until now it is complicate to modify mask = np.unpackbits(np.array(mask), axis=2) to extract more than 24 bits.