Thresholding
Implements two thresholding methods:
- Maximum Normal Line Method: Finds peaks of gray-level histogram and selects threshold by perpendicular distance from the connecting line between peaks.

- Average Intensities Method: Iteratively updates the threshold based on the mean intensity of pixel groups above and below the threshold until convergence (Δ < 0.01).

Result:
Average Intensities Method preserved more image details compared to the first method.