You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This program is for image segmentation using thresholding techniques. It includes two types of thresholding methods: basic global thresholding and Otsu's thresholding. Here’s a breakdown of each section:
Basic Global Thresholding:
The function basic_global_thresholding calculates a global threshold by iteratively finding the mean of foreground and background pixel values. It stops when the difference between the current mean and the previous mean falls below a specified threshold (delthreshold). Otsu's Thresholding:
The otsu_thresholding function implements Otsu's method, which calculates a threshold that minimizes the intra-class variance (variance within foreground and background regions). This threshold is more effective for bimodal images (images with a clear foreground and background).
Use Case
Image Segmentation:
The function segmented_image applies the calculated threshold (either global or Otsu's) to segment the image into binary values (0 and 1), creating a clear distinction between foreground and background regions. Visualization:
The program reads a grayscale image, displays the original image, calculates the optimal threshold using Otsu’s method, segments the image based on this threshold, and then displays the segmented (thresholded) image.
Benefits
@sanjay-kv Sir please assign me this. I want to add this under Open CV project.
Add ScreenShots
Priority
High
Record
I have read the Contributing Guidelines
I'm a GSSOC'24 contributor
I want to work on this issue
The text was updated successfully, but these errors were encountered:
Thank you for creating this issue! 🎉 We'll look into it as soon as possible. In the meantime, please make sure to provide all the necessary details and context. If you have any questions reach out to LinkedIn. Your contributions are highly appreciated! 😊
Note: I Maintain the repo issue twice a day, or ideally 1 day, If your issue goes stale for more than one day you can tag and comment on this same issue.
You can also check our CONTRIBUTING.md for guidelines on contributing to this project. We are here to help you on this journey of opensource, any help feel free to tag me or book an appointment.
Is there an existing issue for this?
Feature Description
This program is for image segmentation using thresholding techniques. It includes two types of thresholding methods: basic global thresholding and Otsu's thresholding. Here’s a breakdown of each section:
Basic Global Thresholding:
The function basic_global_thresholding calculates a global threshold by iteratively finding the mean of foreground and background pixel values. It stops when the difference between the current mean and the previous mean falls below a specified threshold (delthreshold).
Otsu's Thresholding:
The otsu_thresholding function implements Otsu's method, which calculates a threshold that minimizes the intra-class variance (variance within foreground and background regions). This threshold is more effective for bimodal images (images with a clear foreground and background).
Use Case
Image Segmentation:
The function segmented_image applies the calculated threshold (either global or Otsu's) to segment the image into binary values (0 and 1), creating a clear distinction between foreground and background regions.
Visualization:
The program reads a grayscale image, displays the original image, calculates the optimal threshold using Otsu’s method, segments the image based on this threshold, and then displays the segmented (thresholded) image.
Benefits
@sanjay-kv Sir please assign me this. I want to add this under Open CV project.
Add ScreenShots
Priority
High
Record
The text was updated successfully, but these errors were encountered: