Skip to content

DataByteNITT/ImageSegmentation

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Project : Image Segmentation into foreground and background using Python


Language used: Python


Algorithm:

  1. Compute the histogram of pixel intensities vs the number of pixels
  2. Loop through the grayscale intensities from 0 to 255, setting each as a threshold
  3. Compute the weighted mean, and the variance from the function
  4. Compute the function value at that point
  5. Update minimum variance and then update the threshold

Example implementation The input image is:-

Input Image
The histogram for the given image is:-

Histogram
The output of the binarization is:-

Output

About

Image Segmentation implemented in Python.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%