Enhanced Watershed Image Processing Segmentation Aamir Shahzad CIIT/SP05-MCS-002/WAH
Abstract Watershed enhancement can be done in three different ways. One is to perform preprocessing. Second is to improve the watershed algorithm. And the third one is to perform post processing. I choose the last option for enhancement because this option has more opportunities for enhancement. In this option, I use the technique “Fusion of edge based enhanced watershed segmentation” or “edge based enhanced watershed segmentation”.
What is Watershed  Segmentation? What is segmentation? Understanding the watershed transform requires that you think of an image as a surface. The key behind watershed is to change your image into another image whose catchment basins are the objects you want to identify.
Marker-Controlled Watershed In simple watershed, we face the problem of over segmentation. Marker control is a improved form of watershed. Here we use internal and external markers define by automatically or from user
Proposed system – enhanced watershed segmentation Following are the high level main steps Perform watershed segmentation on main image Get edge image from main image Enhance edge image results Merge the results based on the best results
Algorithms used in main algorithm Connect edge with border Fill one missing pixel Get big object number Connect object with border Get minimum object size Get object start pixel Get object number Get object size Get select object
Proposed algorithm Read image Convert image to gray scale, if required  Perform canny edge detection and get edges connect edges with border Fill missing pixel in edges make edges logical (i.e. 0/1) Complement the image Perform labeling function on edges and get label 1 and total objects in label 1 Get biggest object number in the label 1 Connect objects with border Perform labeling function again and get label 1 and total objects in label 1 Get biggest object number again in the label 1 Perform existing watershed method and get the label 2 Perform labeling function on label 2 and get total objects in label 2 Get biggest object number in the label 2 Get the size of  minimum object in label 2 loop through 1st object to total object in label 1 if current object number is equal to  biggest number in label 1 then continue Get the current object’s start pixel in x and y variable from label 1 Get the object number at x and y position in label 2 if object number is equal to the biggest object number of label 2 then Increase the value of total objects in label 2 by one Find the rows and columns pixels of current object in label 1 Find the total pixels (i.e. total rows or columns)  in above find rows and columns
Loop through 1st pixel to the last pixel of current object in label 1 Change the current pixel value at label 2 to total objects value in label 2 if there is other objects pixel in between rows then change the pixel to total objects value   continue the loop at 17 Get the current object size from label 1 Get the size of  object number  (see 17.c) If current object’s size is greater than   object number’s size then Find the rows and columns pixels of current object in label 1 Find the total pixels (i.e. total rows or columns)  in above find rows and columns Loop through 1st pixel to the last pixel of current object in label 1 Change the current pixel value at label 2 to object number value (see 17.c) continue the loop at 17 If current object’s size is greater than double size of minimum object in label 2 Find the rows and columns pixels of current object in label 1 Find the total pixels (i.e. total rows or columns)  in above find rows and columns Increase the value of total objects in label 2 by one Loop through 1st pixel to the last pixel of current object in label 1 Change the current pixel value at label 2 to total object value if there is other objects pixel in between rows then change the pixel to total objects value continue the loop at 17 Convert the label2 to RGB and display the final enhanced watershed  result
Example 1 Original Image Simple Watershed Result Marker-Controlled Watershed Result My Watershed Result
Example 2 Original Image Marker-Controlled Watershed Result My Watershed Result
Example 3 Original Image Marker-Controlled Watershed Result My Watershed Result
Example 4 Original Image Marker-Controlled Watershed Result My Watershed Result
Note: Results approximate 1% 20% 20% 0% 6 1% 30% 30% 0% 5 1% 70% 70% 0% 4 1% 10% 50% 40% 3 3% 20% 70% 50% 2 My watershed Watershed 1% 10% 80% 70% 1 Fault   Enhancement  Image No
2% 30% 30% 0% 12 1% 705 70% 0% 11 1% 90% 90% 0% 10 2% 25% 30% 5% 9 1% 3% 53% 50% 8 My watershed Watershed 1% 70% 70% 0% 7 Fault   Enhancement  Image No
 <<   The End  >>  2% 36% 54% 18% Average  10% 0% 25% 30% 15 1% 90% 90% 0 % 14 My watershed Watershed 1% 5% 35% 30% 13 Fault   Enhancement  Image No

