OpenCV & Python – Image too big to display

Although I was expecting an automatic solution (fitting to the screen automatically), resizing solves the problem as well. import cv2 cv2.namedWindow(“output”, cv2.WINDOW_NORMAL) # Create window with freedom of dimensions im = cv2.imread(“earth.jpg”) # Read image imS = cv2.resize(im, (960, 540)) # Resize image cv2.imshow(“output”, imS) # Show image cv2.waitKey(0) # Display the image infinitely until … Read more

Multi otsu(multi-thresholding) with openCV

To extend Otsu’s thresholding method to multi-level thresholding the between class variance equation becomes: Please check out Deng-Yuan Huang, Ta-Wei Lin, Wu-Chih Hu, Automatic Multilevel Thresholding Based on Two-Stage Otsu’s Method with Cluster Determination by Valley Estimation, Int. Journal of Innovative Computing, 2011, 7:5631-5644 for more information. http://www.ijicic.org/ijicic-10-05033.pdf Here is my C# implementation of Otsu … Read more