Binary Segmentation

In this assignment I used two different methods(Otsu's method and recursive method) to find the binary intensity that minimizes the within class variance and maximizes the between class variance. In Part one, I use random colored images and in part two, I use images with grey values. These images are also in my GitHub.

Assignment Report
OpenCV Part 1
OpenCV Part 2

Pt 1 Image
*Pt 1.

Pt 1 Image
*Pt 2.