More Related Content

PPTX
Image parts and segmentation
PPTX
Digital Image Morphing through Field Morphing
PDF
Threshold Selection for Image segmentation
PDF
A version of watershed algorithm for color image segmentation
PDF
Image segmentation
PDF
wbc_rbc
PDF
Segmentation and Automatic Counting of Red Blood Cells Using Hough Transform
PPTX
Ant colony based image segmentation
Image parts and segmentation
Digital Image Morphing through Field Morphing
Threshold Selection for Image segmentation
A version of watershed algorithm for color image segmentation
Image segmentation
wbc_rbc
Segmentation and Automatic Counting of Red Blood Cells Using Hough Transform
Ant colony based image segmentation

Viewers also liked (11)

PDF
Myelin Matlab Analysis
PDF
Segmenting Epithelial Cells in High-Throughput RNAi Screens (MIAAB 2011)
PDF
Segmentation of Color Image using Adaptive Thresholding and Masking with Wate...
PPTX
Comparison of Segmentation Algorithms and Estimation of Optimal Segmentation ...
PPTX
Marker Controlled Segmentation Technique for Medical application
PPTX
Segmentation Techniques -II
PPTX
Neural Network Based Brain Tumor Detection using MR Images
PPTX
CANCER CELL DETECTION USING DIGITAL IMAGE PROCESSING
PPT
Medical Image Processing
PDF
Paper id 212014108
PPTX
Biomedical image processing ppt
Myelin Matlab Analysis
Segmenting Epithelial Cells in High-Throughput RNAi Screens (MIAAB 2011)
Segmentation of Color Image using Adaptive Thresholding and Masking with Wate...
Comparison of Segmentation Algorithms and Estimation of Optimal Segmentation ...
Marker Controlled Segmentation Technique for Medical application
Segmentation Techniques -II
Neural Network Based Brain Tumor Detection using MR Images
CANCER CELL DETECTION USING DIGITAL IMAGE PROCESSING
Medical Image Processing
Paper id 212014108
Biomedical image processing ppt
Ad

Similar to MCS Project - Enhanced Watershed (20)

PDF
Bio medical image segmentation using marker controlled watershed algorithm a ...
PDF
An efficient image segmentation approach through enhanced watershed algorithm
PDF
Watershed image ansam hadi
PDF
JonathanWestlake_ComputerVision_Project2
PDF
D04402024029
PPTX
Watershed Segmentation Image Processing
PDF
PS1_2014_2012B5A7521P_2012B5A7848P_2012B4A7958H
PDF
AUTOMATIC IMAGE PROCESSING ENGINE ORIENTED ON QUALITY CONTROL OF ELECTRONIC B...
PDF
Analyses of the Watershed Transform
PPTX
Machine Perception with cognition
PPTX
CG_U2_M2.pptx
PPT
digital imagesegmentation-191212120951.ppt
PPTX
project_final_seminar
PPT
Image segmentation
PPT
Unit-2 PPT.ppt
PPT
Image segmentation ppt
PDF
B018110915
PPTX
Image segmentation for high resolution images
PPT
ITK Tutorial Presentation Slides-946
PDF
Semi-Supervised Method of Multiple Object Segmentation with a Region Labeling...
Bio medical image segmentation using marker controlled watershed algorithm a ...
An efficient image segmentation approach through enhanced watershed algorithm
Watershed image ansam hadi
JonathanWestlake_ComputerVision_Project2
D04402024029
Watershed Segmentation Image Processing
PS1_2014_2012B5A7521P_2012B5A7848P_2012B4A7958H
AUTOMATIC IMAGE PROCESSING ENGINE ORIENTED ON QUALITY CONTROL OF ELECTRONIC B...
Analyses of the Watershed Transform
Machine Perception with cognition
CG_U2_M2.pptx
digital imagesegmentation-191212120951.ppt
project_final_seminar
Image segmentation
Unit-2 PPT.ppt
Image segmentation ppt
B018110915
Image segmentation for high resolution images
ITK Tutorial Presentation Slides-946
Semi-Supervised Method of Multiple Object Segmentation with a Region Labeling...
Ad

