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]: Bit plane slicing using OPEN CV & Matplot Lib #1577

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

💡[Feature]: Bit plane slicing using OPEN CV & Matplot Lib #1577

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 code performs bit-plane slicing on an image, a technique that decomposes an image into its binary components. Here’s a step-by-step explanation:

Loading and Displaying the Image:
The image (baboon.tiff) is loaded in grayscale, then displayed with the title "Baboon."

Bit-Plane Slicing:
The code creates 8 separate "bit planes" for the image, where each plane corresponds to one bit of each pixel's intensity value.
Each bit plane is extracted by performing a bitwise AND operation between the image and (1 << i), which shifts a binary 1 to the i-th position (from the least significant to the most significant bit).
These bit planes are stored in the list bit.

Displaying Bit Planes:
The code then visualizes each of the 8 bit planes, from the least significant bit (plane 0) to the most significant bit (plane 7), using matplotlib's subplot functionality.

Use Case

Bit-plane slicing is used to analyze and process specific parts of an image’s information:

Image Compression: Less significant bit planes (lower bits) often contain noise or minor details and can be discarded in lossy compression methods to save space.
Image Analysis: The higher bit planes contain the most significant visual details. Analyzing these planes can be useful in applications like object recognition, where minor details are less important.
Watermarking and Steganography: Data can be hidden in the lower bit planes of an image, making it suitable for digital watermarking and steganography.

Benefits

@sanjay-kv Sir please Assign this to me. I want to add this under Open CV project.

Add ScreenShots

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 the pinned issue

Copy link

Hello @Suvadip-sana! Your issue #1577 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