활연개랑

[python(파이썬) ] 1channel to 3channel (1채널을 3채널로 만드는 법) 본문

Python

[python(파이썬) ] 1channel to 3channel (1채널을 3채널로 만드는 법)

승해tmdhey 2022. 3. 4. 15:13
반응형
    channel3_img = np.repeat(channel1_img[:,:,np.newaxis],3,-1)

이렇게 1층씩 3개 쌓아주시면 됩니다