- 2024-07-01colab上比较PSNR
如果两张图片不一样大,预处理:!pipinstallPillowfromPILimportImage#打开图像img1=Image.open('img1.jpg')img2=Image.open('img2.jpg')#调整图像大小,统一为img1的大小img2=img2.resize(img1.size,Image.ANTIALIAS)#确保图像都是RGBifimg1.mode!='
- 2023-06-08python opencv addWeighted
pythonopencvaddWeighted importcv2#Loadtheimageimg=cv2.imread('20230222100736979.jpg')#Adjustthebrightnessbrightness=50adjusted=cv2.addWeighted(img,1,img,0,brightness)#Displaytheoriginalandadjustedimagescv2.i
- 2023-02-06TensorFlow图像处理函数
1.读取图片importmatplotlib.pyplotaspltimporttensorflowastfimportnumpyasnpimage_raw_data=tf.gfile.FastGFile('./datasets/cat.png','rb').read()withtf.
- 2022-09-21gen_bundle_adjusted_mosaic
gen_bundle_adjusted_mosaic(Images:MosaicImage:HomMatrices2D,StackingOrder,TransformDomain:TransMat2D) gen_bundle_adjusted_mosaic—Combinemultiple