MaokeAI / SRCNN-keras

94 stars 51 forks source link

how to understand [6: -6, 6: -6, 0] #10

Open IronLavender opened 5 years ago

IronLavender commented 5 years ago

Thanks for your sharing, but I am wondering what's the 68~74 codes in main.py meaning? Could you please help me understand it ? im3 = cv2.cvtColor(im3, cv2.COLOR_BGR2YCrCb)[6: -6, 6: -6, 0] make sure for the same shape of psnr calcultation? why [6: -6, 6: -6, 0] ?