make the boundaries smoother while still keeping the bit depth
2 views (last 30 days)
Show older comments
Hi there! I modified my image by reducing its gray depth from 255 to 16. However, this caused some unpleasant flickering at the boundaries when I tested the image on my display. The changes at the boundaries are quite noticeable. I'm wondering if there's a way to make the boundaries smoother while still keeping the bit depth between 0 and 15 bits.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1380069/image.png)
0 Comments
Answers (1)
Sarthak
on 17 May 2023
Hi Sahar,
As per my understanding, you can make the boundaries smoother by using some image processing technique. One such technique can be error diffusion. Error diffusion distributes the error across neighbouring pixels giving the image a more natural appearance instead of just rounding the pixel value to the closest available color. You can write your own function or leverage this function from file exchange as well. You can also use any such other techniques to make your image boundaries smoother.
Attaching a link for your reference
See Also
Categories
Find more on Convert Image Type in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!