Skip to content

Image processing - Segmentation using the famous Otsu algorithm

License

Notifications You must be signed in to change notification settings

sf0831/Otsu-Thresholding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Otsu-Thresholding - Application on Brain Tumor MRI images

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.

Example 1: FIRST IMAGE - MENINGIOMA BRAIN TUMOR

image

Example 2: SECOND IMAGE - GLIOMA BRAIN TUMOR

image

Image sources:

I have used the kaggle dataset for this images, at the link below: https://www.kaggle.com/datasets/masoudnickparvar/brain-tumor-mri-dataset

IMPORTANT NOTE

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.

About

Image processing - Segmentation using the famous Otsu algorithm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages