Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

💡[Feature]: Image segmentation using thresholding techniques #1576

Closed
4 tasks done
Suvadip-sana opened this issue Oct 26, 2024 · 3 comments
Closed
4 tasks done

💡[Feature]: Image segmentation using thresholding techniques #1576

Suvadip-sana opened this issue Oct 26, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@Suvadip-sana
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

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

image
image
image

Priority

High

Record

  • I have read the Contributing Guidelines
  • I'm a GSSOC'24 contributor
  • I want to work on this issue
@Suvadip-sana Suvadip-sana added the enhancement New feature or request label Oct 26, 2024
Copy link

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.

@sanjay-kv
Copy link
Member

please see pinned issue

Copy link

Hello @Suvadip-sana! Your issue #1576 has been closed. Thank you for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants