真的是醉了
plt.figure()
plt.imshow(blur_heatMap_jet)
plt.show()
的结果
cv2.imwrite(heatMapPath, blur_heatMap_jet)
的结果
真的无语子!
Python opencv如何imshow一张图片
# Python program to explain cv2.imshow() method # importing cv2 import cv2 # path path = r 'C:\Users\Rajnish\Desktop\geeksforgeeks.png' # Reading an image in default mode image = cv2.imread(path) # Window name in which image is displayed window_name = 'image' # Using cv2.imshow() method # Displaying the image cv2.imshow(window_name, image) #waits for user to press any key #(this is necessary to avoid Python kernel form crashing) cv2.waitKey( 0 ) #closing all open windows cv2.destroyAllWindows() |
一行命令! 等价于 matlab中imshow(img)
cv2.imshow("window_name", combineImg),cv2.waitKey(0)
评论列表(0条)