Balanced Histogram Thresholding with MATLAB. Basic Concept & programming
Balanced Histogram Thresholding in MATLAB Basic Concept The main idea is to find the point of the image histogram to balance, the unbalanced histogram of the image. In this method, the image is divided into two main parts, background, and foreground. The method finds the point in the histogram where both parts (background & foreground) are balanced. The Algorithm we determine the start and endpoints in the Histogram of the image From these two points, we calculate the midpoint to divide the histogram into the left side & the right side we calculate the weights or sum of both parts ( left side & right side) of the histogram we compare the sums of both parts remove the farthest point (weight) from the heavier side or part adjust the midpoint recalculate the sums of the left & right side compare the weights we repeat this procedure until the sums or starting and endpoints become equal or the same on both sides. The process as shown in a GIF from Wikipedia ...