Recently uploaded (20)

PPTX
Microsoft User Copilot Training Slide Deck
PDF
sustainability-14-14877-v2.pddhzftheheeeee
DOCX
Basics of Cloud Computing - Cloud Ecosystem
PPTX
Configure Apache Mutual Authentication
PPTX
Build Your First AI Agent with UiPath.pptx
PDF
Early detection and classification of bone marrow changes in lumbar vertebrae...
PDF
Statistics on Ai - sourced from AIPRM.pdf
PDF
Improvisation in detection of pomegranate leaf disease using transfer learni...
PDF
The-Future-of-Automotive-Quality-is-Here-AI-Driven-Engineering.pdf
PDF
giants, standing on the shoulders of - by Daniel Stenberg
PPTX
MuleSoft-Compete-Deck for midddleware integrations
PDF
NewMind AI Weekly Chronicles – August ’25 Week IV
PDF
Rapid Prototyping: A lecture on prototyping techniques for interface design
PDF
The influence of sentiment analysis in enhancing early warning system model f...
PDF
Accessing-Finance-in-Jordan-MENA 2024 2025.pdf
PPTX
Module 1 Introduction to Web Programming .pptx
PDF
Transform-Your-Streaming-Platform-with-AI-Driven-Quality-Engineering.pdf
PPTX
AI IN MARKETING- PRESENTED BY ANWAR KABIR 1st June 2025.pptx
PPTX
GROUP4NURSINGINFORMATICSREPORT-2 PRESENTATION
PDF
Advancing precision in air quality forecasting through machine learning integ...
Microsoft User Copilot Training Slide Deck
sustainability-14-14877-v2.pddhzftheheeeee
Basics of Cloud Computing - Cloud Ecosystem
Configure Apache Mutual Authentication
Build Your First AI Agent with UiPath.pptx
Early detection and classification of bone marrow changes in lumbar vertebrae...
Statistics on Ai - sourced from AIPRM.pdf
Improvisation in detection of pomegranate leaf disease using transfer learni...
The-Future-of-Automotive-Quality-is-Here-AI-Driven-Engineering.pdf
giants, standing on the shoulders of - by Daniel Stenberg
MuleSoft-Compete-Deck for midddleware integrations
NewMind AI Weekly Chronicles – August ’25 Week IV
Rapid Prototyping: A lecture on prototyping techniques for interface design
The influence of sentiment analysis in enhancing early warning system model f...
Accessing-Finance-in-Jordan-MENA 2024 2025.pdf
Module 1 Introduction to Web Programming .pptx
Transform-Your-Streaming-Platform-with-AI-Driven-Quality-Engineering.pdf
AI IN MARKETING- PRESENTED BY ANWAR KABIR 1st June 2025.pptx
GROUP4NURSINGINFORMATICSREPORT-2 PRESENTATION
Advancing precision in air quality forecasting through machine learning integ...

