Skip to content

A python GUI which can segment an image using Euclidean Distance method in the RGB vector space.

License

Notifications You must be signed in to change notification settings

ansh422/Image-Segment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image-Segment

A PyQt5 based python GUI which can segment an image using Euclidean Distance method in the RGB vector space.

This implementation of segmentation in RGB vector space is based from Section 6.7.2 of Chapter 6 of the book Digital Image Processing, by Rafael C. Gonzales and Richard E. Woods. (ISBN number: 9780070702622)

Python Libraries Required

  • PyQt5- for GUI purposes.
  • cv2- to read image.
  • numpy- for calculations purposes
  • matplotlib- to plot the images.

How to run?

  • Install the dependencies using pip install -r requirements.txt command.
  • Run the python file segment.py.
  • A box will be opened, upload the image and then enter the threshold value required.
  • Mark your region of Interest in the image and you'll get the segmented image.

Output

Our test Image- Lena.png

Test Image Lena

Output after Segmenting- lena_segment.png

Segmented Image Lena

About

A python GUI which can segment an image using Euclidean Distance method in the RGB vector space.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages