Image processing - Segmentation using the famous Otsu algorithm This repository contains a simple Python implementation of image binarization using Otsu's thresholding method. Image binarization is the process of converting a grayscale image into a binary image, where each pixel is either black or white based on a calculated threshold.
I have used the kaggle dataset for this images, at the link below: https://www.kaggle.com/datasets/masoudnickparvar/brain-tumor-mri-dataset
1- Use PIL library for loading images, proven to work better than skimage library 2- Images are flattened (converted to an array) in order to computation process to work smoothly! 3 - Using of Spider as your python IDE is recommended.

