Write a Matlab code to change the number of gray Levels,, Hint: BitDepth

2 vues (au cours des 30 derniers jours)
Shamel Dahshan
Shamel Dahshan le 17 Août 2019
Modifié(e) : KALYAN ACHARJYA le 17 Août 2019
graylevel

Réponses (1)

KALYAN ACHARJYA
KALYAN ACHARJYA le 17 Août 2019
Modifié(e) : KALYAN ACHARJYA le 17 Août 2019
Is this?
You can slice out the LSB bits from the particular pixel values
bit_plane1=bitget(grayImage,1); % LSB 1 plane , MSB 7 plane, in case of 8 bit images
This represent is the bit depth, when you slice out the LSBs bit plane (still image contains the most information because of MSBs bits), then bits of pixel value may decreses, which might reflect the lower the gray levels.
Do try and check result!

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by