Quantcast
Channel: Find the centre value of the two highest peaks in a histogram Python - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by sgarizvi for Find the centre value of the two highest peaks in a...

Here is how you can compute the index and value between the top 2 peaks of histogram (using OpenCV and Python 3).import numpy as npimport cv2img = cv2.imread('../test.jpg',...

View Article



Answer by Robert Davy for Find the centre value of the two highest peaks in a...

What you are attempting seems very similar to the Otsu thresholding algorithm. In that case you can useret, otsu = cv2.threshold(gray_scale_img , 0, 255, cv2.THRESH_BINARY+cv2.THRESH_OTSU)If your data...

View Article

Find the centre value of the two highest peaks in a histogram Python

I am trying to find the 'middle' value between the highest and second highest peak in a histogram. I can do this manually of course but I want to create an automated method. To calculate my histogram I...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images