MCS Project - Enhanced Watershed

  • 1. Enhanced Watershed Image Processing Segmentation Aamir Shahzad CIIT/SP05-MCS-002/WAH
  • 2. Abstract Watershed enhancement can be done in three different ways. One is to perform preprocessing. Second is to improve the watershed algorithm. And the third one is to perform post processing. I choose the last option for enhancement because this option has more opportunities for enhancement. In this option, I use the technique “Fusion of edge based enhanced watershed segmentation” or “edge based enhanced watershed segmentation”.
  • 3. What is Watershed Segmentation? What is segmentation? Understanding the watershed transform requires that you think of an image as a surface. The key behind watershed is to change your image into another image whose catchment basins are the objects you want to identify.
  • 4. Marker-Controlled Watershed In simple watershed, we face the problem of over segmentation. Marker control is a improved form of watershed. Here we use internal and external markers define by automatically or from user
  • 5. Proposed system – enhanced watershed segmentation Following are the high level main steps Perform watershed segmentation on main image Get edge image from main image Enhance edge image results Merge the results based on the best results
  • 6. Algorithms used in main algorithm Connect edge with border Fill one missing pixel Get big object number Connect object with border Get minimum object size Get object start pixel Get object number Get object size Get select object
  • 7. Proposed algorithm Read image Convert image to gray scale, if required Perform canny edge detection and get edges connect edges with border Fill missing pixel in edges make edges logical (i.e. 0/1) Complement the image Perform labeling function on edges and get label 1 and total objects in label 1 Get biggest object number in the label 1 Connect objects with border Perform labeling function again and get label 1 and total objects in label 1 Get biggest object number again in the label 1 Perform existing watershed method and get the label 2 Perform labeling function on label 2 and get total objects in label 2 Get biggest object number in the label 2 Get the size of minimum object in label 2 loop through 1st object to total object in label 1 if current object number is equal to biggest number in label 1 then continue Get the current object’s start pixel in x and y variable from label 1 Get the object number at x and y position in label 2 if object number is equal to the biggest object number of label 2 then Increase the value of total objects in label 2 by one Find the rows and columns pixels of current object in label 1 Find the total pixels (i.e. total rows or columns) in above find rows and columns
  • 8. Loop through 1st pixel to the last pixel of current object in label 1 Change the current pixel value at label 2 to total objects value in label 2 if there is other objects pixel in between rows then change the pixel to total objects value continue the loop at 17 Get the current object size from label 1 Get the size of object number (see 17.c) If current object’s size is greater than object number’s size then Find the rows and columns pixels of current object in label 1 Find the total pixels (i.e. total rows or columns) in above find rows and columns Loop through 1st pixel to the last pixel of current object in label 1 Change the current pixel value at label 2 to object number value (see 17.c) continue the loop at 17 If current object’s size is greater than double size of minimum object in label 2 Find the rows and columns pixels of current object in label 1 Find the total pixels (i.e. total rows or columns) in above find rows and columns Increase the value of total objects in label 2 by one Loop through 1st pixel to the last pixel of current object in label 1 Change the current pixel value at label 2 to total object value if there is other objects pixel in between rows then change the pixel to total objects value continue the loop at 17 Convert the label2 to RGB and display the final enhanced watershed result
  • 9. Example 1 Original Image Simple Watershed Result Marker-Controlled Watershed Result My Watershed Result
  • 10. Example 2 Original Image Marker-Controlled Watershed Result My Watershed Result
  • 11. Example 3 Original Image Marker-Controlled Watershed Result My Watershed Result
  • 12. Example 4 Original Image Marker-Controlled Watershed Result My Watershed Result
  • 13. Note: Results approximate 1% 20% 20% 0% 6 1% 30% 30% 0% 5 1% 70% 70% 0% 4 1% 10% 50% 40% 3 3% 20% 70% 50% 2 My watershed Watershed 1% 10% 80% 70% 1 Fault Enhancement Image No
  • 14. 2% 30% 30% 0% 12 1% 705 70% 0% 11 1% 90% 90% 0% 10 2% 25% 30% 5% 9 1% 3% 53% 50% 8 My watershed Watershed 1% 70% 70% 0% 7 Fault Enhancement Image No
  • 15.  << The End >>  2% 36% 54% 18% Average 10% 0% 25% 30% 15 1% 90% 90% 0 % 14 My watershed Watershed 1% 5% 35% 30% 13 Fault Enhancement Image No