final_image = np.zeros((N, N, 3), dtype=np.uint8)
final_image[..., (0)] = arrImage[..., (0)]
final_image[..., (1)] = arrImage[..., (1)]
final_image[..., (2)] = arrImage[..., (2)]
img = Image.fromarray(final_image, 'RGB')
img.save('whatever.png')
Несоответствие цвета при объединении компонентов R, G и B в Python